How to get a listing of Free vs Allocated space on a CX array
Is there a CLI command that will display free vs allocated storage space on a CX 3 or CX700 series array? If not is there any way to get it exported from the array in a simple form? The closest I've found in my CLI manual would be the command reserved -lunpool -list . I believe that this gives only the amount free vs allocated for the reserved lun pool and not the entire array, which is what I want.
The RAID Groups and Available Storage report combined may give you what you are looking for. The RAID Groups report will list each RAID Group, its RAID type and capacity, the LUNs bound in the group and the free space in the group. The Available Storage report will list the unbound free disk space, the space available in RAID Groups, and will show a enclosure/disk view of the array depicting the RAID groups and unused disks.
Of course this will only work for the FLARE 24 array.
We are running flare 24 and flare 19 on our systems. I haven't been able to find a report that will give the overall system disk usage. The physical disk reports do it for each hard drive in the array, but what I'm looking for is a system as a whole for allocated space vs free space.
There doesn't seem to be an option to generate the reports weekly, which is what I'd like. I'm trying to get information from the reports or from CLI that I can grep and forward to a status webpage or database weekly, which is why I'd prefer a CLI solution. The HDS arrays we own have that sort of solution in the device manager CLI, but it appears that the CX arrays do not, though I'm sure with ECC or other EMC SRM tools that we could get that data.
If you are interested on a per raid group perspective it would be either one from the getrg command as cohagen pointed out:
1) -ucap
This reports all of the non-contiguous unused blocks.
2) -lusc
This returns the largest group of contiguous unusued. This also determines the largest LUN that you can create, and if LUNs were deleted, depending on its position, would account for the discrepancy. This can also be seen visually under the "Partitions" tab of the RAID Group properties in Navisphere Manager.
As for the formula that cohagen pointed out, I simply wanted to list it in its non-reduced format so it is clearer how it was derived.
One block = 512 (user) bytes
actually 520 bytes but 8 bytes hidden and used by FLARE for stored metadata such as CRC and LRC values used to verify integrity of blocks,
Therefore, the formula written out is:
GB = (# of blocks)/512/1024/1024/1024
Of course, the values in red reduce to /2 and then subsequent reductions converting to KB -> MB -> and finally GB. I'm sure much of this you are aware of, but wanted to expand upon it a bit for others that might stumble on this post.
There are other switches such as -tcap which would list the total raw and logical capacity in blocks which you might be able to use in your report. Or you can certainly simply run getrg by itself to see what else would be interesting as it will list all of the values that could otherwise be refined via any of the sub-switches.
AranH1
2163 Posts
868
0
Posted August 6th, 2008 13:00