Operating System - HP-UX
1752569 Members
5313 Online
108788 Solutions
New Discussion

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

 
SOLVED
Go to solution
support_billa
Valued Contributor

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

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

13 REPLIES 13
Dennis Handly
Acclaimed Contributor

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

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

You can edit your reply to add them.

support_billa
Valued Contributor

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

Torsten.
Acclaimed Contributor

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!   
support_billa
Valued Contributor

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

Torsten.
Acclaimed Contributor

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!   
support_billa
Valued Contributor

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

Torsten.
Acclaimed Contributor

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!   
support_billa
Valued Contributor

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

Torsten.
Acclaimed Contributor
Solution

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!