> Why wait for the data to migrate away? Normally you have replicas of the 
> whole osd data, so you can simply stop the osd, reformat the disk and restart 
> it again. It'll join the cluster and automatically get all data it's missing. 
> Of course the risk of dataloss is a bit higher during that time, but normally 
> that should be ok, because it's not different from an ordinary disk failure 
> which can happen any time.
> 
> I just found a similar question from one year ago: 
> http://www.spinics.net/lists/ceph-devel/msg05915.html I didn't read the whole 
> thread, but probably you can find some other ideas there.
> 
> service ceph osd stop $OSD
> mkfs -t xfs /dev/XXX
> ceph-osd -i $OSD --mkfs --mkkey --mkjournal
> service ceph osd start $OSD


this is what I did now:

ceph osd set noout
service ceph stop osd.X
umount /dev/sdX1
mkfs.xfs -f -i size=2048 /dev/sdX1 -L osd.X
vim /etc/fstab # edit line for /dev/sdX1
mount /dev/sdX1
ceph-osd -i X --mkfs --mkkey --mkjournal
ceph auth add osd.X osd 'allow *' mon 'allow rwx' -i 
/var/lib/ceph/osd/ceph-X/keyring
service ceph start osd.X

seems to work so far, the OSD is busy retrieving data - and I didn't have to 
wait for the OSD to become empty.

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

Reply via email to