Operating System - HP-UX
1833187 Members
3128 Online
110051 Solutions
New Discussion

Re: how to replace this pv under lvmpvg configuration ?

 
Rambo_1
Regular Advisor

how to replace this pv under lvmpvg configuration ?

Hi,
One pv(c3t13d0) in vg02 had missing.
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t13d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
In vg02,the c3t13d0 has a mirror relationship with c0t13d0.
LV Name /dev/vg02/lvol2
VG Name /dev/vg02
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery NOMWC
Schedule parallel
LV Size (Mbytes) 1776
Current LE 444
Allocated PE 888
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t13d0 444 444

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
/dev/dsk/c0t13d0 0000 current ??? 0000 stale
0001 /dev/dsk/c0t13d0 0001 current ??? 0001 stale
0002 /dev/dsk/c0t13d0 0002 current ??? 0002 stale
0003 /dev/dsk/c0t13d0 0003 current ??? 0003 stale
0004 /dev/dsk/c0t13d0 0004 current ??? 0004 stale
0005 /dev/dsk/c0t13d0 0005 current ??? 0005 stale
0006 /dev/dsk/c0t13d0 0006 current ??? 0006 stale

And there is a lvmpvg config in lvmpvg file
@/etc#strings lvmtpvg
VG /dev/vg00
PVG rootscsi1
/dev/dsk/c0t5d0
/dev/dsk/c0t15d0
PVG rootscsi2
/dev/dsk/c3t5d0
/dev/dsk/c3t15d0
VG /dev/vg02
PVG scsibus1
/dev/dsk/c0t13d0
/dev/dsk/c0t12d0
PVG scsibus2
/dev/dsk/c3t13d0
/dev/dsk/c3t12d0
VG /dev/vg03
PVG scsi1
/dev/dsk/c0t10d0
/dev/dsk/c0t11d0
PVG scsi2
/dev/dsk/c3t10d0
/dev/dsk/c3t11d0

How to replace the failed PV online under lvmpvg configuraton
Thanks for your help

BR
2 REPLIES 2
Nguyen Anh Tien
Honored Contributor

Re: how to replace this pv under lvmpvg configuration ?

Hi RAMBO
1. Reduce mirrored data on failed disk
#lvreduce /dev/vg02/lvxxxx /dev/dsk/c3t13d0
(reduce all lv in vg02 that mirrored to c3t13d0)
2, reduce c3t13d0 from vg02
#vgreduce -f vg02
3,update lvmtab, lvmpvg
#mv /etc/lvmtab /etc/lvmtab.bak
#mv /etc/lvmpvg /etc/lvmpvg.bak
#vgscan -a
That 's all
HTH
tienna
HP is simple
Artyom Voronchihin
Respected Contributor

Re: how to replace this pv under lvmpvg configuration ?

Hello.

1.Replace missing disk with good one.
2. # vgcfgrestore -n /dev/vg02 /dev/rdsk/c3t13d0
3. # vgsync /dev/vg02

man vgcfgrestore(1m) and vgsync(1m) for further info.
"Intel inside" is not a label, it's a warning.