Product data

Chapter 9. IBM Systems Director Management Console management 263
11.Create the SDMC /Snapshot_LV_Dir/sdmc/data/images directory by
running the following command:
cd /Snapshot_LV_Dir/sdmc/data/images/
12.Compress the Snapshot_LV_Dir/sdmc/data/images/* directory and time it by
running the following command:
time tar -Spczf /Backup_Dir/vmidata.tar.gz *
13.List the /Backup_Dir directory by running the following command:
ls -l /Backup_Dir/
14.If the tarball is not created directly on the USB key, insert a 16 GB USB key
and look for the device to mount by running the following command:
fdisk -l
mkdir /mnt/usb
mount /dev/sdb1 /mnt/usb
15.Copy the backup tarball to a USB key by running the following command:
cp /Backup_Dir/vmidata.tar.gz /mnt/usb/.
16.Unmount and remove USB key by running the following command:
umount /mnt/usb
17.Unmount and delete the logical snapshot volume for future backups by
running the following command:
cd
umount /Snapshot_LV_Dir
lvremove /dev/vg_kvmpele/vmisnapshot
Do you really want to remove active logical volume vmisnapshot?
[y/n]: y
Restoring on KVM
To restore the SDMC software appliance on KVM, complete the following steps:
1. Copy the backup tarball to the /Backup_Dir directory from a mounted USB
key if there is enough space by running the following command or directly
extract from the USB key:
cp /mnt/usb/vmidata.tar.gz /Backup_Dir/.
2. Destroy the running virtual machine by running the following command:
virsh destory sdmc-pele
3. Delete the /home/sdmc/data/images/* directory by running the following
commands:
cd /home/sdmc/data/images