UNSOLVED

BRuehl

updated

18 years ago

B

BRuehl

40 Posts

0

1713

August 6th, 2008 11:00

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.
  • AranH1

    2163 Posts

    868

    0

    Posted August 6th, 2008 13:00

    What version of FLARE are you running? Later versions of FLARE have reporting built in that will give you this information.
  • AranH1

    2163 Posts

    868

    1

    Posted August 7th, 2008 08:00

    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.
  • BRuehl

    40 Posts

    868

    0

    Posted August 7th, 2008 08:00

    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.
  • hersh1

    197 Posts

    868

    0

    Posted August 7th, 2008 09:00

    Is there a way to automate the running of those reports?
  • BRuehl

    40 Posts

    868

    0

    Posted August 7th, 2008 10:00

    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.
  • cohagen

    4 Posts

    868

    0

    Posted February 10th, 2011 07:00

    navicli -h sp ip address -getrg -ucap

    will give you the free non-contiguous space in blocks, convert to gb using this equation:

    gb=(block size/2)/1024/1024

    (2/17 I meant non contiguous)

  • christopher_ime

    6 Operator

    •

    1962 Posts

    868

    0

    Posted February 10th, 2011 10:00

    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.

  • christopher_ime

    6 Operator

    •

    1962 Posts

    868

    0

    Posted February 10th, 2011 11:00

    Sorry, typo in the formula; meant to multiple # of blocks by 512 to get number of bytes:

    GB = (# of blocks)*512/1024/1024/1024

    While I'm correcting my own post (how do you edit?), wanted to clarify better and restate one point as follows:

    1) -ucap

    This reports all of the unused blocks (contiguous or not).