Can ceph-deploy be used with 'osd objectstore = keyvaluestore-dev' in config file ?

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

 



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


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux