Thanks for this -- it is indeed pretty close to what I was looking for. I'll look more in detail at its heuristic to confirm it's correctly telling you which OSDs are safe to remove or not.
BTW, I had to update all the maps to i64 from i32 to make this work -- I'll be sending a pull req. -- Dan On Fri, Jul 28, 2017 at 9:39 PM, Alexandre Germain <[email protected]> wrote: > Hello Dan, > > Something like this maybe? > > https://github.com/CanonicalLtd/ceph_safe_disk > > Cheers, > > Alex > > 2017-07-28 9:36 GMT-04:00 Dan van der Ster <[email protected]>: >> >> Hi all, >> >> We are trying to outsource the disk replacement process for our ceph >> clusters to some non-expert sysadmins. >> We could really use a tool that reports if a Ceph OSD *would* or >> *would not* be safe to stop, e.g. >> >> # ceph-osd-safe-to-stop osd.X >> Yes it would be OK to stop osd.X >> >> (which of course means that no PGs would go inactive if osd.X were to >> be stopped). >> >> Does anyone have such a script that they'd like to share? >> >> Thanks! >> >> Dan >> _______________________________________________ >> ceph-users mailing list >> [email protected] >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > > _______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
