How to enable snapshots for SolusIO VPS with logical volume storage?
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:
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.
Connect to Compute Resource (CR) over SSH.
List disk devices and partitions on the CR:
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.
Create physical volume from disk vdb:
# pvcreate /dev/vdb
Create volume group from the physical volume:
# vgcreate solusio_lv /dev/vdb
Create thin volume pool:
# lvcreate -l 100%FREE -T solusio_lv/lv-thin
Login to SolusIO Administrator area.
Go to SolusIO > Compute Resources > the necessary Compute Resource > Storage > Add Storage:How to add storage:
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:
Open SolusIO > Compute Resources > Plans > Add Plan.How to add plans:
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:
Create a new virtual server using the plan from step 6 - it will have snapshot functionality.
Please sign in to leave a comment.