On 19/06/15 16:07, Jelle de Jong wrote: > Hello everybody, > > I'm doing some experiments and I am trying to re-add an removed osd. I > removed it with the bellow five commands. > > http://ceph.com/docs/master/rados/operations/add-or-rm-osds/ > > ceph osd out 5 > /etc/init.d/ceph stop osd.5 > ceph osd crush remove osd.5 > ceph auth del osd.5 > ceph osd rm 5 > > I think I added the auth back correctly, but I cant figure out the right > crush add commands? > > ceph auth add osd.5 osd 'allow *' mon 'allow rwx' -i > /var/lib/ceph/osd/ceph-5/keyring > > root@ceph03:~# /etc/init.d/ceph start osd.5 > === osd.5 === > Error ENOENT: osd.5 does not exist. create it before updating the crush map > failed: 'timeout 30 /usr/bin/ceph -c /etc/ceph/ceph.conf --name=osd.5 > --keyring=/var/lib/ceph/osd/ceph-5/keyring osd crush create-or-move -- 5 > 0.91 host=ceph03 root=default' > > Can somebody show me some examples of the right commands to re-add? I figured it out myself :) root@ceph03:~# ceph osd create 5 root@ceph03:~# ceph osd crush add 5 0.0 host=ceph03 root=default add item id 5 name 'osd.5' weight 0 at location {host=ceph03,root=default} to crush map root@ceph03:~# /etc/init.d/ceph start osd.5 === osd.5 === create-or-move updated item name 'osd.5' weight 0.91 at location {host=ceph03,root=default} to crush map Starting Ceph osd.5 on ceph03... starting osd.5 at :/0 osd_data /var/lib/ceph/osd/ceph-5 /var/lib/ceph/osd/ceph-5/journal Kind regards, Jelle de Jong _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com