Re: get allocated, free space of a volume group (optional: depends if vg is mirrored) (1439 Views)
Reply
Valued Contributor
support_billa
Posts: 192
Registered: ‎06-27-2011
Message 1 of 14 (1,534 Views)
Accepted Solution

get allocated,free space of a volume group (optional : depends if vg is mirrored)

[ Edited ]

hello,

 

i have following issue:

- we have several storage systems ( internal disk, san storage,etc). one configuration is : one storage is with "LVM" mirrored with the second storage system. also with standalone san storage (not mirrored)

- how can i get the information , if a volume group is mirrored with a second storage system ?

  because  i want to get total, allocated,free space of a volume group ( net value and gross value)

i tried several things and i created a script "vgstat" which calls "vgd" ( display if a vg is mirrored or not ).

 

example : vgstat     ( last column is "MC" (Mirror Copies) )

                 vgstat vg00

                 vgstat -n ( get net values)

 

in the attachmend are the scripts and a output

 

regards

Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 2 of 14 (1,529 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

[ Edited ]

You don't have any attachments.  You may need to give them a suffix of ".txt".

You can edit your reply to add them.

Valued Contributor
support_billa
Posts: 192
Registered: ‎06-27-2011
Message 3 of 14 (1,512 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

attachment ( below) : rename vgd.sh.txt to vgd and rename vgstat.sh.txt  to vgstat

 

regards

Acclaimed Contributor
Torsten.
Posts: 23,266
Registered: ‎10-02-2001
Message 4 of 14 (1,505 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

If you look at your script output, you see

vg00 mirrored
vg01 mirrored
vgsanstorage not mirrored

You need to compare the "ioscan -fn" and "vgdisplay -v" output to find out where the copies are.

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Valued Contributor
support_billa
Posts: 192
Registered: ‎06-27-2011
Message 5 of 14 (1,483 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

hello,

"ioscan -fn" and "vgdisplay -v" output to find out where the copies are. 

 

what is the relationship between "ioscan -fn" and "vgdisplay -v"

output of ioscan -fnC disk and vgdisplay -v . the disks of "vgdisplay -v" i can't find in "ioscan"

 

Regards

Acclaimed Contributor
Torsten.
Posts: 23,266
Registered: ‎10-02-2001
Message 6 of 14 (1,481 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

It is a bit more complicated with agile device files.

You should get "evainfo" from the web (SSSU package from software.hp.com).

Then do

# evainfo -d /dev/disk/disk142

# evainfo -d /dev/disk/disk157

You will see the WWN of the EVA6400 where the LUN resides.



Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Valued Contributor
support_billa
Posts: 192
Registered: ‎06-27-2011
Message 7 of 14 (1,469 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

hello,

 

i used "ioscan -fknNC disk" to get the same disk device file like from the ouput of "vgdisplay"

i will test "evainfo" ( we had a too old version installed ).

 

but how can i see  we "ioscan" , "evainfo" , that a VG is mirorred to another storage system ?

 

regards

Acclaimed Contributor
Torsten.
Posts: 23,266
Registered: ‎10-02-2001
Message 8 of 14 (1,460 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

You will see different WWns, this means different EVAs.


Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Valued Contributor
support_billa
Posts: 192
Registered: ‎06-27-2011
Message 9 of 14 (1,439 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

i spoke here that we have several storage systems ( internal disk, san storage,etc).

then it will be a complex system :

 

for XP / P9500 i have to install : xpinfo

for EVA           i have to install : evainfo

 

what about 3PAR ?

and how about internal disks ?

 

and i don't know, when i have  a disk device file of volume group that it is a disk of an EVA storage ?

 

i must know that /dev/dsk/.... is a EVA disk , right ? how i know it ?


regards

Acclaimed Contributor
Torsten.
Posts: 23,266
Registered: ‎10-02-2001
Message 10 of 14 (1,437 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

This is always a bit difficult.

 

There are several ways to find it out.

 

Different tools, array specific (e.g. evainfo, xpinfo, p9000info, etc).

 

Always watch the device identifier in ioscan, this usually tells you about the device (e.g. P2000 array, HSV = EVA, OPEN-V = XP array etc ...).

 

 

You may also try the good old ignite's print_manifest and read the storage device section.


Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Occasional Visitor
abdrebbi
Posts: 4
Registered: ‎08-05-2012
Message 11 of 14 (1,281 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

Hi All,

 

is there any news about 3PAR software tool to be installed on the server side (like XPINFO and EVAINFO) ?

thank you for your availability.

 

Best Regards.

Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 12 of 14 (1,270 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

>is there any news about 3PAR software tool to be installed on the server side (like XPINFO and EVAINFO)?

 

Any reason you don't use ssh to login to the node to run the CLI there?

Or run it on your Windows or Linux box?  Or use the IMC GUI?

Occasional Visitor
abdrebbi
Posts: 4
Registered: ‎08-05-2012
Message 13 of 14 (1,001 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

Hi Dennis,

 

dorry for teh delay.

 

The cLI is used on the node, but as you know this ttols give more details about the disks/VVs/VGs etc ...

 

FYI. this tools is now available, it has been published by HP last month.

 

best regards.

Acclaimed Contributor
Dennis Handly
Posts: 25,054
Registered: ‎03-06-2006
Message 14 of 14 (998 Views)

Re: get allocated, free space of a volume group (optional: depends if vg is mirrored)

>this tools is now available, it has been published by HP last month.

 

Hmm, I would have thought the CLI for HP-UX would be released with 3.1.2 in Dec.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.