1755672 Members
3759 Online
108837 Solutions
New Discussion юеВ

problem with vgdisplay

 
Kourla
Occasional Contributor

problem with vgdisplay

When I tried to vgdisplay /dev/vg02 I got the following error
--------------------------------------------
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg02".
--------------------------------------------
Then I tried to activate the volume group using
vgchange -a y /dev/vg02 then I got the following error
-----------------------------------------------
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c1t4d0":
Device busy
vgchange: Warning: couldn't query physical volume "/dev/dsk/c1t4d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Couldn't query the list of physical volumes.
vgchange: Couldn't activate volume group "/dev/vg02":
Quorum not present, or some physical volume(s) are missing.
-----------------------------------------------


Can you please somebody explain the reason and solution to the problem
12 REPLIES 12
Gene Kornacki_3
Advisor

Re: problem with vgdisplay

Have you run a vgscan?
James R. Ferguson
Acclaimed Contributor

Re: problem with vgdisplay

Hi:

Check to insure that you do not have any duplicate minor numbers for you volume groups:

# ls -l /dev/vg*/group

Regards!

...JRF...
Kourla
Occasional Contributor

Re: problem with vgdisplay

Gene, the vgscan out put file is attached (See the attached file).

Also ls -l /dev/vg*/group out put is given below.
ls -l /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Apr 23 2002 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x010000 Apr 23 2002 /dev/vg01/group
crw-rw-rw- 1 root sys 64 0x020000 Apr 23 2002 /dev/vg02/group
crw-rw-rw- 1 root sys 64 0x030000 Oct 26 14:29 /dev/vg03/group
Jeff Schussele
Honored Contributor

Re: problem with vgdisplay

Hi,

What does

diskinfo /dev/rdsk/c1t4d0

return?

Could be a bad disk.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: problem with vgdisplay

Hi (again):

Do:

# diskinfo /dev/rdsk/c1t4d0

Make sure that you can not only see the disk, but that the size returned is non-zero.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: problem with vgdisplay

Looks like you have a problem with the disk at /dev/dsk/c1t4d0. Try a diskinfo on it. If you get no errors from that, try "dd if=/dev/rdsk/c1t4d0 of=/dev/null bs=1024k" and see if you get any errors from that.


Pete

Pete
CCIL
Frequent Advisor

Re: problem with vgdisplay

Hi
Check the output of ioscan -kfnC disk & check whether the you get /dev/dsk/c1t4d0
if yes then check diskinfo /dev/rdsk/c1t4d0
check the /etc/lvmtab entry for the above disk as well.
Amit Vichare
Gene Kornacki_3
Advisor

Re: problem with vgdisplay

Did this just happen all of a sudden? Has there been HW changes?

mv /etc/lvmtab /etc/lvmtab.old

and run vgscan again. This will rebuild the lvmtab. I've done this in the past and HPUX comes back with a message stating you have to use vgimport to import the PV's into the VG. Or soemthing to that effect....

James Clay_2
Occasional Advisor

Re: problem with vgdisplay

I had what sounds like the same problem the other day.

Are you using PV links, and the device referred to as missing i.e. c1t4d0 has been re-assigned another controller number?

I re-added the pvlink to the new controller number i.e. c1t4d0 had become c4t4d0 and then removed the lvmtab and ran a vgscan. This solved my problem.

Running a vgscan before this wouldn't work as the PVRA information was corrupt and the system wouldn't detect any VG's with this problem.

Good luck.
"Computer games don├В┬╣t affect kids, I mean if pac man affected us as kids, we├В┬╣d all be running around in darkened rooms, munching pills and listening to repetitive music."