Cannot get a LVM mounted

 
SOLVED
Go to solution
Juan Canjura
Advisor

Cannot get a LVM mounted

Hi all,

I'm a real "newbie" with HP-UX (mostly a Tru64 admin) and just I found an HP-UX server that has been rebooted lately and now it's having a problem with one of the volumes (/dev/vg02). I've read some threads with no luck and basically this is what I've done so far.

# lvdisplay -v /dev/vg02/lvol_odarchive
lvdisplay: Couldn't query logical volume "/dev/vg02/lvol_odarchive":
Volume group not activated.

lvdisplay: Cannot display logical volume "/dev/vg02/lvol_odarchive".

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t12d0
/dev/vg01
/dev/dsk/c0t8d0
/dev/vg02
/dev/dsk/c0t5d0

# insf -e -C disk
insf: Installing special files for sdisk instance 0 address 8/12.5.0
insf: Installing special files for sdisk instance 1 address 8/12.8.0
insf: Installing special files for sdisk instance 2 address 8/12.12.0
insf: Installing special files for sdisk instance 4 address 8/12.14.0
insf: Installing special files for sdisk instance 5 address 8/12.15.0
insf: Installing special files for sdisk instance 6 address 8/16/5.2.0

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/12.5.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/12.8.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 2 8/12.12.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t12d0 /dev/rdsk/c0t12d0
disk 4 8/12.14.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t14d0 /dev/rdsk/c0t14d0
disk 5 8/12.15.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t15d0 /dev/rdsk/c0t15d0
disk 6 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5701TA
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0

# pvdisplay -v /dev/dsk/c0t5d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
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/vg02".
pvdisplay: Cannot display physical volume "/dev/dsk/c0t5d0".

Hopefully I'm not asking too much but any light on this will be more than welcome.

Thanks,

Juan.
5 REPLIES 5
Bill Hassell
Honored Contributor
Solution

Re: Cannot get a LVM mounted

> pvdisplay: Cannot display physical volume "/dev/dsk/c0t5d0".

Sounds like this disk has failed. Look in syslog (/var/adm/syslog/syslog.log) for disk errors. If there are disk errors, the disk will likely need to be replaced, vg02 rebuilt and the data restored. Since nothing is mirrored, this is your only choice.


Bill Hassell, sysadmin
Calandrello
Trusted Contributor

Re: Cannot get a LVM mounted

Friend
this error happens the times in the HP-UX tries to execute the command vgcfgrestore this must decide the problem.
Peter Godron
Honored Contributor

Re: Cannot get a LVM mounted

Juan,
a very good HP document to read to get to understand LVM:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Your messages would indicate you have lost disk c0t5d0, on which vg02 was sitting.
Juan Canjura
Advisor

Re: Cannot get a LVM mounted

Thank you all of you, the information provided was just perfect.

Juan
Juan Canjura
Advisor

Re: Cannot get a LVM mounted

Thanks again