Why does the statistics volume show command show the total ops which do not match the read, write, and other ops?
Applies to
ONTAP 9
Answer
- For the newer versions of ONTAP, NFS or CIFS Volumes
Total Ops = Read + Write + Other + Access + Getattr + Lookup + Punch Hole + Setattr.
- So NAS volume OTHER is actually anything other than Read, Write, Access, Getattr, Lookup, Setattr & Punch Hole.
The statistics volume show command shows the Volume layer statistics, which doesn't include breakdown of Getattr, Lookup, Access, Setattr or Punch Hole.
Cluster1::*> statistics volume show -interval 5
Cluster1 : 4/15/2021 13:08:29
*Total Read Write Other Read Write Latency
Volume Vserver Aggregate Ops Ops Ops Ops (Bps) (Bps) (us)
------- ---------- -------------------- ------ ---- ----- ----- ------- -------- -------
nasdata svmnas sas_aggr1 85759 3751 1314 1922 6020330 19856178 20
lun1 svmsan sata_aggr1 8411 8312 99 0 524286336 1347968 20720So the NAS volume total ops do not match the read, write, and other ops. But the SAN volume total ops match the read, write, and other ops.
- For the Volume Layer (NFS or CIFS):
Total Ops != Read + Write + Other Ops - For the Volume Layer (SAN):
Total Ops = Read + Write + Other Ops
Additional Information
Follow the below steps to check the NFS detailed ops.
- Switch to the advanced mode on the cluster shell.
Example:
Cluster1::> set adv
- Start the statistics for the NFS detailed ops counters.
Example:
Cluster1::*> statistics start -sample-id testother -object volume -instance vol1 -counter nfs_read_ops|nfs_write_ops|nfs_other_ops|nfs_access_ops|nfs_getattr_ops|nfs_lookup_ops|nfs_total_ops
Statistics collection is being started for sample-id: testother
- Wait for several minutes, then stop the statistics sample.
Example:
Cluster1::*> statistics stop -sample-id testother
Statistics collection is being stopped for sample-id: testother
- Check the NFS detailed ops.
Example:
Cluster1::*> statistics show -sample-id testother
Object: volume
Instance: vol1
Start-time: 4/16/2021 19:19:10
End-time: 4/16/2021 19:19:25
Elapsed-time: 15s
Scope: svm1
Counter Value
-------------------------------- --------------------------------
nfs_access_ops 0
nfs_getattr_ops 0
nfs_lookup_ops 0
nfs_other_ops 0
nfs_read_ops 0
nfs_total_ops 0
nfs_write_ops 0
7 entries were displayed.
5. Change back to admin mode.
Example:
Cluster1::> set admin
Related KB:
