On 23/09/14 18:22, Aegeaner wrote:
Now I use the following script to create key/value backended OSD, but
the OSD is created down and never go up.

    ceph osd create
    umount /var/lib/ceph/osd/ceph-0
    rm -rf /var/lib/ceph/osd/ceph-0
    mkdir /var/lib/ceph/osd/ceph-0
    ceph osd crush add osd.0 1 root=default host=CVM-0-11
    mkfs -t xfs -f /dev/hioa
    mount  /dev/hioa /var/lib/ceph/osd/ceph-0
    ceph-osd --id 0 --mkkey --mkfs --osd-data /var/lib/ceph/osd/ceph-0
    /etc/init.d/ceph start osd.0


Anything goes wrong?



Ahh - looking closer - you are missing a step to register the osd key before trying to start it. E.g I do:

$ ceph auth add osd.${OSD_ID} osd 'allow *' mon 'allow profile osd' \
         -i /var/lib/ceph/osd/ceph-${OSD_ID}/keyring

...which is why I save the OSD_ID when I do a create of the osd (It'll be zero in most cases where you are doing this, but in case you want to expand the script to create more osd this is the right way)!

Cheers

Mark
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to