How do i change the gluster volume configuration?



  • List of gluster volume options:
    Link: https://gluster.readthedocs.io/en/latest/Administrator Guide/Managing Volumes/

    Let's say we want to change configuration value of nfs.disable to "off"

    Check the setting before

    Volume Name: gv0
    Type: Replicate
    Volume ID: e4454eb2-b87f-4855-bb3e-5ee1b72c169d
    Status: Started
    Snapshot Count: 0
    Number of Bricks: 1 x 2 = 2
    Transport-type: tcp
    Bricks:
    Brick1: glusterforce1:/data/brick1/gv0
    Brick2: glusterforce2:/data/brick1/gv0
    Options Reconfigured:
    changelog.capture-del-path: on
    changelog.changelog: on
    storage.build-pgfid: on
    transport.address-family: inet
    performance.readdir-ahead: on
    nfs.disable: on
    

    Change the setting.

    gluster1> sudo gluster volume set gv0 nfs.disable off
    volume set: success
    gluster1> sudo gluster volume info gv0
    

    Check the setting has been set.

    Volume Name: gv0
    Type: Replicate
    Volume ID: e4454eb2-b87f-4855-bb3e-5ee1b72c169d
    Status: Started
    Snapshot Count: 0
    Number of Bricks: 1 x 2 = 2
    Transport-type: tcp
    Bricks:
    Brick1:server1:/data/brick1/gv0
    Brick2:server2:/data/brick1/gv0
    Options Reconfigured:
    changelog.capture-del-path: on
    changelog.changelog: on
    storage.build-pgfid: on
    transport.address-family: inet
    performance.readdir-ahead: on
    nfs.disable: off
    

Log in to reply
 

© Lightnetics 2024