On 05/20/2013 01:33 PM, Alex Bligh wrote:
If I want to remove an osd, I use 'ceph out' before taking it down, i.e. 
stopping the OSD process, and removing the disk.

How do I (preferably programatically) tell when it is safe to stop the OSD 
process? The documentation says 'ceph -w', which is not especially helpful, (a) 
if I want to do it programatically, or (b) if there are other problems in the 
cluster so ceph was not reporting HEALTH_OK to start with.

Is there a better way?


We've had some discussions about this recently, but there's no great way of doing this right now. We should probably have a query option that returns "number of PGs on this OSD" or some such.


--
Dan Mick, Filesystem Engineering
Inktank Storage, Inc.   http://inktank.com
Ceph docs: http://ceph.com/docs
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to