Re: ceph start error

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

 



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]
Sent: Saturday, January 11, 2014 10:29 PM
To: You, Rong
Cc: ceph-users@xxxxxxxxxxxxxx
Subject: Re: [ceph-users] ceph start error

 

You need to add [mon.NAME] in the configuration file.

 

Example:

[mon.kvm01]

host = kvm01

 

[mon.kvm03]

host = kvm03

 

[mon.kvm02]

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-users] 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?

 


_______________________________________________
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

[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