1848619 Members
1692 Online
104033 Solutions
New Discussion

Re: stale PV

 
UniRock
Regular Advisor

stale PV

Hi Everybody,
This is not a fully functional servwr but has following error, what should be my corrective steps. Certain PVs are showing "stale"

# vgdisplay vg01
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d4":
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/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 5
Open LV 5
Max PV 16
Cur PV 4
Act PV 2
Max PE per PV 2303
VGDA 4
PE Size (Mbytes) 4
Total PE 3326
Alloc PE 875
Free PE 2451
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

also

# lvdisplay /dev/vg01/data2
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d2":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t0d4":
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/vg01/data2
VG Name /dev/vg01
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

2 REPLIES 2
Ganesan R
Honored Contributor

Re: stale PV

Hello,

Look at these two values.

Cur PV 4
Act PV 2

It is clearly showing there are physical volumes issue. Check all the physical volumes belongs to VG01 shows claimed on ioscan. If it is online then there is mismatch between /etc/lvmtab and kernel LVM data.

In that case it is possible that LVM headers may corrupt on the missing PV's. you may have to restore the LVM headers from backup using vgcfgrestore.

Try vgcfgrestore -n vg01 -l to confirm these missed PV's belongs to VG01

Hope this helps
Best wishes,

Ganesh.
UniRock
Regular Advisor

Re: stale PV

thanks Ganesan, i used vgfcgrestore and indeed fixed the problem.