1. Start Corosync, Sheepdog
/bin/systemctl Start Corosync.service
/bin/systemctl Start Sheepdog.service
2. Start Sheep
Sheep/store_dir
This whole process will create a directory of the given name, the default is TMP (the command above is set to Store_dir) and in this directory
Set up Obj,epoch and journal directories to hold different information, obj holds object information including VDI
Objects and Data Objects, journal information, epoch version information.
If this is the Ext3 file system, you need to add xattr
sudo mount-o remount,user_xattr/store_device
3. Format the sheepdog cluster, set the number of copies of the data saved in the cluster
Dog cluster Format--copies=3
4. View the number of cluster nodes and other information
Dog Node List
5. Create a 256G virtual image named Alice
QEMU-IMG Create Sheepdog:alice 256G
6. Convert an existing KVM image to sheepdog
Qemu-img Convert ~/amd64.raw Sheepdog:bob
7. View some information for all VDI
Dog VDI List
8. Start the virtual machine
Qemu-system-x86_64-hda Sheepdog:alice
9. View the mirror being used
Dog VM List
Prompt without VM command when actually using
10. Create a snapshot of a virtual machine
QEMU-IMG snapshot-c name Sheepdog:alice
11. Cloning a new virtual machine from a snapshot
Qemu-img create-b sheepdog:alice:1 Sheepdog:charlie
12. Close all sheep processes in the cluster, turn off sheepdog
Dog cluster shutdown