The server daemon is called sheep(8). A command line utility is available via dog(8). QEMU virtual machines use the sheep daemon via a block driver available in qemu(1).
Example:
$ sheep -b 192.168.1.1 ...
This tries to teach sheep listen to NIC of 192.168.1.1.
Example:
$ 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.
Available arguments:
local: use local driver
corosync: use corosync driver
zookeeper: use zookeeper driver, need extra arguments
zookeeper arguments: connection-string,timeout=value (default as 3000)
Example:
$ sheep -c zookeeper:IP1:PORT1,IP2:PORT2,IP3:PORT3[/cluster_id][,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. cluster_id is used to identify which cluster it belongs to, if not set, /sheepdog is used internally as default.
Example:
$ 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.
Available arguments:
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
Example:
$ sheep -j dir=/journal,size=1G
This tries to use /journal as the journal storage of the size 1G
Example:
$ sheep -l dir=/var/log/,level=debug,format=server ...
Available arguments:
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
Available arguments:
max=: object recovery process maximum count of each interval
interval=: object recovery interval time (millisec)
Example:
$ sheep -R max=50,interval=1000 ...
Sheepdog daemon version 1.0.1
Example:
$ sheep -V 128
set number of vnodes
Example:
$ sheep -y 192.168.1.1 ...
This tries to tell other nodes through what address they can talk to this sheep.
Example:
$ 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
mount -o remount,user_xattr /var/lib/sheepdog