1752805 Members
5436 Online
108789 Solutions
New Discussion юеВ

Failed disk in LVM

 
Nyck_1
Super Advisor

Failed disk in LVM

It appears that I have a failed disk in one of my ancient J5600's:-

vgdisplay -v
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 4
Act PV 3
Max PE per PV 4350
VGDA 6
PE Size (Mbytes) 4
Total PE 13020
Alloc PE 9943
Free PE 3077
Total PVG 3
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Size (Mbytes) 300
Current LE 75
Allocated PE 150
Used PV 1

The system is still working so I'm asuming its mirrored. So when I get the disk replaced how do I proceed with getting the system all back to normal?

How can I actually tell that this is mirrored?
13 REPLIES 13
Kapil Jha
Honored Contributor

Re: Failed disk in LVM

lvdisplay lv_name
it would show its its mirroed or not.

to replace check the PDF
when_good_disk_go bad.

BR,
kapil+
I am in this small bowl, I wane see the real world......
HCL Ash
Frequent Advisor

Re: Failed disk in LVM

If the disk is hotswap disk and lvol is mirrored

Do the follwoingg things

Replace th bad disk

#vgcfgrestore -n Vg01 /dev/rdsk/c3t5d0
#lvsync dev/vg00/lvol1

----------------------------
IF lvol is not mirror

1) take backup of system

2) #vgcfgrestore -n Vg01 /dev/rdsk/c3t5d0

3) crete newfile system on lvol mount it back and restore the data.
Johnson Punniyalingam
Honored Contributor

Re: Failed disk in LVM

Once of your disk failling from"vg00"

>>replaced how do I proceed with getting the system all back to normal?<<

You can also refer to HP offical document

"Good disk Gone Bad".

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

>>How can I actually tell that this is mirrored?<<

lvdisplay -v /dev/vg00/lvol1 |more -> look for "Mirror Copies =1

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Nyck_1
Super Advisor

Re: Failed disk in LVM

Its does appear to be mirrored:-

lvdisplay -v /dev/vg00/lvol1
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 300
Current LE 75
Allocated PE 150
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

So next step is to log a call and get a new disk shipped:-)
Johnson Punniyalingam
Honored Contributor

Re: Failed disk in LVM

>>So next step is to log a call and get a new disk shipped:-)<<<<

Yes . Please
Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: Failed disk in LVM

You have 4 disks in vg00.

Take care when replacing the drive - 2 are bootable, 2 are just for data!

Some information that could help:

# pvdisplay -v ... (for remaining disks)

# setboot (to get the configured boot disks)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sp4admin
Trusted Contributor

Re: Failed disk in LVM

Looks like you have gotten the answer. I used the same document that Johnson recommended and to this day still use it.

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

sp,
Prasanth Thomas
Valued Contributor

Re: Failed disk in LVM

HI,

Please update the below queries.

whats the version of the OS.
#strings /etc/lvmtab
#pvdisplay /dev/dsk/c3t5d0
#diskinfo /dev/rdsk/c3t5d0
#lvlnboot -v
#dmesg |grep -i "c3t5d0"
#ls -ltr /dev/dsk/*
#ls -ltr /etc/lvmconf/
#vgscan

Regards,
Prasanth Thomas.
Nyck_1
Super Advisor

Re: Failed disk in LVM

The version of OS is 11.11 & the details of your questions are below:-

strings /etc/lvmtab
/dev/vg00
/dev/dsk/c3t6d0
/dev/dsk/c3t5d0
/dev/dsk/c3t3d0
/dev/dsk/c3t4d0
/dev/vg_san
/dev/dsk/c7t0d1
/dev/dsk/c8t0d0
/dev/dsk/c7t0d2
[lonse5] usr #
[lonse5] usr # pvdisplay /dev/dsk/c3t5d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t5d0":
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/c3t5d0".
[lonse5] usr #
[lonse5] usr # diskinfo /dev/rdsk/c3t5d0
io_search failed: No match found.
[lonse5] usr # lvlnboot -v
lvlnboot: Couldn't query physical volume "/dev/dsk/c3t5d0":
The specified path does not correspond to physical volume attached to
this volume group
[lonse5] usr # dmesg |grep -i 'c3t5d0'
[lonse5] usr #
[lonse5] usr # ls -ltr /dev/dsk/*
brw-r----- 1 bin sys 31 0x000000 Feb 24 2005 /dev/dsk/c0t0d0
brw-r----- 1 bin sys 31 0x033000 Feb 24 2005 /dev/dsk/c3t3d0
brw-r----- 1 bin sys 31 0x034000 Feb 24 2005 /dev/dsk/c3t4d0
brw-r----- 1 bin sys 31 0x035000 Feb 24 2005 /dev/dsk/c3t5d0
brw-r----- 1 bin sys 31 0x036000 Feb 24 2005 /dev/dsk/c3t6d0
brw-r----- 1 bin sys 31 0x063000 Mar 30 2005 /dev/dsk/c6t3d0
brw-r----- 1 bin sys 31 0x053000 Mar 30 2005 /dev/dsk/c5t3d0
brw-r----- 1 bin sys 31 0x070000 Mar 30 2005 /dev/dsk/c7t0d0
brw-r----- 1 bin sys 31 0x070100 Mar 30 2005 /dev/dsk/c7t0d1
brw-r----- 1 bin sys 31 0x080000 Mar 30 2005 /dev/dsk/c8t0d0
brw-r----- 1 bin sys 31 0x080100 Mar 30 2005 /dev/dsk/c8t0d1
brw-r----- 1 bin sys 31 0x070200 Apr 7 2006 /dev/dsk/c7t0d2
brw-r----- 1 bin sys 31 0x080200 Apr 7 2006 /dev/dsk/c8t0d2
[lonse5] usr #
[lonse5] usr # ls -ltr /etc/lvmconf/
total 9248
---------- 1 root sys 0 Feb 24 2005 lvm_lock
-r-------- 1 root sys 297984 May 9 2005 vg01.conf.old
-r-------- 1 root sys 296960 May 9 2005 vg01.conf
-r-------- 1 root sys 332800 Jun 1 2005 vg00.conf.old
-r-------- 1 root sys 332800 Jun 1 2005 vg00.conf
-rw------- 1 root sys 1724416 Apr 7 2006 vg_san.conf.old
-r-------- 1 root sys 1724416 Apr 7 2006 vg_san.conf
[lonse5] usr #
[lonse5] usr # vgscan
vgscan: Warning: couldn't query physical volume "/dev/dsk/c3t5d0":
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: The physical volume "/dev/dsk/c3t3d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c3t4d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c3t6d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c7t0d1" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c7t0d2" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c8t0d0" is already recorded in the "/etc/lvmtab" file.
Couldn't stat physical volume "/dev/dsk/c0t0d0":
Invalid argument