インストール ( Fedora 15 )
yumでインストール
# yum install sheepdog
git からインストール
# yum -y install corosync
# yum -y install git autoconf automake make gcc corosynclib-devel rpm-build
# cd /usr/local/src
# git clone git://github.com/collie/sheepdog.git
# cd sheepdog
# ./autogen.sh
# ./configure
バージョンに '-' が入っている場合
rpmbuild の Illegal char 回避のため '-' を '_' に修正
error: line 3: Illegal char '-' in: Version: 0.2.3-88-g20bb9a7
# vi Makefile
====
VERSION = 0.2.3-88-g20bb9a7
↓
VERSION = 0.2.3_88_g20bb9a7
====
# make rpm
# rpm -ivh x86_64/sheepdog-0.*
log level
デフォルトはINFO
http://www.mail-archive.com/sheepdog@lists.wpkg.org/msg00246.html
SDOG_EMERG 0
SDOG_ALERT 1
SDOG_CRIT 2
SDOG_ERR 3
SDOG_WARNING 4
SDOG_NOTICE 5
SDOG_INFO 6
SDOG_DEBUG 7
...
By default, collie prints messages that are more important than
INFO. You can change the default log level with "loglevel" boot
option.
...
$ collie cluster format --help
cluster format - create a Sheepdog storage
Usage:
collie cluster format [-c copies] [-H] [-a address] [-p port] [-h]
Command parameters:
-c, --copies set the number of data redundancy
-H, --nohalt serve the IO rquests even lack of enough redundant nodes
-a, --address specify the daemon address (default: localhost)
-p, --port specify the daemon port
-h, --help display this help and exit