Operating System - HP-UX
1825780 Members
2373 Online
109687 Solutions
New Discussion

configuration info for physical volume not found in vg00.conf file

 
SOLVED
Go to solution
Rajesh_60
Occasional Advisor

configuration info for physical volume not found in vg00.conf file

Hello all,
All of a sudden, i am getting following error for any of the lvm operations.

vgdisplay gives following error

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.

ioscan -fnC disk output is

Class I H/W Path Driver S/W State H/W Type Description

disk 1 10/0/15/0.6.0 sdisk CLAIMED DEVICE HP 36.4GST336607LC
/dev/rdsk/c2t6d0

diskinfo /dev/rdsk/c2t6d0 is as follows
SCSI describe of /dev/rdsk/c2t6d0:
vendor: HP 36.4G
product id: ST336607LC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512


strings /etc/lvmtab is as follows
/dev/vg00
/dev/dsk/c2t6d0

vgscan output is as follows

vgscan: Warning: couldn't query physical volume "/dev/dsk/c2t6d0":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query all of the physical volumes.
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg01".
vgscan: The physical volume "/dev/dsk/c2t6d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument
Couldn't stat physical volume "/dev/dsk/c2t6d0":
Invalid argument

The Volume Group /dev/vg00 was not matched with any Physical Volumes.
The Volume Group /dev/vg01 was not matched with any Physical Volumes.

The command "vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0" results in following errors...

vgcfgrestore: Couldn't query physical volume "/dev/rdsk/c2t6d0":
Block device required
Volume Group configuration has been restored to /dev/rdsk/c2t6d0
bash-3.00# vgcfgrestore -n /dev/vg00 /dev/dsk/c2t6d0
vgcfgrestore: Couldn't query physical volume "/dev/rdsk/c2t6d0":
Block device required
Configuration info for Physical Volume "/dev/dsk/c2t6d0" not found
in "/etc/lvmconf/vg00.conf" :
Character-special file for PV not supplied on command line, OR
PV did not belong to Volume Group /dev/vg00 when configuration file was created.

tried moving lvmtab and creating it with vgscan..and it is of no use. please help me.
6 REPLIES 6
Stephen Keane
Honored Contributor

Re: configuration info for physical volume not found in vg00.conf file

What does

pvdisplay -v dev/dsk/c2t6d0

Produce? I think the system no longer recognizes that your disk is a PV.
Rajesh_60
Occasional Advisor

Re: configuration info for physical volume not found in vg00.conf file

sam also shows the null value for the volume group field for the disk /dev/dsk/c2t6d0

pvdisplay -v /dev/dsk/c2t6d0 gives following output...

pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t6d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg00".
pvdisplay: Cannot display physical volume "/dev/dsk/c2t6d0".
Massimo Bianchi
Honored Contributor
Solution

Re: configuration info for physical volume not found in vg00.conf file

Hi,
is that the EXACT output of ioscan ?

Looks like the block device is missing.

Try to recreate them:

insf -e -C disk

HTH,
Massimo

Stuart Abramson
Trusted Contributor

Re: configuration info for physical volume not found in vg00.conf file

One typical cause for this error is that you had a hardware error and the disk went dead. I would think, from your history, that you had a dual access disk on two paths, c0t6d0 and c2t6d0, and one path went dead. Does "dmesg" or syslog.log have any HW errors?

Also, why does vgscan mention "vg01". If you only have one disk how did you get two volume groups?

Here's an idea: Has anyone done any "pvcreate"s on this disk? That would wipe out the old header info...
Rajesh_60
Occasional Advisor

Re: configuration info for physical volume not found in vg00.conf file

Thanks all. After the insf command , every thing is working fine.
Prior to this problem,I had tried to issue scsi inquiry commands programatically to that disk. it might have caused this problem...
i had tried to create a volume group vg01 and later found that we would require another disk.
Rajesh_60
Occasional Advisor

Re: configuration info for physical volume not found in vg00.conf file

insf -e -C disk solves the problem