Hi, When I use the ceph.conf as follows: [mon] mon data = ""> [mon.test-a] host = test-a mon addr = 10.239.82.163:6789 [mon.test-b] host = test-b mon addr = 10.239.82.95:6789 #####MDS##### [mds] keyring = /etc/ceph/keyring.$name ####OSD#### [osd] osd data = ""> osd journal size = 0 filestore xattr use omap = true keyring = /etc/ceph/keyring.$name osd mkfs type = xfs osd mount options xfs = rw osd mkfs options xfs = -f Then execute command:
mkcephfs -a -c /etc/ceph/ceph.conf -k /etc/ceph/keyring.admin –mkfs It will returns:
temp dir is /tmp/mkcephfs.ZqK0QIxgiF preparing monmap in /tmp/mkcephfs.ZqK0QIxgiF/monmap /usr/bin/monmaptool --create --clobber --add test-a 10.239.82.163:6789 --add test-b 10.239.82.95:6789 --print /tmp/mkcephfs.ZqK0QIxgiF/monmap /usr/bin/monmaptool: monmap file /tmp/mkcephfs.ZqK0QIxgiF/monmap /usr/bin/monmaptool: generated fsid fc99b196-b136-4a3b-89c5-59dcca57d8ab epoch 0 fsid fc99b196-b136-4a3b-89c5-59dcca57d8ab last_changed 2014-01-13 05:54:36.615483 created 2014-01-13 05:54:36.615483 0: 10.239.82.95:6789/0 mon.test-b 1: 10.239.82.163:6789/0 mon.test-a /usr/bin/monmaptool: writing epoch 0 to /tmp/mkcephfs.ZqK0QIxgiF/monmap (2 monitors) \nWARNING: mkcephfs is now deprecated in favour of ceph-deploy. Please see: \n http://github.com/ceph/ceph-deploy Building generic osdmap from /tmp/mkcephfs.ZqK0QIxgiF/conf /usr/bin/osdmaptool: osdmap file '/tmp/mkcephfs.ZqK0QIxgiF/osdmap' /usr/bin/osdmaptool: writing epoch 1 to /tmp/mkcephfs.ZqK0QIxgiF/osdmap Generating admin key at /tmp/mkcephfs.ZqK0QIxgiF/keyring.admin creating /tmp/mkcephfs.ZqK0QIxgiF/keyring.admin Building initial monitor keyring cat: /tmp/mkcephfs.ZqK0QIxgiF/key.*: No such file or directory \nWARNING: mkcephfs is now deprecated in favour of ceph-deploy. Please see: \n
http://github.com/ceph/ceph-deploy Then runs command: service ceph –a start It also hang on during ceph-create-keys === mon.test-a === Starting Ceph mon.test-a on test-a... failed: 'ulimit -n 131072; /usr/bin/ceph-mon -i test-a --pid-file /var/run/ceph/mon.test-a.pid -c /etc/ceph/ceph.conf ' Starting ceph-create-keys on test-a... === mon.test-b === Starting Ceph mon.test-b on test-b... failed: 'ssh test-b ulimit -n 131072; /usr/bin/ceph-mon -i test-b --pid-file /var/run/ceph/mon.test-b.pid -c /etc/ceph/ceph.conf ' Starting ceph-create-keys on test-b... In addition, all the command execute on test-a. And am I do something wrong during configuration or else? From: Ирек Фасихов [mailto:malmyzh@xxxxxxxxx]
You need to add [mon.NAME] in the configuration file. Example: [mon.kvm01] mon_addr =
192.168.100.1:6789 host = kvm01 [mon.kvm03] mon_addr =
192.168.100.3:6789 host = kvm03 [mon.kvm02] mon_addr =
192.168.100.2:6789 host = kvm02 2014/1/11 You, Rong <rong.you@xxxxxxxxx>
-- С уважением, Фасихов Ирек Нургаязович Моб.: +79229045757 |
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com