Operating System - HP-UX
1848179 Members
5864 Online
104022 Solutions
New Discussion

lvmtab and power failed disk

 
SOLVED
Go to solution
Douglass Anderson
Regular Advisor

lvmtab and power failed disk

I have a power unit that caused 5 disks to fail on HPUX 10.20.

I have broken a mirror and recreated it on different drives, but the file system is still in lvmtab for one filessystem that was not mirrored and the data loss is not as important

the disks are /dev/dsk/c18t12d0 and /dev/dsk/c18t13d0

----- part of 'strings /etc/lvmtab' ---------
/dev/vgmisc2
/dev/dsk/c22t3d0
/dev/dsk/c22t4d0
/dev/dsk/c18t12d0
/dev/dsk/c18t13d0
/dev/dsk/c15t4d0
/dev/dsk/c15t15d0

Any help would be great.
6 REPLIES 6
Peter Godron
Honored Contributor
Solution

Re: lvmtab and power failed disk

sdass
Advisor

Re: lvmtab and power failed disk


you can try this

#mv /etc/lvmtab /etc/lvmtab.old

Recreate it from PVRA and VGRA on the disk through the command
#vgscan -v
Douglass Anderson
Regular Advisor

Re: lvmtab and power failed disk

vgscan -gave me errors reading every VG and
a blank lvmtab file. I replaced to backup copy. Now what?
sdass
Advisor

Re: lvmtab and power failed disk

before recreating the mirror did you removed the PV from mirror

What is the out for lvdisplay for the lv's for these PV's
Douglass Anderson
Regular Advisor

Re: lvmtab and power failed disk

I remove the lv from the non-mirrored disk, but due to the hardware errors, I could not pvremove the PV from the VG

Not the below is the mirrored LV that I moved to two other disks.

# lvdisplay /dev/vgmisc2/lvol1
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c18t12d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c18t13d0":
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/vgmisc2/lvol1
VG Name /dev/vgmisc2
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 2540
Current LE 635
Allocated PE 1270
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
Douglass Anderson
Regular Advisor

Re: lvmtab and power failed disk

thx