PV Status: unavailabe

 
bunty.....
Frequent Advisor

PV Status: unavailabe

# vgdisplay -v /dev/vg74
--- Volume groups ---
VG Name /dev/vg74
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 9727
VGDA 4
PE Size (Mbytes) 4
Total PE 19452
Alloc PE 18750
Free PE 702
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg74/alb_db_albbpt_archive
LV Status available/syncd
LV Size (Mbytes) 7000
Current LE 1750
Allocated PE 1750
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c23t4d3
PV Status unavailable
Total PE 9726
Free PE 0
Autoswitch On

PV Name /dev/dsk/c23t4d4
PV Status unavailable
Total PE 9726
Free PE 702
Autoswitch On


# ioscan -fnC disk | grep /dev/dsk/c23t4d3
/dev/dsk/c23t4d3 /dev/rdsk/c23t4d3

# ioscan -fnC disk | grep /dev/dsk/c23t4d4
/dev/dsk/c23t4d4 /dev/rdsk/c23t4d4

# diskinfo /dev/rdsk/c23t4d3
SCSI describe of /dev/rdsk/c23t4d3:
vendor: DGC
product id: CX700WDR10
type: direct access
size: 39845888 Kbytes
bytes per sector: 512

# diskinfo /dev/rdsk/c23t4d4
SCSI describe of /dev/rdsk/c23t4d4:
vendor: DGC
product id: CX700WDR10
type: direct access
size: 39845888 Kbytes
bytes per sector: 512


Please suggest what to do to make these PV status available?
bunty
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: PV Status: unavailabe

Shalom bunty,

The disk in question is most likely offline.

It may not be assigned to the World Wide Name(WWN) of your fiber card. In that case it would be insvisible. But it was assigned and a SAN admin changed it, that would explain it.

There could be a bad disk.

Take a look:

ioscan -fnC disk

If you don't see that device claimed, its probably one of the issues above.

if its a simple disk, replace it. If it's LUN configuration than deal with that issue.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
bunty.....
Frequent Advisor

Re: PV Status: unavailabe

should i try with pvchange or vgchange?

will it loose the data or not?
Sivakumar TS
Honored Contributor

Re: PV Status: unavailabe


Hi,

Even if the disk is OK , and if the LVM headers are corrupt then also the PV status wont be available.

try #pvdisplay on the disk.

if its a mirrordisk / alternate disk then you can do a vgcfgrestore on the disk.

With Regards,

Siva.
Nothing is Impossible !
Arunvijai_4
Honored Contributor

Re: PV Status: unavailabe

Hi Bunty,

Have you enabled WWN to your FC card ? Hopefully, since you can see the disk and its unavailable, it could be a security problem with zoning.

Also, do # dd if=/dev/rdsk/c23t4d3 of=/dev/null bs=64k count=100

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mridul Shrivastava
Honored Contributor

Re: PV Status: unavailabe

Removing should not affect the data. Bad sectors r on first disk so whatever data was on those extents is not in sync (and it would have not been updated as system can't read/ write to that extents. So whatever is on the second disk in the data which is in use as of now also. Anyway u have backup so u can give it a try but be sure while removing u should remove the first disk which contains bad sectors.
Time has a wonderful way of weeding out the trivial
Devender Khatana
Honored Contributor

Re: PV Status: unavailabe

Hi,

pvcahnge or vgchange will not cause any demage to data. You can try pvchange but vgchange will not do anything as the VG is allready active.

Also can you post "strings /etc/lvmtab"
As vgdisplay for the VG shows both volumes to be active and status shows unavailable. pvchange should be able to fix it. Also post "bdf" output.

What is the current status of 8 LVs in the VG?

HTH,
Devender
Impossible itself mentions "I m possible"
Muthukumar_5
Honored Contributor

Re: PV Status: unavailabe

Try as,

# pvchange -a y /dev/dsk/c23t4d4

It will change that PV to be available state.

--
Muthu
Easy to suggest when don't know about the problem!
Ajitkumar Rane
Trusted Contributor

Re: PV Status: unavailabe

Hello Bunty,

LVM OLR should be available to use the pvchange -a Y command.

Both command and kernel components are required to enable LVM OLR: â ¢ For HP-UX 11i version 1, install patches PHKL_31216 and PHCO_30698 or their superseding patches. â ¢ For HP-UX 11i version 2, install patches PHKL_32095 and PHCO_31709 or their superseding patches.


Rgds,

Ajit
Amidsts difficulties lie opportunities