Is there any command (in shell or python API), that can tell me if
ceph is still creating pgs other than actually attempting a
modification of the pg_num or pgp_num of a pool?  I would like to
minimize the number of errors I get and not keep trying the commands
until success, if possible.

Right now, I run the command "ceph osd pool set <pool> pg_num <val>"
and immediately attempt he "ceph osd pool set <pool> pgp_num <val>"
command, repeating the latter until success happens or I get an error
other than "still creating pgs"

It would be nice to run the first command, wait for the cluster to be
ready again, then run the second.

As a bonus, if there is a reasonable way to do this (expand pgs)
entirely in python without running any shell commands, that would be
awesome.

-Mandell
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to