Hi All,

I’m new to Ceph, I’m trying to install Ceph on VMs on my laptop.

I’m running CentOS Linux release 7.3.1611 (Core) with kernel 4.4.39 and Ceph 
10.2.5

I’ve the following config file:

[root@ceph-mon ~]# cat /etc/ceph/ceph.conf
fsid = 6f34b66d-1893-4d4b-8e20-08206525a0a5
mon initial members = ceph-mon
mon host = 192.168.56.101
cluster network = 192.168.56.101/24
auth cluster required = cephx
auth service required = cephx
auth client required = cephx
osd journal size = 1024
osd pool default size = 2            # Write an object n times.
osd pool default min size = 1        # Allow writing n copy in a degraded state.
osd pool default pg num = 333
osd pool default pgp num = 333
osd crush chooseleaf type = 1


then I ran the following:

[root@ceph-mon ~]# ceph-authtool --create-keyring /tmp/ceph.mon.keyring 
--gen-key -n mon. --cap mon 'allow *’
creating /tmp/ceph.mon.keyring
[root@ceph-mon ~]# ceph-authtool --create-keyring 
/etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --set-uid=0 --cap 
mon 'allow *' --cap osd 'allow *' --cap mds 'allow'
creating /etc/ceph/ceph.client.admin.keyring
[root@ceph-mon ~]# ceph-authtool /tmp/ceph.mon.keyring --import-keyring 
/etc/ceph/ceph.client.admin.keyring
importing contents of /etc/ceph/ceph.client.admin.keyring into 
/tmp/ceph.mon.keyring
[root@ceph-mon ~]# monmaptool --create --add ceph-mon 192.168.56.101 --fsid 
6f34b66d-1893-4d4b-8e20-08206525a0a5 /tmp/monmap
monmaptool: monmap file /tmp/monmap
monmaptool: set fsid to 6f34b66d-1893-4d4b-8e20-08206525a0a5
monmaptool: writing epoch 0 to /tmp/monmap (1 monitors)
[root@ceph-mon ~]# chmod +r /tmp/ceph.mon.keyring
[root@ceph-mon ~]# chmod +r /tmp/monmap
[root@ceph-mon ~]# sudo -u ceph ceph-mon --cluster ceph --mkfs -i ceph-mon 
--monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
ceph-mon: set fsid to 6f34b66d-1893-4d4b-8e20-08206525a0a5
ceph-mon: created monfs at /var/lib/ceph/mon/ceph-ceph-mon for mon.ceph-mon
[root@ceph-mon ~]# touch /var/lib/ceph/mon/ceph-ceph-mon/done
[root@ceph-mon ~]# systemctl start ceph.target


Then I try to verify that the monitor is running, I get this:

[root@ceph-mon ~]# ceph -s
2017-01-03 23:59:10.741193 7ff1c8580700  0 -- :/915241400 >> 
192.168.56.101:6789/0 pipe(0x7ff1c4064290 sd=3 :0 s=1 pgs=0 cs=0 l=1 
c=0x7ff1c405c820).fault
^CTraceback (most recent call last):
  File "/usr/bin/ceph", line 948, in <module>
    retval = main()
  File "/usr/bin/ceph", line 852, in main
    prefix='get_command_descriptions')
  File "/usr/lib/python2.7/site-packages/ceph_argparse.py", line 1300, in 
json_command
    raise RuntimeError('"{0}": exception {1}'.format(argdict, e))
RuntimeError: "None": exception "['{"prefix": "get_command_descriptions"}']": 
exception You cannot perform that operation on a Rados object in state 
configuring.


Any clue on what am I doing wrong?!


— Bishoy
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to