Operating System - HP-UX
1832469 Members
2672 Online
110043 Solutions
New Discussion

replace root mirror drive

 
SOLVED
Go to solution
Jerry_109
Super Advisor

replace root mirror drive

##############################
#B.11.11 U 9000/800/N4000-44
##############################

Hello All,

I found some instructions for replacing a bad "root mirror" (c2t6d0) internal drive. Does this look correct? Is there a vgsync missing ?

##############################



After the disk has been replaced boot into LVM Maintenance Mode:

reboot
interrupt when "10 sec is allowed"
bo pri isl
interact with isl "y"

ISL> hpux -lm

# vgcfgrestore -n vg00 /dev/rdsk/c2t6d0

# vgchange -a y vg00

# mkboot -l /dev/rdsk/c2t6d0
# mkboot -a "hpux -lq" /dev/rdsk/c2t6d0

# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
# lvlnboot -R
# lvlnboot -v

# reboot

# lvdisplay -v /dev/vg00/[lvols]

and finally by

# vgdisplay -v vg00
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: replace root mirror drive

Geoff Wild
Honored Contributor

Re: replace root mirror drive

Shouldn't have to go into lvm maintenance mode...

After failed disk has been replaced by HP (assuming the disk is c2t6d0):

vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0

mkboot /dev/rdsk/c2t6d0

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

vgchange -a y /dev/vg00

lvlnboot -Rv /dev/vg00

vgsync /dev/vg00

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Raj D.
Honored Contributor

Re: replace root mirror drive

Hi Jerry ,


1. Shutdown the server , replace the faulty disk.
2. Boot normally.
3. Identify the new disk , with ioscan.
4. # vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t6d0

5. # vgchange -a y /dev/vg00
6. # mkboot -a /dev/rdsk/c2t6d0

7. # mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c2t6d0

8. # lvlnboot -R /dev/vg00
9. # lvlnboot -v /dev/vg00 [ Verify ]
10. # vgsync /dev/vg00

[ Wait till synchronizaion completes. ]

11. # setboot
[ check , the pri and alt path. ]

12. You can reboot and check .



Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: replace root mirror drive

Jerry (again),

Also to check , from which disk the system is booted from , use this command,


# echo "boot_string/s" | adb /stand/vmunix /dev/kmem


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Shameer.V.A
Respected Contributor

Re: replace root mirror drive

Hi Jerry,

The steps are as below,

ISL> hpux -lq
# pvcreate -f -B /dev/rdsk/cXtXd0
pvcreate: The physical volume "/dev/dsk/c4t6d0" is already recorded in
the "/etc/lvmtab" file.

# vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtXd0
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c4t6d0":

# mkboot /dev/rdsk/cXtXdX

# mkboot -a "hpux -lq" /dev/rdsk/cXtXdX

# vgchange -a y /dev/vg00
Volume group "/dev/vg00" has been successfully changed.

#vgsync /dev/vg00

To verify offline diagnostics are installed on root and mirror disks:
# lifls -il /dev/rdsk/cXtXd0

To download offline diagnostics:
# cd /usr/sbin/diag/lif

if server is a K-Class:
# mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/cXtXd0

if server is a L/N/V/RP Class:
# mkboot -b updatediaglif2 -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/cXtXd0

# lvlnboot -Rv /dev/vg00

Attached a document for more reference.

Hope this will help you,

Regards,

Shameer
.... See invisible, feel intangible and achieve impossible as everything is possible ....
Nguyen Anh Tien
Honored Contributor

Re: replace root mirror drive

YOUR procedure is correct in single mode.
If you want to do it online, pls see attached file. but it required HP/UX mirrored software
HP is simple