Operating System - HP-UX
1761357 Members
2973 Online
108901 Solutions
New Discussion юеВ

Replace failed drive in root mirror

 
SOLVED
Go to solution
Ryan Lardinois
Occasional Contributor

Replace failed drive in root mirror

The drive I am trying to replace is at /dev/dsk/c3t0d0. It had No_HW in ioscan, so I pulled the drive and replaced it.

Upon inserting the new drive, syslog showed "LVM: VG 64 0x000000: PVLink 31 0x030002 Wrong Disk!"

I attempted "vgcfgrestore -n /dev/vg00 /dev/rdsk/c3t0d0s2" and received "vgcfgrestore: Cannot restore Physical Volume "/dev/dsk/c3t0d0s2",
Detach the PV or detactivate the VG, before restoring the PV."

I did "vgreduce -f /dev/vg00" and am attempting to recreate the mirror from the beginning.

Following the "When Good Disks Go Bad" procedure, I ran idisk with:

3
EFI 500MB
HPUX 100%
HPSP 400MB

Two errors show at the bottom:

idisk: Write of requested data failed(22)
idisk: Failed destroying old alternate GPT

I ran "pvcreate -B /dev/rdsk/c3t0d0s2" and received "pvcreate: Couldn't open physical volume /dev/rdsk/c3t0d0s2: I/O error"

ioscan:
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST31467
07LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0
/dev/dsk/c2t1d0s1 /dev/rdsk/c2t1d0s1
/dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s3
disk 1 0/1/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST31467
07LC
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
/dev/dsk/c3t0d0s1 /dev/rdsk/c3t0d0s1
/dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s3

diskinfo:
SCSI describe of /dev/rdsk/c3t0d0:
vendor: SEAGATE
product id: ST3146707LC
type: direct access
size: 143374744 Kbytes
bytes per sector: 512

This is a rx4640. any help would be appreciated.


4 REPLIES 4
sujit kumar singh
Honored Contributor
Solution

Re: Replace failed drive in root mirror

hi
remve these files:
dev/dsk/c3t0d0s1 /dev/rdsk/c3t0d0s1
/dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s3

then run
idisk -R /dev/rdsk/c3t0d0
vi /tmp/pdf
3
EFI 500MB
HPUX 100%
HPSP 400MB
save and exit

idisk -wf /tmp/pdf /dev/rdsk/c3t0d0
ioscan
insf -eC diks
ioscan
see the new device files created.

efi_fsinit -d /dev/rdsk/c3t0d0s1
pvcreate -B /dev/rdsk/c3t2d0s2
mkboot -e -l /dev/rdsk/c3t0d0
vi /tmp/auto
boot /satnd/vmunix -lq

save and exit

efi_cp -d /dev/rdsk/c3t0d0s1 /tmp/auto /EFI/HPUX/AUTO

vgextend /dev/vg00 /dev/dsk/c3t2d0s2
for i in /dev/vg00/lvol*
do
lvextend -m 1 $i /dev/rdsk/c3t2d0s2
done
lvlnboot -vR

regards
sujit
Ryan Lardinois
Occasional Contributor

Re: Replace failed drive in root mirror

Removing the files works fine.

"idisk -R /dev/rdsk/c3t0d0" returns:

idisk: Write of requested data failed(22)
idisk: Failed destroying alternate partition table.1
Torsten.
Acclaimed Contributor

Re: Replace failed drive in root mirror

Read this:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf


At least the "pvchange -a n ..." step is missing.

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!   
Ryan Lardinois
Occasional Contributor

Re: Replace failed drive in root mirror

I was able to successfully complete "Mirroring the Root Volume on Integrity Servers" from "When Good Disks Go Bad" after restarting the server.