Is possible to display cifs shares info and their corresponding volume sizes ?
Applies to
- ONTAP 9
- CIFS
Answer
cifs share show -fields volume only displays the shared volume names but does not show the size of the volumes. To view the space usage of the corresponding volumes, you need to use the df or vol show commands separately.-
Display CIFS shares for volumes
ontap913::> cifs share show -fields volume
vserver share-name volume
------- ---------- ---------
svm0 c$ svm0_root
svm0 ipc$ svm0_root
svm0 vol_workgroup
vol_workgroup
svm1_ontap913
ABE ABE
svm1_ontap913
audit audit_svm1
svm1_ontap913
c$ svm1_ontap913_root
-
Display volume space usage
ontap913::> df -volume ABE
Filesystem kbytes used avail capacity Mounted on Vserver
/vol/ABE/ 1048580 568 1048012 0% /ABE svm1_ontap913
/vol/ABE/.snapshot 55188 9128 46060 17% /ABE/.snapshot svm1_ontap913
2 entries were displayed.
-
Display detailed volume information
ontap913::> vol show -volume ABE
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
svm1_ontap913
ABE aggr1_node1 online RW 1.05GB 1023MB 0%
