Applicable to:
- SolusVM
Question
How to add an additional disk to SolusVM KVM VPS from a volume group that is not set in SolusVM?
Answer
-
Access the necessary SolusVM KVM node.
-
Manually create a logical volume:
# lvcreate -n add_disk -L 50G second_vol_group
Command parametersadd_disk - name of the additional disk.
vol_group - the name of the volume group - can be found with command
vgs
:# vgs
VG #PV #LV #SN Attr VSize VFree
centos 2 3 0 wz--n- 648.99g 1020.00m
solusvm 2 7 0 wz--n- <119.94g <3.94g
second_vol_group 1 1 0 wz--n- <299.97g <39.97g50G - size of the additional disk - 50G is an example - change it to the necessary value.
-
Login to SolusVM administrator interface.
-
Open Virtual Servers > necessary VPS > Custom Config.
-
Check option Enable Custom Config.
-
Copy content of Live Config field to Custom Config.
-
After section that sets main VPS disk - add section that describes the additional one, for example
CONFIG_TEXT: <disk type='file' device='disk'>
<source file='/dev/solusvm/kvm101_img'/>
<target dev='hda' bus='virtio'/>
</disk>
<disk type='file' device='disk'>
<source file='/dev/second_vol_group/add_disk'/>
<target dev='hdb' bus='virtio'/>
</disk> -
Click on Save and Reboot.
Example of configuration
Comments
0 commentsPlease sign in to leave a comment.