1830207 Members
1845 Online
109999 Solutions
New Discussion

Replace disk in L2000

 
SOLVED
Go to solution

Replace disk in L2000

I need to replace a disk in a L2000 that are showing predective failure, I need to know what command is necessary to reduce de lvol and vg and after increase again.
The disk are in VG00, has mirror and o HPUX is 11.00.

Thanks
10 REPLIES 10
Stf
Esteemed Contributor
Solution

Re: Replace disk in L2000

Hello,

to reduce mirrored lv:

# lvreduce -m 0 /dev/vg00/lvolX /dev/dsk/cXtYdZ
where devv/dsk/... is the disk you want to remove
You have to do yhis command with all mirrored lvol

to reduce vg :

# vgreduce /dev/vg00 /dev/dsk/cXtYdZ
where devv/dsk/... is the disk you want to remove

but after that you have to recreate your mirror

Stf ;-)
Fred Ruffet
Honored Contributor

Re: Replace disk in L2000

Commands basics are as said by Stf, but if you're not familiar with HP-UX, it may be easier using sam.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)

Re: Replace disk in L2000

How can i recreate a mirror again.
Fred Ruffet
Honored Contributor

Re: Replace disk in L2000

you will have to use "lvextend -m 1 " on each LV.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Robert-Jan Goossens
Honored Contributor

Re: Replace disk in L2000

Hi,

If you like you could just swap the old with the new disk.

# vgcfgrestore -n /dev/vgXX /dev/rdsk/cXtYdZ

# vgsync vgXX

Regards,
Robert-Jan
Stf
Esteemed Contributor

Re: Replace disk in L2000

to recreate your mirror

1. ioscan -fnC disk
2. insf -e
3. pvcreate -B -f /dev/rdsk/new_disk
4. vgextend /dev/vg00 /dev/dsk/new_disk
5. mkboot /dev/rdsk/new_disk
6. mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/new_disk
7. lvextend -m 1 /dev/vg00/lvolX /dev/dsk/new_disk
do this for each lvol
8. lvlnboot -b /dev/vg00/lvol1
9. lvlnboot -r /dev/vg00/lvol3
10. lvlnboot -s /dev/vg00/lvol2
11. lvlnboot -d /dev/vg00/lvol2

Stf ;-)
A. Clay Stephenson
Acclaimed Contributor

Re: Replace disk in L2000

Since this is vg00, I strongly suspect that this is a mirrored boot disk. Merely re-extending the LVOL's will not create a bootable disk because the disk will not have the boot data on it. You must do a pvcreate -B and run mkboot on it as well. If this were me and the vg00 disk is mirrored as a boot disk I would simply pull the hot-plug disk out a few centimeters and let the drive spin down. Mirror/UX will recoginize this as a drive failure and continue normal operation after a bus reset -- a more or less "normal" SCSI event. Let the box remain in that condition for a few minutes. Now remove the drive completely from its slot and insert the new drive - this too will trigger a bus reset.

From this point, it's a normal hot replacement of a boot disk.

Substitute your appropriate disk device nodes:

1) vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t5d0
2) vgchange -a y /dev/vg00
3) mkboot /dev/rdsk/c1t5d0
4) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t5d0
5) lvlnboot -R
6) vgsync /dev/vg00

I haven't shutdown to replace a disk (failed or failing) in over 8 years. Before doing this procedure, man vgcfgrestore, vgchange, mkboot, lvlnboot, and vgsync so that you understand what each command is doing for you.

If it ain't broke, I can fix that.
Victor Fridyev
Honored Contributor

Re: Replace disk in L2000

Hi,

Look at the thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=605920
You can use the attached script in order to build system disk mirroring.

HTH
Entities are not to be multiplied beyond necessity - RTFM
asb_wang
New Member

Re: Replace disk in L2000

I replace L2000 one disk(boot disk),and reinstall OS.but when I run install program,I found the system can't find the new disk.I want to know how I do will crooect this problem?
Raj D.
Honored Contributor

Re: Replace disk in L2000

Hi Francisco ,

Hope its a hot swapable ,

you can do :

1. Replace the disk.
2. vgcfgrestore -n /dev/vg00 /dev/dsk/cxtydz ( disk device name)
3. vgsync

You will get message "Resynchronized " after its complets syncing the disk.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "