1834798 Members
2893 Online
110070 Solutions
New Discussion

PVG names

 
SOLVED
Go to solution
Sergejs Svitnevs
Honored Contributor

PVG names

Hi,

We use physical volume groups for mirroring of individual disks.
The volume group was created with the following commands:
# vgcreate -g /dev/vgdb /dev/dsk/c1tXdY
# vgextend -g /dev/vgdb /dev/dsk/c0tXdY

I need to find the names of a different physical volume group. Is it possible?
How to display the names of all active PVGs ( and )?

Sergej
8 REPLIES 8

Re: PVG names

Serge,

vgdisplay -v /dev/vgdb

will show you the names of the PVGs.

Alternatively look in the file /etc/lvmpvg

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sergejs Svitnevs
Honored Contributor

Re: PVG names

"vgdisplay -v" shows:
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

But I'm sure that the volume group consists of 2 different PVG.

Also "lvdisplay /dev/vgdb/lvol1" shows:
--- Logical volumes ---
LV Name /dev/vgdb/lvol1
VG Name /dev/vgdb
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) X
Current LE Y
Allocated PE Z
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default

Thierry Poels_1
Honored Contributor

Re: PVG names

hi,

maybe it doesn't ;)

have a look at /etc/lvmpvg!

"Allocation PVG-strict" in a lvdisplay does not mean you have PVG's configured.

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Sergejs Svitnevs
Honored Contributor

Re: PVG names

/etc/lvmpvg doesn't exist....
Thierry Poels_1
Honored Contributor

Re: PVG names

hi,

no /etc/lvmpg --> no Physical Volume Groups defined

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Sergejs Svitnevs
Honored Contributor

Re: PVG names

I 've found /etc/lvmpvg on the standby cluster node. Do I need to copy this file to the primary node?

Why "vgdisplay -v" doesn't show info about PVG if lvmpvg file doesn't exist?

Sergej
Solution

Re: PVG names

if the disks on both nodes have the same device name (c2t3d0 on nodeA is the same disk as c2t3d0 on nodeB), then you can just copy the lvmpvg file over. If the device names on the 2nd host are different, you will need to transpose the entries to the correct names on the other host.

No PVG won't show or function correctly without /etc/lvmpvg. This (usually) won't make any difference during normal operation, but you would probably have run into problems if trying make changes to LVM on the node without the file.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Sergejs Svitnevs
Honored Contributor

Re: PVG names

Thanks a lot.