Tks, but it still not works well. I find that there is something wrong happens when run command: mkcephfs -a -c /etc/ceph/ceph.conf -k /etc/ceph/keyring.admin –mkfs And the result is as follows: [root@test-a ceph]# mkcephfs -a -c /etc/ceph/ceph.conf -k /etc/ceph/keyring.admin temp dir is /tmp/mkcephfs.zNqVkClAC2 preparing monmap in /tmp/mkcephfs.zNqVkClAC2/monmap /usr/bin/monmaptool --create --clobber --add 0 10.239.82.163:6789 --add 1 10.239.82.95:6789 --print /tmp/mkcephfs.zNqVkClAC2/monmap /usr/bin/monmaptool: monmap file /tmp/mkcephfs.zNqVkClAC2/monmap /usr/bin/monmaptool: generated fsid 586637b6-0145-435a-bdc1-5dbb8f2bb2ae epoch 0 fsid 586637b6-0145-435a-bdc1-5dbb8f2bb2ae last_changed 2014-01-12 18:23:54.207777 created 2014-01-12 18:23:54.207777 0: 10.239.82.95:6789/0 mon.1 1: 10.239.82.163:6789/0 mon.0 /usr/bin/monmaptool: writing epoch 0 to /tmp/mkcephfs.zNqVkClAC2/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.zNqVkClAC2/conf /usr/bin/osdmaptool: osdmap file '/tmp/mkcephfs.zNqVkClAC2/osdmap' /usr/bin/osdmaptool: writing epoch 1 to /tmp/mkcephfs.zNqVkClAC2/osdmap Generating admin key at /tmp/mkcephfs.zNqVkClAC2/keyring.admin creating /tmp/mkcephfs.zNqVkClAC2/keyring.admin Building initial monitor keyring cat: /tmp/mkcephfs.zNqVkClAC2/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 My ceph.conf is : [global] max open files = 131072 keyring = /etc/ceph/keyring.admin #####MON##### [mon] mon data = ""> [mon.0] host = test-a mon addr = 10.239.82.163:6789 [mon.1] host = test-b mon addr = 10.239.82.95:6789 #####MDS##### [mds] keyring = /etc/ceph/keyring.$name what is the problem in my settings? 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