Here is my ceph.conf at /home/ceph/ceph.conf
$ cat ceph_conf/ceph.conf
[global]
log dir = $CEPH_CONF/out
logger dir = $CEPH_CONF/log
chdir = ""
pid file = $CEPH_CONF/out/$type$id.pid
[mds]
pid file = $CEPH_CONF/out/$name.pid
lockdep = 1
debug ms = 1
debug mds = 20
mds log max segments = 2
[mds0]
host=hdp2
[mds1]
host=hdp3
[mon]
lockdep = 1
debug mon = 20
debug paxos = 20
debug ms = 1
[mon0]
host = hdp2
mon data = $CEPH_OSD_DIR/dev/mon0"
mon addr = 192.168.0.2:6789
[mon1]
host = hdp3
mon data = $CEPH_OSD_DIR/dev/mon1"
mon addr = 192.168.0.3:6789
[osd]
lockdep = 1
debug ms = 1
debug osd = 25
debug journal = 20
debug filestore = 10
[osd0]
host = hdp4
user $USER
osd data = $CEPH_OSD_DIR/dev/osd0
osd journal = $CEPH_OSD_DIR/dev/osd0/journal
osd journal size = 100
[osd1]
host = hdp5
user $USER
osd data = $CEPH_OSD_DIR/dev/osd1
osd journal = $CEPH_OSD_DIR/dev/osd1/journal
osd journal size = 100
[osd2]
host = hdp6
user $USER
osd data = $CEPH_OSD_DIR/dev/osd2
osd journal = $CEPH_OSD_DIR/dev/osd2/journal
osd journal size = 100
[mds.a]
Some envionment variables were defined at file ~/.bashrc on each node.
# ceph
export CEPH_HOME=$HOME/ceph
export CEPH_CONF_DIR=$HOME/ceph_conf
export CEPH_OSD_DIR=$HOME/ceph_osd
export PATH=${CEPH_HOME}/bin:${CEPH_HOME}/sbin:${PATH}
# ceph end
I built ceph from the source into a sub-directory of the user home.
Thanks,
Min
On Wed, Jun 16, 2010 at 4:12 AM, Yehuda Sadeh Weinraub
<[email protected]> wrote:
> On Tue, Jun 15, 2010 at 1:09 PM, Min Zhou <[email protected]> wrote:
>> Hi all,
>>
>> I am a newbie of ceph, and didn't find any ceph mailing list for
>> users, so I send a mail here ask for helping.
>> below is the error information
>>
>> $ mkcephfs --allhosts -c ceph_conf/ceph.conf -v
>> /home/ceph/ceph/bin/cconf -c ceph_conf/ceph.conf -i 0 -t mon "mon addr" ""
>> /home/ceph/ceph/bin/cconf -c ceph_conf/ceph.conf -i 1 -t mon "mon addr" ""
>> /home/ceph/ceph/bin/monmaptool --create --clobber --add
>> 192.168.0.2:6789 --add 192.168.0.3:6789 --print /tmp/monmap.8107
>> /home/ceph/ceph/bin/monmaptool: monmap file /tmp/monmap.8107
>> /home/ceph/ceph/bin/monmaptool: generated fsid
>> 2b00c868-cfd6-2473-c27d-302b5cddc194
>> epoch 1
>> fsid 2b00c868-cfd6-2473-c27d-302b5cddc194
>> last_changed 10.06.16 04:02:28.247612
>> created 10.06.16 04:02:28.247612
>> mon0 192.168.0.2:6789/0
>> mon1 192.168.0.3:6789/0
>> /home/ceph/ceph/bin/monmaptool: writing epoch 1 to /tmp/monmap.8107 (2
>> monitors)
>> max osd in ceph_conf/ceph.conf is 2, num osd is 3
>> /home/ceph/ceph/bin/osdmaptool: osdmap file '/tmp/osdmap.8107'
>> /home/ceph/ceph/bin/osdmaptool: writing epoch 1 to /tmp/osdmap.8107
>> /home/ceph/ceph/bin/cconf -c ceph_conf/ceph.conf -i 1 -t mon "crush map
>> src" ""
>> /home/ceph/ceph/bin/cconf -c ceph_conf/ceph.conf -i 1 -t mon "crush map" ""
>> Building admin keyring at /tmp/admin.keyring.8107
>> creating /tmp/admin.keyring.8107
>> Building monitor keyring with all service keys
>> creating /tmp/monkeyring.8107
>> importing contents of /tmp/admin.keyring.8107 into /tmp/monkeyring.8107
>> creating /tmp/keyring.mds.0
>> importing contents of /tmp/keyring.mds.0 into /tmp/monkeyring.8107
>> creating /tmp/keyring.mds.1
>> importing contents of /tmp/keyring.mds.1 into /tmp/monkeyring.8107
>> creating /tmp/keyring.mds.a
>> importing contents of /tmp/keyring.mds.a into /tmp/monkeyring.8107
>> creating /tmp/keyring.osd.0
>> importing contents of /tmp/keyring.osd.0 into /tmp/monkeyring.8107
>> creating /tmp/keyring.osd.1
>> importing contents of /tmp/keyring.osd.1 into /tmp/monkeyring.8107
>> creating /tmp/keyring.osd.2
>> importing contents of /tmp/keyring.osd.2 into /tmp/monkeyring.8107
>> /home/ceph/ceph/bin/cconf -c ceph_conf/ceph.conf -i 0 -t mon "user" ""
>> === mon0 ===
>> /home/ceph/ceph/bin/cconf -c ceph_conf/ceph.conf -i 0 -t mon "mon data" ""
>> /home/ceph/ceph/lib/ceph/ceph_common.sh: eval: line 167: unexpected
>
> Can you send your ceph.conf?
>
> Thanks,
> Yehuda
>
--
My research interests are distributed systems, parallel computing and
bytecode based virtual machine.
My profile:
http://www.linkedin.com/in/coderplay
My blog:
http://coderplay.javaeye.com
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html