CONTAP-621373: SNMP returns unexpected diskSpareCount when scrubbing is active
Issue
SNMP OID "1.3.6.1.4.1.789.1.6.4.8" for "diskSpareCount" returns a reduced number for hot spare drive count when scrubbing is active, by default in between 1am and 5am daily or when started manually:
- Scrubbing is suspended (or not active in any way :
MyONTAPCluster::> run * aggr scrub status
2 entries were acted on.
Node: node_A_1
aggr scrub /aggr1_node_A_1/plex9/rg0 is 30% complete (suspended)
Node: node_A_2
aggr scrub /aggr2_node_A_2/plex5/rg0 is 43% complete (suspended)
aggr scrub /CP_TEST/plex1/rg0 is 28% complete (suspended)
aggr scrub /aggr0_node_A_2/plex4/rg0 is 61% complete (suspended)
- SNMP returns 18 spare count:
MyBSDhost#> bsnmpwalk -v 2 -n -r 0 -t 1 -s 'public@MyONTAPCluster_node_A_1' .1.3.6.1.4.1.789.1.6.4.8"
1.3.6.1.4.1.789.1.6.4.8.0 = 18
- Manually resume scrubbing and validate it being active (it reports "x% complete" when active):
MyONTAPCluster::> storage aggregate scrub -action resume -aggregate *MyONTAPCluster::> nod run -node * -command aggr scrub status
2 entries were acted on.
Node: node_A_1
aggr scrub /aggr1_node_A_1/plex9/rg0 is 30% complete
Node: node_A_2
aggr scrub /aggr2_node_A_2/plex5/rg0 is 43% complete
aggr scrub /CP_TEST/plex1/rg0 is 28% complete
aggr scrub /aggr0_node_A_2/plex4/rg0 is 61% complete
- SNMP returns spare count 12 instead of 18 before when scrubbing was not active:
MyBSDhost#> bsnmpwalk -v 2 -n -r 0 -t 1 -s 'public@10.61.64.78' .1.3.6.1.4.1.789.1.6.4.8
1.3.6.1.4.1.789.1.6.4.8.0 = 12
- Manually suspend scrubbing again to prove the SNMP spare count returns the initial value (in this example 18) again:
::*> storage aggregate scrub -action suspend -aggregate *::*> run * aggr scrub status
2 entries were acted on.
Node: node_A_1
aggr scrub /aggr1_node_A_1/plex9/rg0 is 30% complete (suspended)
Node: node_A_2
aggr scrub /aggr2_node_A_2/plex5/rg0 is 44% complete (suspended)
aggr scrub /CP_TEST/plex1/rg0 is 28% complete (suspended)
aggr scrub /aggr0_node_A_2/plex4/rg0 is 61% complete (suspended)MyBSDhost#> bsnmpwalk -v 2 -n -r 0 -t 1 -s 'public@10.61.64.78' .1.3.6.1.4.1.789.1.6.4.8
1.3.6.1.4.1.789.1.6.4.8.0 = 18
