Simple use of sheepdog under CENTOS7

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.