Showing results for 
Search instead for 
Did you mean: 

pv unavailable

Regular Advisor

pv unavailable

Hello ..

I am getting an error message in the server that one the pv is unavailable . Also dd command also showing read error , ioscan scan is showing the status as no_hw. But in the lvdisplay output its showing two disk , and I could not find any stale part

root@host:/ : ioscan -fnNC disk | grep -i no_hw
disk 26 64000/0xfa00/0xd esdisk NO_HW DEVICE HP 146 GST3146855LC

root@host:/ : diskinfo /dev/rdisk/disk26
diskinfo: can't SIOC_INQUIRY /dev/rdisk/disk26: No such device or address
root@host:/ :

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvswap 1875 1875
/dev/vg00/lvsmd 5 5

root@host:/ : lvdisplay -v /dev/vg00/lvswap | more
--- Logical volumes ---
LV Name /dev/vg00/lvswap
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 60000
Current LE 1875
Allocated PE 3750
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/disk/disk3_p2 163 163
/dev/disk/disk26 1875 1875
/dev/disk/disk27 1712 1712

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/disk/disk3_p2 04184 current /dev/disk/disk26 00000 current
00001 /dev/disk/disk3_p2 04185 current /dev/disk/disk26 00001 current
00002 /dev/disk/disk3_p2 04186 current /dev/disk/disk26 00002 current
00003 /dev/disk/disk3_p2 04187 current /dev/disk/disk26 00003 current
00004 /dev/disk/disk3_p2 04188 current

root@host:/ : dd if=/dev/rdsk/c1t10d0 of=/dev/null bs=1024
dd read error: No such device or address
0+0 records in
0+0 records out
root@host:/ :

This disk is under pvg for vg00 .
Could some one help me to find out if this disk is really faulty or anything need to do to resolve this issue

P Arumugavel
Respected Contributor

Re: pv unavailable

Is thid disk mirror of root disk?

Regular Advisor

Re: pv unavailable

Yes , This is mirrored disk . Please find the attachment
Regular Advisor

Re: pv unavailable

AT present only one lvol ( swaplv) is using this disk

/dev/rdisk/disk2 and /dev/rdisk/disk3 are mirrored

The disk /dev/disk/disk26 has been added to vg00 for additional space which now using by lvswap
Anoop Sivan
Frequent Advisor

Re: pv unavailable

disk 26 need to replace

#pvchange -a n /dev/disk/disk26
replace the disk

#vgcfgrestore -n vg00 /dev/rdsk/ --> Restore the vg configuration

#vgchange -a y vg00 -->resync mirrors

#lvlnboot -R vg00 -->update BDRA

#lvlnboot -R vg00 -->check the boot configuration.

Check if all the mirrors are in sync.
# vgdisplay -v vg00 |egrep -i "lv name|lv status"

Re: pv unavailable

have you re seated the disk and checked?I think disk needs replacement as ioscan clearly reports no_hw and dd fails as well.
Regular Advisor

Re: pv unavailable

disk /dev/disk/disk26 requires replacement

# pvcreate /dev/rdsk/Lagacy_path ( it will come out with file already exists in /etc/lvmtab_p )

#pvchange -a n /dev/disk/disk26
replace the disk

#vgcfgrestore -n vg00 /dev/rdsk/ --> Restore the vg configuration

#vgchange -a y /dev/vg00 -->resync mirrors

Check if the synch is started else run


#lvdisplay -v /dev/vg00/lvol* | grep stale |wc -l .....................output of this command should 0 otherwise wait for some

Knowledge is power
Acclaimed Contributor

Re: pv unavailable

The status

PV Name /dev/disk/disk26
PV Status unavailable

and the NO_HW status indicates a dead disk that needs replacement.

Hope this helps!

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!   
Regular Advisor

Re: pv unavailable

Thanks for all for your valuable response . I have replaced the disk and performed vgcfgrestore .
Now everything is fine
Regular Advisor

Re: pv unavailable