cancel
Showing results for 
Search instead for 
Did you mean: 

PV Status Unavailable

SOLVED
Go to solution
supen
Occasional Advisor

PV Status Unavailable

Hi,
I have a system HP PA-RISC rp7440 system with the following.
****************************************
sauxa02d:root [/] uname -a
HP-UX sauxa02d B.11.23 U 9000/800 sauxa02d unlimited-user license
sauxa02d:root [/] ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 0/0/0/3/0.6.0 sdisk CLAIMED DEVICE HP 146 GST3146854LC
/dev/dsk/c0t6d0 /dev/rdsk/c0t6d0
disk 1 0/0/1/1/0/4/0.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/1/1/0/4/1.5.0 sdisk CLAIMED DEVICE HP 146 GST3146854LC
/dev/dsk/c3t5d0 /dev/rdsk/c3t5d0
disk 3 0/0/14/1/1.8.0.255.2.0.0 sdisk CLAIMED DEVICE HPQ BD0725822B
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 4 0/0/14/1/1.8.0.255.2.1.0 sdisk CLAIMED DEVICE HP 73.4GST373405FC
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
disk 5 0/0/14/1/1.8.0.255.2.2.0 sdisk CLAIMED DEVICE HP 73.4GST373405FC
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0

sauxa02d:root [/] vgdisplay -v /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 150
Cur PV 2
Act PV 2
Max PE per PV 2187
VGDA 4
PE Size (Mbytes) 32
Total PE 4374
Alloc PE 3479
Free PE 895
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 111328
Current LE 3479
Allocated PE 3479
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c4t1d0
PV Status available
Total PE 2187
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c4t2d0
PV Status unavailable
Total PE 2187
Free PE 895
Autoswitch On
Proactive Polling On
**********************************

My Question is why the disk /dev/dsk/c4t2d0 is showing unavailable in /dev/vg01? Can anybody please help me to get rid off this issue.

Thanks
10 REPLIES
Torsten.
Acclaimed Contributor

Re: PV Status Unavailable

This could have a couple of reasons.

I would do a "diskinfo" and a check with "dd", if successful, activate the VG again.

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!   
Shibin_2
Honored Contributor

Re: PV Status Unavailable

How about accessibility to this disk? Have you ran any diagnostic commands ?
Regards
Shibin
Noé
Valued Contributor

Re: PV Status Unavailable

Hello.

Try:
# dd if=/dev/rdsk/c4t2d0 of=/dev/null bs=8192k count=10

dd should not show any error.

Check /var/adm/syslog/syslog.log about c4t2d0 disk.

Regards.
Noé.
rariasn
Honored Contributor
Solution

Re: PV Status Unavailable

Hi:


Attach a path to a physical volume:

# pvchange -a y /dev/dsk/c4t2d0

The vgchange command may be used to attach all PVs in the volume group and resume automatically attaching failed PVs.

# vgchange -a y /dev/vg01

# vgdisplay -v vg01

rgs,
Johnson Punniyalingam
Honored Contributor

Re: PV Status Unavailable

if you can ioscan , diskinfo and dd a drive normally than there is no hardware problem

and you try restore PV

vgcfgrestore -n /dev/vg01 /dev/rdsk/c4t2d0
vgchange -a y vg00
vgsync vg01
Problems are common to all, but attitude makes the difference
madhuchakkaravarthy
Trusted Contributor

Re: PV Status Unavailable

hi

from ioscan output

disk 5 0/0/14/1/1.8.0.255.2.2.0 sdisk CLAIMED DEVICE HP 73.4GST373405FC
/dev/dsk/c4t2d0 /dev/rdsk/c4t2d0

##################################


check with dd and diskinfo

dd if=/dev/rdsk/c4t2d0 of=/dev/null bs=1024k

check for io error or u can read successful.

diskinfo /dev/rdsk/c4t2d0

post the output of dd and diskinfo ..

regards

MC
supen
Occasional Advisor

Re: PV Status Unavailable

Hi All,
Thanks everybody for your quick response.
Actually I have identified the root cause and it is like this,
the said disks were allocated by the storage administrator in two nodes by mistake, so when created vg01 in one node and then created vg01 in another node using the same physical disk, the earlier node's vg01 got corrupted and in the vg01 of first node the status of the PV was showing unavailable.

Thanks again.
supen
Occasional Advisor

Re: PV Status Unavailable

Hi All,
Thanks everybody for your quick response.
Actually I have identified the root cause and it is like this,
the said disks were allocated by the storage administrator in two nodes by mistake, so when created vg01 in one node and then created vg01 in another node using the same physical disk, the earlier node's vg01 got corrupted and in the vg01 of first node the status of the PV was showing unavailable.

Thanks again.
Shibin_2
Honored Contributor

Re: PV Status Unavailable

Some newbies to your Storage Admin, I guess ;)
Regards
Shibin
madhuchakkaravarthy
Trusted Contributor

Re: PV Status Unavailable

hi

when created vg01 in one node and then created vg01 in another node using the same physical disk, the earlier node's vg01 got corrupted

++++++++++++++++++

how this is possiable

when u run pvcreate /dev/dsk/cxtydz

it might say that disk is already used.

did u used -f option to that,, if yes dont use -f option in pvcreate

regards

MC