IHAC who wants to use DFM 4.0.1's chargeback feature. However, they're using a lot of FlexClones. The customer would like the chargeback report to be based on the FlexVols/FlexClones actual *physical* space consumption. For example, as shown in the "aggr show_space" command:
Total space WAFL reserve Snap reserve Usable space BSR NVLOG A-SIS 13GB 1400MB 0KB 12GB 0KB 7036KB
Aggregate Allocated Used Avail Total space 2317MB 952MB 10GB Snap reserve 0KB 0KB 0KB WAFL reserve 1400MB 150MB 1249MB
However, DFM reports all FlexClones using *logical* space consumption, not physical. It reports each FlexClone as using the same capacity as its parent volume. In fact, I can't find a single DFM report that shows a FlexClone's actual physical space consumption. Therefore, when they attempt to run a chargeback report each FlexClone volume generates a charge of 1x the parent volume. In reality, each FlexClone's charge should be only a fraction of the parent volume.
Based on this, how can the customer generate chargeback reports based on actual physical capacity used for a FlexVol/FlexClone?
What an awesome script! Really useful. So basically, it just creates a report then calls some dfm.exe command lines and parses the output based on the logic to find the additional blocks used as outline here: