Distributed block storage system for qemu
sheep [options] [PATH]
sheep - Sheepdog is a distributed storage system for QEMU. It provides highly available block level storage volumes to virtual machines. Sheepdog supports advanced volume management features such as snapshot, cloning, and thin provisioning. The architecture of Sheepdog is fully symmetric; there is no central node such as a meta-data server.
specify IP address of interface to listen on
$ sheep -b 192.168.1.1 ...
This tries to teach sheep listen to NIC of 192.168.1.1.
$ sheep -b 0.0.0.0 ...
This tries to teach sheep listen to all the NICs available. It can be useful when you want sheep to response dog without specified address and port.
specify the cluster driver (default: corosync)
local: use local driver corosync: use corosync driver zookeeper: use zookeeper driver, need extra arguments
zookeeper arguments: address-list,tiemout=value (default as 3000)
$ sheep -c zookeeper:IP1:PORT1,IP2:PORT2,IP3:PORT3,timeout=1000 ...
This tries to use 3 node zookeeper cluster, which can be reached by IP1:PORT1, IP2:PORT2, IP3:PORT3 to manage membership and broadcast message and set the timeout of node heartbeat as 1000 milliseconds
use direct IO for backend store
make the progam run as a gateway mode
display this help and exit
use separate network card to handle IO requests (default: disabled)
$ sheep -i host=192.168.1.1,port=7002 ...
This tries to add a dedicated IO NIC of 192.168.1.1:7002 to transfer data. If IO NIC is down, sheep will fallback to non IO NIC to transfer data.
use jouranl file to log all the write operations. (default: disabled)
size=: size of the journal in megabyes dir=: path to the location of the journal (default: $STORE) skip: if specified, skip the recovery at startup
$ sheep -j dir=/journal,size=1G
This tries to use /journal as the journal storage of the size 1G
specify the log level, the log directory and the log format(log level default: 6 [SDOG_INFO])
$ sheep -l dir=/var/log/,level=debug,format=server ...
dir=: path to the location of sheep.log level=: log level of sheep.log format=: log format type dst=: log destination type
if dir is not specified, use metastore directory
Available log levels:
Level Description emerg system has failed and is unusable alert action must be taken immediately crit critical conditions err error conditions warning warning conditions notice normal but significant conditions info informational notices debug debugging messages
default log level is info
Available log format:
FormatType Description default raw format server raw format with timestamp json json format
Available log destination:
DestinationType Description default dedicated file in a directory used by sheep syslog syslog of the system stdout standard output
drop O_SYNC for write of backend
specify the TCP port on which to listen (default: 7000)
create a pid file
enable http service. (default: disabled)
host=: specify a host to communicate with http server (default: localhost) port=: specify a port to communicate with http server (default: 8000) swift: enable swift API
$ sheep -r host=localhost,port=7001,swift ...
This tries to enable Swift API and use localhost:7001 to communicate with http server.
upgrade to the latest data layout
show the version
Sheepdog daemon version 0.8.3
enable object cache
size=: size of the cache in megabyes dir=: path to the location of the cache (default: $STORE/cache) directio: use directio mode for cache IO, if not specified use buffered IO
$ sheep -w size=200G,dir=/my_ssd,directio ...
This tries to use /my_ssd as the cache storage with 200G allocted to the cache in directio mode
specify the address advertised to other sheep
$ sheep -y 192.168.1.1:7000 ...
This tries to tell other nodes through what address they can talk to this sheep.
specify the zone id (default: determined by listen address)
$ sheep -z 1 ...
This tries to set the zone ID of this sheep to 1 and sheepdog won't store more than one copy of any object into this same zone
Proper LSB systems will store sheepdog files in /var/lib/sheepdog. The init script uses this directory by default. The directory must be on a filesystem with xattr support. In the case of ext3, user_xattr should be added to the mount options.
mount -o remount,user_xattr /var/lib/sheepdog
sheepdog requires QEMU 0.13.z or later and Corosync 1.y.z.
/var/lib/sheepdog - Directory containing block storage information
This software is developed by the sheepdog community which may be reached via mailing list at <[email protected]>.