How to enable snapshots for SolusVM 2 VPS with logical volume storage?

Have more questions? Submit a request

Applicable to:

  • SolusIO
  • Solus VM 2.0

Question

How to enable snapshots for SolusVM 2 VPS with logical volume storage?

Answer

It is possible to enable snapshots only for virtual servers created from thin logical volume storage - regular logical volume storage does not support snapshots.

To have snapshot functionality available for virtual servers with thin logical volume storage:

  1. Setup thin logical volume storage on Compute Resource:

    Setting up thin volume on Compute Resource

    SVM_WARN: All commands below are examples - they can be used for reference to create logical volume storage on a Compute Resource - however, the configuration of servers can differ. In case of questions - contact Solus Technical Support.

    Note: if you already have logical volume storage set up - skip to step 5.

    1. Connect to Compute Resource (CR) over SSH.

    2. List disk devices and partitions on the CR:

      # lsblk
      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
      sr0 11:0 1 1024M 0 rom
      vda 252:0 0 20G 0 disk
      ├─vda1 252:1 0 19G 0 part /
      └─vda2 252:2 0 1000M 0 part [SWAP]
      vdb 252:16 0 20G 0 disk

      In the example above - there is a free disk vdb, that can be used to create logical volume storage.

    3. Create physical volume from disk vdb:

      # pvcreate /dev/vdb

    4. Create volume group from the physical volume:

      # vgcreate solusio_lv /dev/vdb

    5. Create thin volume pool:

      # lvcreate -l 100%FREE -T solusio_lv/lv-thin

  2. Login to SolusVM 2 Administrator area.

  3. Go to SolusVM 2 > Compute Resources > the necessary Compute Resource > Storage > Add Storage:

    How to add storage:

    ______.PNG

  4. Click on ThinLVM, then select in the list of storage the one that was created in step 1, then click Save.

    How to select ThinLVM storage:

    ______2.PNG

  5. Open SolusVM 2 > Compute Resources > Plans > Add Plan.

    How to add plans:

    ______4.PNG

  6. Select ThinLVM in Storage Type and check Snapshots option, then fill in other options as necessary and click Save.

    How to enable ThinLVM in resource plan:

    ______5.PNG

  7. Create a new virtual server using the plan from step 6 - it will have snapshot functionality.

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.