[Bugs] [Bug 1286346] Data Tiering:Don't allow or reset the frequency threshold values to zero when record counter features.record-counter is turned off

bugzilla at redhat.com bugzilla at redhat.com
Tue Dec 8 15:11:03 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1286346

Sweta Anandpara <sanandpa at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |josferna at redhat.com
              Flags|                            |needinfo?(josferna at redhat.c
                   |                            |om)



--- Comment #22 from Sweta Anandpara <sanandpa at redhat.com> ---
Tested and verified this on the build glusterfs-3.7.5-9.el7rhgs.x86_64

The scenarios tested:

Case 1: If read and write counters are set to a non-zero value, setting
features.record-counters to 'off' fails with an error message, as expected.

Case 2: When read and write counters are set to '0', then
features.record-counters is automatically set to 'off', as expected

Case 3: If both the read/write counters are set to '0', setting
features.record-counters to 'on' does *not* pop a note mentioning the same. The
fix mentions that a note should be displayed

Case 4: If any of the read/write counters are set to non-zero value, then
features.record-counters is set to 'on', as expected

Could you please check in, on case 3? It would be good to have a note displayed
on the screen prompting the user to update the read/write counters.


Case 1 logs:
==============
[root at dhcp37-55 ~]# gluster v info nash

Volume Name: nash
Type: Tier
Volume ID: 66caac13-cb0a-4a5d-93e3-544ad19472c2
Status: Started
Number of Bricks: 10
Transport-type: tcp
Hot Tier :
Hot Tier Type : Distributed-Replicate
Number of Bricks: 2 x 2 = 4
Brick1: 10.70.37.203:/rhs/thinbrick2/nash2
Brick2: 10.70.37.55:/rhs/thinbrick2/nash2
Brick3: 10.70.37.203:/rhs/thinbrick2/nash
Brick4: 10.70.37.55:/rhs/thinbrick2/nash
Cold Tier:
Cold Tier Type : Disperse
Number of Bricks: 1 x (4 + 2) = 6
Brick5: 10.70.37.55:/rhs/thinbrick1/nash
Brick6: 10.70.37.203:/rhs/thinbrick1/nash
Brick7: 10.70.37.210:/rhs/thinbrick1/nash
Brick8: 10.70.37.141:/rhs/thinbrick1/nash
Brick9: 10.70.37.210:/rhs/thinbrick2/nash
Brick10: 10.70.37.141:/rhs/thinbrick2/nash
Options Reconfigured:
cluster.tier-mode: cache
features.ctr-enabled: on
cluster.disperse-self-heal-daemon: enable
performance.readdir-ahead: on
nfs.disable: off
ganesha.enable: off
features.record-counters: 1
cluster.write-freq-threshold: 4
cluster.read-freq-threshold: 4
nfs-ganesha: disable
cluster.enable-shared-storage: enable
[root at dhcp37-55 ~]# gluster v set nash features.record-counters 0
volume set: failed: Cannot set features.record-counters to "0" as
cluster.write-freq-threshold is 4 and cluster.read-freq-threshold is 4. Please
set both cluster.write-freq-threshold and  cluster.read-freq-threshold to 0, to
set  features.record-counters to "0".
[root at dhcp37-55 ~]# gluster v set nash features.record-counters off
volume set: failed: Cannot set features.record-counters to "off" as
cluster.write-freq-threshold is 4 and cluster.read-freq-threshold is 4. Please
set both cluster.write-freq-threshold and  cluster.read-freq-threshold to 0, to
set  features.record-counters to "off".
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# 



Case 2 logs
=============

[root at dhcp37-55 ~]# gluster v set nash cluster.write-freq-threshold 0
volume set: success
[root at dhcp37-55 ~]# gluster v set nash cluster.read-freq-threshold 0
volume set: success
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# gluster v info nash

Volume Name: nash
Type: Tier
Volume ID: 66caac13-cb0a-4a5d-93e3-544ad19472c2
Status: Started
Number of Bricks: 10
Transport-type: tcp
Hot Tier :
Hot Tier Type : Distributed-Replicate
Number of Bricks: 2 x 2 = 4
Brick1: 10.70.37.203:/rhs/thinbrick2/nash2
Brick2: 10.70.37.55:/rhs/thinbrick2/nash2
Brick3: 10.70.37.203:/rhs/thinbrick2/nash
Brick4: 10.70.37.55:/rhs/thinbrick2/nash
Cold Tier:
Cold Tier Type : Disperse
Number of Bricks: 1 x (4 + 2) = 6
Brick5: 10.70.37.55:/rhs/thinbrick1/nash
Brick6: 10.70.37.203:/rhs/thinbrick1/nash
Brick7: 10.70.37.210:/rhs/thinbrick1/nash
Brick8: 10.70.37.141:/rhs/thinbrick1/nash
Brick9: 10.70.37.210:/rhs/thinbrick2/nash
Brick10: 10.70.37.141:/rhs/thinbrick2/nash
Options Reconfigured:
cluster.tier-mode: cache
features.ctr-enabled: on
cluster.disperse-self-heal-daemon: enable
performance.readdir-ahead: on
nfs.disable: off
ganesha.enable: off
features.record-counters: off
cluster.write-freq-threshold: 0
cluster.read-freq-threshold: 0
nfs-ganesha: disable
cluster.enable-shared-storage: enable
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# 



Case 3 logs:
=============

[root at dhcp37-55 ~]# gluster v set nash features.record-counters on
volume set: success
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# gluster v info nash

Volume Name: nash
Type: Tier
Volume ID: 66caac13-cb0a-4a5d-93e3-544ad19472c2
Status: Started
Number of Bricks: 10
Transport-type: tcp
Hot Tier :
Hot Tier Type : Distributed-Replicate
Number of Bricks: 2 x 2 = 4
Brick1: 10.70.37.203:/rhs/thinbrick2/nash2
Brick2: 10.70.37.55:/rhs/thinbrick2/nash2
Brick3: 10.70.37.203:/rhs/thinbrick2/nash
Brick4: 10.70.37.55:/rhs/thinbrick2/nash
Cold Tier:
Cold Tier Type : Disperse
Number of Bricks: 1 x (4 + 2) = 6
Brick5: 10.70.37.55:/rhs/thinbrick1/nash
Brick6: 10.70.37.203:/rhs/thinbrick1/nash
Brick7: 10.70.37.210:/rhs/thinbrick1/nash
Brick8: 10.70.37.141:/rhs/thinbrick1/nash
Brick9: 10.70.37.210:/rhs/thinbrick2/nash
Brick10: 10.70.37.141:/rhs/thinbrick2/nash
Options Reconfigured:
cluster.tier-mode: cache
features.ctr-enabled: on
cluster.disperse-self-heal-daemon: enable
performance.readdir-ahead: on
nfs.disable: off
ganesha.enable: off
features.record-counters: on
cluster.write-freq-threshold: 0
cluster.read-freq-threshold: 0
nfs-ganesha: disable
cluster.enable-shared-storage: enable
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# 


Case 4 logs
=============

[root at dhcp37-55 ~]# gluster v set nash features.record-counters off
volume set: success
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# gluster v info nash

Volume Name: nash
Type: Tier
Volume ID: 66caac13-cb0a-4a5d-93e3-544ad19472c2
Status: Started
Number of Bricks: 10
Transport-type: tcp
Hot Tier :
Hot Tier Type : Distributed-Replicate
Number of Bricks: 2 x 2 = 4
Brick1: 10.70.37.203:/rhs/thinbrick2/nash2
Brick2: 10.70.37.55:/rhs/thinbrick2/nash2
Brick3: 10.70.37.203:/rhs/thinbrick2/nash
Brick4: 10.70.37.55:/rhs/thinbrick2/nash
Cold Tier:
Cold Tier Type : Disperse
Number of Bricks: 1 x (4 + 2) = 6
Brick5: 10.70.37.55:/rhs/thinbrick1/nash
Brick6: 10.70.37.203:/rhs/thinbrick1/nash
Brick7: 10.70.37.210:/rhs/thinbrick1/nash
Brick8: 10.70.37.141:/rhs/thinbrick1/nash
Brick9: 10.70.37.210:/rhs/thinbrick2/nash
Brick10: 10.70.37.141:/rhs/thinbrick2/nash
Options Reconfigured:
cluster.tier-mode: cache
features.ctr-enabled: on
cluster.disperse-self-heal-daemon: enable
performance.readdir-ahead: on
nfs.disable: off
ganesha.enable: off
features.record-counters: off
cluster.write-freq-threshold: 0
cluster.read-freq-threshold: 0
nfs-ganesha: disable
cluster.enable-shared-storage: enable
[root at dhcp37-55 ~]# gluster v set cluster.read-freq-threshold 100
Usage: volume set <VOLNAME> <KEY> <VALUE>
[root at dhcp37-55 ~]# gluster v set nash cluster.read-freq-threshold 100
volume set: success
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# gluster v get nash features.record-counters
Option                                  Value                                   
------                                  -----                                   
features.record-counters                on                                      
[root at dhcp37-55 ~]# gluster v info nash

Volume Name: nash
Type: Tier
Volume ID: 66caac13-cb0a-4a5d-93e3-544ad19472c2
Status: Started
Number of Bricks: 10
Transport-type: tcp
Hot Tier :
Hot Tier Type : Distributed-Replicate
Number of Bricks: 2 x 2 = 4
Brick1: 10.70.37.203:/rhs/thinbrick2/nash2
Brick2: 10.70.37.55:/rhs/thinbrick2/nash2
Brick3: 10.70.37.203:/rhs/thinbrick2/nash
Brick4: 10.70.37.55:/rhs/thinbrick2/nash
Cold Tier:
Cold Tier Type : Disperse
Number of Bricks: 1 x (4 + 2) = 6
Brick5: 10.70.37.55:/rhs/thinbrick1/nash
Brick6: 10.70.37.203:/rhs/thinbrick1/nash
Brick7: 10.70.37.210:/rhs/thinbrick1/nash
Brick8: 10.70.37.141:/rhs/thinbrick1/nash
Brick9: 10.70.37.210:/rhs/thinbrick2/nash
Brick10: 10.70.37.141:/rhs/thinbrick2/nash
Options Reconfigured:
cluster.tier-mode: cache
features.ctr-enabled: on
cluster.disperse-self-heal-daemon: enable
performance.readdir-ahead: on
nfs.disable: off
ganesha.enable: off
features.record-counters: on
cluster.write-freq-threshold: 0
cluster.read-freq-threshold: 100
nfs-ganesha: disable
cluster.enable-shared-storage: enable
[root at dhcp37-55 ~]#
[root at dhcp37-55 ~]# gluster v set nash features.record-counters off
volume set: failed: Cannot set features.record-counters to "off" as
cluster.write-freq-threshold is 0 and cluster.read-freq-threshold is 100.
Please set both cluster.write-freq-threshold and  cluster.read-freq-threshold
to 0, to set  features.record-counters to "off".
[root at dhcp37-55 ~]# gluster v set nash cluster.read-freq-threshold 0
volume set: success
[root at dhcp37-55 ~]# gluster v get  nash features.record-counters 
Option                                  Value                                   
------                                  -----                                   
features.record-counters                off                                     
[root at dhcp37-55 ~]# gluster v set nash cluster.write-freq-threshold 0x0
volume set: success
[root at dhcp37-55 ~]# gluster v get  nash features.record-counters 
Option                                  Value                                   
------                                  -----                                   
features.record-counters                off                                     
[root at dhcp37-55 ~]# gluster v set nash cluster.write-freq-threshold 0x1
volume set: success
[root at dhcp37-55 ~]# gluster v get  nash features.record-counters 
Option                                  Value                                   
------                                  -----                                   
features.record-counters                on                                      
[root at dhcp37-55 ~]# gluster v info nash

Volume Name: nash
Type: Tier
Volume ID: 66caac13-cb0a-4a5d-93e3-544ad19472c2
Status: Started
Number of Bricks: 10
Transport-type: tcp
Hot Tier :
Hot Tier Type : Distributed-Replicate
Number of Bricks: 2 x 2 = 4
Brick1: 10.70.37.203:/rhs/thinbrick2/nash2
Brick2: 10.70.37.55:/rhs/thinbrick2/nash2
Brick3: 10.70.37.203:/rhs/thinbrick2/nash
Brick4: 10.70.37.55:/rhs/thinbrick2/nash
Cold Tier:
Cold Tier Type : Disperse
Number of Bricks: 1 x (4 + 2) = 6
Brick5: 10.70.37.55:/rhs/thinbrick1/nash
Brick6: 10.70.37.203:/rhs/thinbrick1/nash
Brick7: 10.70.37.210:/rhs/thinbrick1/nash
Brick8: 10.70.37.141:/rhs/thinbrick1/nash
Brick9: 10.70.37.210:/rhs/thinbrick2/nash
Brick10: 10.70.37.141:/rhs/thinbrick2/nash
Options Reconfigured:
cluster.tier-mode: cache
features.ctr-enabled: on
cluster.disperse-self-heal-daemon: enable
performance.readdir-ahead: on
nfs.disable: off
ganesha.enable: off
features.record-counters: on
cluster.write-freq-threshold: 0x1
cluster.read-freq-threshold: 0
nfs-ganesha: disable
cluster.enable-shared-storage: enable
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# 
[root at dhcp37-55 ~]# rpm -qa | grep gluster
nfs-ganesha-gluster-2.2.0-11.el7rhgs.x86_64
glusterfs-cli-3.7.5-9.el7rhgs.x86_64
glusterfs-3.7.5-9.el7rhgs.x86_64
glusterfs-api-3.7.5-9.el7rhgs.x86_64
glusterfs-ganesha-3.7.5-9.el7rhgs.x86_64
glusterfs-libs-3.7.5-9.el7rhgs.x86_64
glusterfs-fuse-3.7.5-9.el7rhgs.x86_64
glusterfs-client-xlators-3.7.5-9.el7rhgs.x86_64
glusterfs-server-3.7.5-9.el7rhgs.x86_64
[root at dhcp37-55 ~]#

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=v6vRI0GFiu&a=cc_unsubscribe


More information about the Bugs mailing list