Operating System - HP-UX
1756915 Members
3463 Online
108857 Solutions
New Discussion юеВ

Re: Problems with Volume Group

 
SOLVED
Go to solution
Irek_1
Advisor

Problems with Volume Group

Hello, i have removed two corrupted disks, now vgdisplay shows:
vgdisplay: Couldn't query volume group "/dev/vg00".
Possible error in the Volume Group minor number; Please check and make sure the group minor number is unique.
vgdisplay: Cannot display volume group "/dev/vg00".
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/mspa".
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01".

How to correct vg00, and how to remove vg01 and mspa groups (without disks)?
9 REPLIES 9
Irek_1
Advisor

Re: Problems with Volume Group

ok, i've removed groups vg01 and mspa, but still have problem with vg00:
vgdisplay: Couldn't query volume group "/dev/vg00".
Possible error in the Volume Group minor number; Please check and make sure the group minor number is unique.
vgdisplay: Cannot display volume group "/dev/vg00".

How to fix it?
John Payne_2
Honored Contributor

Re: Problems with Volume Group

Did you recently add a new volume group?

Can you get a long listing of /dev/*/group?

ls -la /dev/*/group

Please post the output.

i.e.

host1:jjp /home/ucs/jjp# ls -la /dev/*/group
crw-r----- 1 root sys 64 0x000000 Nov 4 13:49 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x020000 Dec 15 10:19 /dev/vg02/group
crw-r--r-- 1 root sys 64 0x030000 Dec 15 10:19 /dev/vg03/group

Each volume group has a different minor number. (0xnn0000)

John



Spoon!!!!
Bill Hassell
Honored Contributor
Solution

Re: Problems with Volume Group

How did you remove the volume groups? vgexport or just rm the files? vgexport will properly remove the volume groups in lvmtab. Search the /dev directory for all device files with the name "group"

find /dev -name group -exec ll {} \;

You may need to recreate lvmtab. But first locate all group files (there should be just /dev/vg00/group right now.


Bill Hassell, sysadmin
Irek_1
Advisor

Re: Problems with Volume Group

Here is:
# ls -la /dev/*/group
crw-r----- 1 root sys 64 0x000000 Jan 20 2004 /dev/vg00/group

vg01 and mspa i've removed with vgexport, so there is only vg00.

Bill Hassell
Honored Contributor

Re: Problems with Volume Group

Try: strings /etc/lvmtab to see if there are any strange physical disks or lefover VG names. If so, you'll need to use vgscan -av to rebuild lvmtab (after renaming lvmtab for safety). Make sure that lvlnboot -v reports expected VG information.


Bill Hassell, sysadmin
Irek_1
Advisor

Re: Problems with Volume Group

there is no strange disks, only one, but lvlnboot seems bad. System is booting ok.

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0
#
# lvlnboot -v
lvlnboot: Couldn't query volume group "/dev/vg00".
Possible error in the Volume Group minor number; Please check and make sure the group minor number is unique.
#

here is vgscan:
# vgscan
vgscan: The physical volume "/dev/dsk/c1t2d0" is already recorded in the "/etc/lvmtab" file.
Physical Volume "/dev/dsk/c0t5d0" contains no LVM information
Physical Volume "/dev/dsk/c0t6d0" contains no LVM information
Physical Volume "/dev/dsk/c2t0d0" contains no LVM information
Physical Volume "/dev/dsk/c2t2d0" contains no LVM information
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument

Here are my disks:
0/0/1/0.5.0 1 Unused 8748
0/0/1/0.6.0 1 VxFS 8748
0/0/1/1.2.0 1 vg00 35003
0/0/2/0.0.0 1 VxFS 35003
0/0/2/0.2.0 1 VxFS 35003
0/0/2/1.2.0 1 Unused 0 DVDROM
Irek_1
Advisor

Re: Problems with Volume Group

I think, i need to rebuild lvmtab, but lvlnboot reports error. What should i do in this case?
Bill Hassell
Honored Contributor

Re: Problems with Volume Group

To rebuild lvmtab, rename (mv) lvmtab to lvmtab.old, then run vgscan -av. That will recreate lvmtab. Then update the boot record area with: lvlnboot -R. Now try vgdisplay and lvlnboot -v


Bill Hassell, sysadmin
Irek_1
Advisor

Re: Problems with Volume Group

I've recreated lvmtab and now everything is ok. Thank's for all!
Irek