Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

985

August 23rd, 2012 11:00

Difference in total capacity

I ran some commands to get the total capacity of a DMX (disregarding available or not). The first one was to find all the devices on the array and total their capacities. The other one was I had a list of all the metaheads and their sizes and they end up being greater than the size I see on the device capacity. I have been trying to find out what is wrong here and I still cannot figure it out.

Thanks in advance.

56 Posts

August 24th, 2012 11:00

Naveen,

When you run symdev -sid xxx list -da all -space ==> you will see the same total capacity which you will see when you run symdisk list . Here your listing the space which is configured and unconfigured on symmetrix.

If you do only symdev list --> In this you get output for all the symdevices including tdevs also and not the disks.

When you do symdev list -da all --> You get output of all the raid devs and vaults but dont get tdev in them.

So you need to know the difference between the comands which lists hypers and disks and need to run comand as per your need.

Regards,

Mrinal Dani

56 Posts

August 23rd, 2012 11:00

Can you paste what all comands you ran to get your outputs. As total size of meta heads > total size of all symdevs on array is not possible generally. But if you put your comands here we can think what made you give such results.

25 Posts

August 23rd, 2012 12:00

The first command I ran was to find the total number of devices

symdev -sid list

The other one I made using the IMPL(Bin file) and these are the data fields I get.

Vol             Mark    Label   Type    RDF     Spc Typ Zone Name 1     Zone Name 2                     Normalized Zone Name    Server Name     Business Unit   HBA WWN FA Port Emulation       Host Type       Size       MetaSize              

I hope you can decipher the second part. I cannot add anymore info due to privacy reasons.

According to you which is the best way I can find the total capacity of an array and also find the capacity of the meta members( with meta head).

56 Posts

August 24th, 2012 09:00

Hi naveen,

If your looking for the total capacity of array then you can see the total size of all the disks on array and amount of free capacity easily by using the symdisk list . But I think your looking for the total amount of symdevs created on symmetrix and size sum of the size of them.

When you say you need to find the capacity of meta memebers and meta head then I am not sure what do you mean. You can always use symdev show on the meta head and find the meta members in it and their sizes and sum them and when you need summation of all the symdevs then you can simply use symdev list .

For checking meta capacity you can use this one :-

symdev list -meta | awk '{print $9}' | grep [0-9] | awk '{s+=$1} END {print s}'

Regards,

mrinal dani

25 Posts

August 24th, 2012 10:00

Thanks Mrinal. There are few things I wanted to eventually understand from this exercise.

1. To get the total array size can we just use symdev list and get the total size but how does symdevs created be different?

2. If I took the total size and compare that with the meta capacity, will they be close. If not how did I end up with the meta capacity larger than the device capacity. Maybe my script did not do a good job at collecting the right data.

In regard to your script thank you very much. When I run the script against a certain array I get a number, which I assume is the capacity. Is this number the total meta size including meta heads and members? Could you explain the script.

25 Posts

August 24th, 2012 10:00

Another discreptancy that I see is that if I take the total capacity of all the devices using symdev list it differs from the output of the command shown below. Why is that?

symdev -sid xxx list -da all -space

25 Posts

August 24th, 2012 12:00

Can you let me know about the meta capacity script and the question I had about the same..

56 Posts

August 24th, 2012 13:00

Yeah my comand gives the output of summation of all the meta devices created on array.

When you run symdev list ---> for every meta head you see full size of that meta device. You dont see size infront of the meta member in symdev list as in below output.

symdev list -meta  ==> gives output like below and then I added all the capacity and got my total capacity of meta devices on array.

        Device Name                  Device              Meta Information
---------------------------- ---------------------- ---------------------------
Sym  Physical                Config        Attr     Config  Stripe  # of   Cap
                                                            Size    Devs   (MB)
---------------------------- ---------------------- ---------------------------

00B7 Not Visible             TDEV          Grp'd    Striped    960k   2  358418    ===> Each is meta device (Symdev)

symdev list

------------------

0E16 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (M) NR  768052

0E17 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E18 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E19 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E1A Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E1B Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E1C Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E1D Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E1E Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E1F Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E20 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E21 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E22 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E23 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

0E24 Not Visible            ???:?  NA:NA  TDEV          N/Grp'd  (m) NR       -

No Events found!

Top