Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I've been searching for a command to list all volumes and if storage efficiency is enabled or disabled for that volume.
Example:
Volume name Efficiency
-------------------------------------------------------
vol1 enabled
vol2 disabled
i've have tried "volume efficiency show" but that only lists volumes that have efficiency enabled.
Is what I need possible?
Thanks in advance
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you reaching NetApp community and regarding your query to make things easy can check it from oncommand System manager under VOLUME tab will give information of volumes which has EFFICIENCY enabled or disabled.
Thanks,
Nayab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, indeed it does appear that the volume efficiency show command only shows those volumes that have been "touched" by the volume efficicency command, either specifically enabled or disabled. If volume efficiency has been previously enbabled and then subsequently disabled, these volumes will then be displayed in the show output...
cluster1::volume efficiency> show -fields state
vserver volume state
------- -------- --------
vs1 vol1_dis Disabled
vs1 vol1_en Enabled
2 entries were displayed.
To confirm, I could only achieve this after I previously enabled efficiency on volume vol1_dis.
Cheers,
Grant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The "-fields" option is your friend here. This is a pretty simple SVM with the output you're looking for:
cluster1::> volume show -vserver SVM_0 -fields is-sis-volume
vserver volume is-sis-volume
------- --------------- -------------
SVM_0 R_PT0_SM_C_TEMP false
SVM_0 R_PT0_SM_P_1 true
SVM_0 ST0_NM_P_PAGE false
SVM_0 ST0_NM_P_SWAP false
SVM_0 ST0_SM_P_1 false
SVM_0 SVM_ST0_root false
Justin Parisi did a great article on how to use all the field commands/options here:
https://whyistheinternetbroken.wordpress.com/2015/02/16/techbecome-a-clustered-data-ontap-cli-ninja/
Hope that helps,
Chris
