Re: ceph start error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tks! Actually now I have solved the problem. The process always hang because of the iptables of Centos started and didn't accepte the corresponding port.
Best regards!

-----Original Message-----
From: Alfredo Deza [mailto:alfredo.deza@xxxxxxxxxxx] 
Sent: Monday, January 13, 2014 9:43 PM
To: You, Rong
Cc: Ирек Фасихов; ceph-users@xxxxxxxxxxxxxx
Subject: Re:  ceph start error

On Sun, Jan 12, 2014 at 8:55 AM, You, Rong <rong.you@xxxxxxxxx> wrote:
> Hi,
>
> When I use the ceph.conf as follows:
>
> [mon]
>
>     mon data = /var/lib/ceph/mon/ceph-$id
>
> [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 = /mnt/osd/osd$id
>
>     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]
> Sent: Saturday, January 11, 2014 10:29 PM
>
>
> To: You, Rong
> Cc: ceph-users@xxxxxxxxxxxxxx
> Subject: Re:  ceph start error
>
>
>
> 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>
>
> But I have put the ceph.conf in the directory /etc/ceph/. How can I resolve
> it?
>
>
>
> From: Ирек Фасихов [mailto:malmyzh@xxxxxxxxx]
> Sent: Saturday, January 11, 2014 10:24 PM
> To: You, Rong
> Cc: ceph-users@xxxxxxxxxxxxxx
> Subject: Re:  ceph start error
>
>
>
> global_init: unable to open config file from search list /etc/ceph/ceph.conf
>
>
>
> 2014/1/11 You, Rong <rong.you@xxxxxxxxx>
>
> Hi,
>
>          I encounter a problem when startup the ceph cluster.
>
>          When run the command: service ceph -a start,
>
> The process always hang up. The error result is:
>
>
>
> [root@test-c ceph]# service ceph -a start
>
> === mon.0 ===
>
> Starting Ceph mon.0 on test-c...
>
> failed: 'ulimit -n 131072;  /usr/bin/ceph-mon -i 0 --pid-file
> /var/run/ceph/mon.0.pid -c /etc/ceph/ceph.conf '
>
> Starting ceph-create-keys on test-c...
>
> === mon.1 ===
>
> Starting Ceph mon.1 on test-d...
>
> global_init: unable to open config file from search list /etc/ceph/ceph.conf
>
> failed: 'ssh test-d ulimit -n 131072;  /usr/bin/ceph-mon -i 1 --pid-file
> /var/run/ceph/mon.1.pid -c /etc/ceph/ceph.conf '
>
> Starting ceph-create-keys on test-d...
>
>
>
> The process hangs and wait. Anybody know the reason for these? And how can I
> solve such problem?

You are using a deprecated tool (mkcephfs) that is no longer supported
and it is known to have issues
that are not being fixed. This is also present in the log ouput you pasted.

If you could try with ceph-deploy (the supported tool) we might be
able to help you out if something
is not working right.



>
>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>
>
>
>
> --
>
> С уважением, Фасихов Ирек Нургаязович
>
> Моб.: +79229045757
>
>
>
>
>
> --
>
> С уважением, Фасихов Ирек Нургаязович
>
> Моб.: +79229045757
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux