Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Change PG number on the fly

Good day friends !

Please adwise me, how to change PG number on the fly ?

Many thanks !

 

We do not support doing this via the ui. Note this number affects how your data is hashed/sharded to disks, a change is likely to cause a massive data re-balance,  this could put a lot of stress on your cluster if your hardware is not fast enough.

So if you really need to, you need to use the Ceph cli directly. Look up help in the Ceph docs on the following:

ceph osd pool set {pool_name} pg_num {value}
ceph osd pool set {pool_name} pgp_num {value}

Also due to the impact described above, the commands will let you do small increments at a time. again be sure you know what you are doing.

 

Admin, many thanks !

Cheers , Alex 🙂