Question

Script to locate vdisks, snapshots, and images in a cluster?


Badge +1
Has anyone worked on a script to find the file locations of all the vdisks, snapshots, and images stored in a cluster? I'm interested in backing these up to an off-cluster storage as an alternate backup option.

1 reply

Badge
Hi,

To access storage, you need to open port 2222.

1- Connect to CVM with SSH port 22
2- Allow connection in management interface :
Iptables –A MGMT_OPENFROMALL –i eth0 –p tcp –m tcp –dport 2222 –j ACCEPT
3- Use filezilla or winscp :
sftp://@IPofCVM:2222
scp://@IPofCVM:2222
4- You will see container and image with uuid
5- To find VM disk uuid, in CVM
acli vm.get $VM | grep "vmdisk_uuid"

6- For security, don't forget to delete rules

Reply