On 8/31/19 12:33 AM, Brett Chancellor wrote:
Before I write something that's already been done,
are there any built
in utilities or tools that can tell me if it's safe to reboot a host?
I'm looking for something better than just checking the health status,
but rather checking pg status and ensuring that a reboot wouldn't take
any undersized PGs offline. Thanks.
Yes you can!
Find OSD's by bucket, like `ceph osd ls-tree <host>`, then check this
OSD's is safe for maintenance `ceph osd ok-to-stop <osd.n>`.
k