VMware Cloud Community
daraRinth
Enthusiast
Enthusiast

Any alternative method to get the current dedup & compression savings?

Hi,

Is there any alternative ways(CLI, RVC) to get how much dedup & compression space saving WITHOUT vCenter?

thanks!

0 Kudos
2 Replies
ashwin_prakash
VMware Employee
VMware Employee

Please find the link below which has few scripts, using which you should he able to get how much Deduplication and Compression space.

Solved: Monitoring Storage Data Efficiency - NetApp Community

Sincerely,
Ashwin Prakash
Skyline Support Moderator
0 Kudos
ac4gc
VMware Employee
VMware Employee

Hello there,

If you have CLI access then you can run following command (one-liner) to print the per disk deduplication information. It actually gives inflation but you can ignore that.

localcli vsan storage list | grep 'Group UUID:' | awk '{print $5}'| sort | uniq | while read cache; do dgTotalInflate=''; echo -en "\nCache Tier Disk: $cache\n"; localcli vsan storage list | grep -B1 "Group UUID: $cache"| grep "VSAN UUID:"| awk '{print $3}' | grep -v $cache | while read cap; do diskLogUsed=$(cmmds-tool find -f json -t DISK_STATUS -u $cap | grep content | awk '{print $37}' | sed -e 's/[\t\n\r,]//g'); diskPhysUsed=$(cmmds-tool find -fjson -t DISK_USAGE -u $cap | grep content | awk '{print $19}' | sed -e 's/[\t\n\r,]//g'); dedupRatio=$( awk "BEGIN{ print "$diskLogUsed" / "$diskPhysUsed" }"); dgTotalInflate=$(awk "BEGIN{ print "$dgTotalInflate" + "$diskLogUsed"}"); echo -en "   Capacity Disk: $cap : Dedup Ratio ${dedupRatio}x\n"; dgTotalInflateGB=$(awk "BEGIN{ print "$dgTotalInflate" / 1073741824 * 1.25}"); echo "$dgTotalInflateGB" > /tmp/dgtigb.txt; done; echo -en "      Total Expected Space Inflation: $(cat /tmp/dgtigb.txt)GB\n" ; done

0 Kudos