Manual changes made on `cephfs pools` are reverting back after stack update

Solution Verified - Updated -

Issue

  • Changes made on cephfs pools manually by executing ceph commands are reverting back while performing stack update

    Note : In this document we are taking pg_autoscale mode of cephfs pools as an example.

  • Let the names of cephfs pools be cephfs_data and cephfs_metadata

  • Manually set the pg_autoscale mode of cephfs pools to true using below command

    # ceph osd pool set  cephfs_data  pg_autoscale_mode on
    # ceph osd pool set  cephfs_metadata  pg_autoscale_mode on
    
  • The pg_autoscale_mode of cephfs pools set to on after executing above commands. The output will look like below,

    root@server1 ~]# ceph osd pool autoscale-status | grep cephfs
    POOL                  SIZE TARGET SIZE RATE RAW CAPACITY  RATIO TARGET RATIO EFFECTIVE RATIO BIAS PG_NUM NEW 
    PG_NUM AUTOSCALE
    
    cephfs_data          4590G              2.0       119.2T 0.0752                               1.0    512            
    on
    cephfs_metadata      9082M              2.0       119.2T 0.0001                               4.0     16            
    on
    
  • On stack update, ceph changes made got reverted back to off

    [root@server1 ~]# ceph osd pool autoscale-status | grep cephfs
    POOL                  SIZE TARGET SIZE RATE RAW CAPACITY  RATIO TARGET RATIO EFFECTIVE RATIO BIAS PG_NUM NEW 
    PG_NUM AUTOSCALE
    
    cephfs_data          4590G              2.0       119.2T 0.0752                               1.0    512            
    off
    cephfs_metadata      9082M              2.0       119.2T 0.0001                               4.0     16            
    off
    

Environment

RHOSP 16.2
RHCS 4.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content