cancel
Showing results for 
Search instead for 
Did you mean: 

PV missing, how to recovery

 
SOLVED
Go to solution
Gary L
Super Advisor

PV missing, how to recovery

Hi

I have a RedhatES3 server. yesterday a PV /dev/dsk/c18t0d1 missing, I wanna recovery it. details as below:
/dev/vg08/lvol1 /dev/dsk/c18t0d1
today I got msg said vgchange failed: VG can't be activated, umount failed: Device Busy or Mount point not available. I found PV /dev/dsk/c18t0d1 missing. through SAM I found there is a disk 255/255/1/0.0 Unused Total mB 512000. I try to:
1. #pvcreate /dev/rdsk/c18t0d1
pvcreate: Couldn't open physical volume "/dev/rdsk/c18t0d1":
No such device or address

2.#vgcfgrestore -n /dev/vg08 /dev/rdsk/c18t0d1
vgcfgrestore: Could not open Physical Volume "/dev/rdsk/c18t0d1".

VG /dev/vg08, LV lvol1 and mount point still there, no need re-create.

how to recovery the PV VG LG

thanks!
4 REPLIES
Steven E. Protter
Exalted Contributor
Solution

Re: PV missing, how to recovery

Shalom,

First you must figure out why it went bye bye.

If a disk has died, no amount of recovery is going to help. The disk will need to be replaced and the data restored.

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
Gary L
Super Advisor

Re: PV missing, how to recovery

Hi Steven

thank you very much for your fast reply.
I have no idea why the disk disappear and miss. Do you have some method or tools could figure out the problems?
"vgscan","insf -e" and "ioscan -funC disk" "pvdisplay" "diskinfo" etc could not list and recovery this PV. But through SAM - disk and filesystem - disk I could see there is a unused 512000 hardware path 255/255/1/0.0 disk device. It must be the missing disk space.
As you know, /dev/vg08, lvol1 and mount point still there. How can I re-use this 512000's disk as /dev/rdsk/c18t0d1.
Why you thought this disk had died, through "pvcreate" error responds? if died why I could list this disk device and size.
If replace a new disk, what's the next steps:
only run the "pvcreate /dev/rdisk/c18t0d1?

thx!
Ashish Parashar
Frequent Advisor

Re: PV missing, how to recovery

Hi Gary

As you received error of PV missing,the problem cause is that the requested disk go bad,hence check

pvdisplay /dev/dsk/c18t0d1 and find availablity of disk if its unavailable and

diskinfo /dev/rdsk/c18t0d1 gives below error

diskinfo: can't SIOC_INQUIRY /dev/rdsk/c18t0d1 : I/O error

that means you need to replace disk

then pvcreate,vgcfgrestore etc.

Regards

Ashish
Gary L
Super Advisor

Re: PV missing, how to recovery

Thanks Ashish

when I ran:
#pvdisplay /dev/dsk/c18t0d1
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c18t0d1":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg08".
pvdisplay: Cannot display physical volume "/dev/dsk/c18t0d1".


#diskinfo /dev/rdsk/c18t0d1
diskinfo: can't open /dev/rdsk/c18t0d1: No such device or address

whether up info could make sure disk c18t0d1 bad need replace?

would you please tell me which status, which responds, which info will judge disk faile go bad need replace?

As you know, I could saw this disk through SAM (sam tell me there is unused 512000 hardware path 255/255/1/0.0 disk device)

thanks a lot!