System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

commands for Disk replacemant mirror boot disk N-class

SOLVED
Go to solution
Frank de Vries
Respected Contributor

commands for Disk replacemant mirror boot disk N-class

We have an HP9000 N-class server running 11.00,
and its hotswappable mirror boot disk does not respond anymore to diskinfo or pvdisplay, and it does not show up on any ioscan. Still in /etc/lvmtab it shows up:
/dev/vg00
/dev/dsk/c1t6d0
/dev/dsk/c2t6d0 -->(this one is dead)

Furthermore lvlnboot -v complains that the disk is missing. Yeah right.
So we suspect the disk is dead

I have ordered a new disk, in the meantime I try to puzzle out what to do when I get the new good disk.

Do I need to just to swap the disks (or do run some oommand before I remove it ?)
and then run vgcfgrestore and vgchange ?
Or did I miss anything ?

Thanks
Look before you leap
3 REPLIES
unix adm
Regular Advisor
Solution

Re: commands for Disk replacemant mirror boot disk N-class

Here is the procedure of replacing a failed harddisk in a mirrored (software - mirror ux) VG.

1. As you mentioned the disk is completely dead and hot swappable you can go ahead and
replace the disk physically after that

2. Login as root

3. ioscan -fnCdisk (Detecting the new disk) and note down the path of the Disk

say c2t6d0 is our new disk

4. pvcreate -B /dev/rdsk/c2t6d0 creating PV on the new disk with boot option.

5. vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0 restoring the VG information to the new disk

6.vgchange -a y /dev/vg00 re-activate the VG

7. vgsync /dev/vg00 Synchronize the VG - This will resync each and every LV and will take 30 to 60 minutes depending on the size of the LVs.

8. Use mkboot(1M) to place boot utilities in the boot area:

mkboot /dev/rdsk/c0t3d0
mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c2t6d0

9. lvlnboot -v Verify the disk is properly updated, an ideal output of this command look like this,

Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
/dev/dsk/c2t6d0 (0/0/2/0.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t2d0
/dev/dsk/c2t6d0
Root: lvol3 on: /dev/dsk/c1t2d0
/dev/dsk/c2t6d0
Swap: lvol2 on: /dev/dsk/c1t2d0
/dev/dsk/c2t6d0
Michal Kapalka (mikap)
Honored Contributor

Re: commands for Disk replacemant mirror boot disk N-class

Frank de Vries
Respected Contributor

Re: commands for Disk replacemant mirror boot disk N-class

I already had the document "When good disks go bad" , but for me the overview bu unix_admin is the cookbook recipte I wanted: thanks a million !!!
Look before you leap