Re: ceph start error

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

 



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