How to add an additional disk to SolusVM KVM VPS from a volume group that is not set in SolusVM?

Have more questions? Submit a request

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

  1. Access the necessary SolusVM KVM node.

  2. Manually create a logical volume:

    # lvcreate -n add_disk -L 50G second_vol_group

    Command parameters

    add_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.97g

    50G - size of the additional disk - 50G is an example - change it to the necessary value.

  3. Login to SolusVM administrator interface.

  4. Open Virtual Servers > necessary VPS > Custom Config.

  5. Check option Enable Custom Config.

  6. Copy content of Live Config field to Custom Config.

  7. 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>​

  8. Click on Save and Reboot.

    Example of configuration

    CUSTOM_ADD_DISK.PNG

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.