Replace failed root disk in itanium server - With breaking the mirror.

(THIS IS BREAKING THE MIRROR ON FAILED DISK METHOD)

Pre  activity steps: Take the below command o/p

# lvlnboot –v

#setboot

#pvdisplay -v /dev/disk/disk?? | more

#vgcfgbackup /dev/vg00

#vgexport -p -v -m /tmp/vg00.map /dev/vg00

==========================


Replacement steps: (This is for Mirrored alternate boot disk replacement)

Break the mirrors first on failed disk

step 1: Remove the mirror copy from disk consider failed disk as - /dev/disk/disk2


#for i in `vgdisplay -v vg00| grep -e "LV Name" |awk '{print $3}'`
>do
>lvreduce -m 0 $i /dev/dsk/c0t3d0s2
>done
step 2 : # vgreduce /dev/vg00 /dev/disk/disk2_p2

step 3 : # pvchange -a N /dev/dsk/disk2_p2 (Deactivate the disk)

===========================


Step 4 : Then remove the failed disk and  replace with  a new disk

Stpe 5: #ioscan -m lun  and #ioscan -funNC disk

(check the new lun number for new disk)

step 6: vi /tmp/partfile 

3
EFI 500MB
HPUX 100%
HPSP 400MB

(Dont copy paste, edit the file manually)

Step 7: #idisk -wf /tmp/partfile /dev/rdisk/disk32

( Lets consider the new disk lun id as 32)

Step 8 : #insf -e -C disk

(create a disk file for new lun)

step 9 :  # mkboot -e -l /dev/rdisk/disk32

(set the boot partition on the disk)

step 10 :  # efi_fsinit -d /dev/rdisk/disk32_p1

(initialize the FAT FS on new disk's EFI partition)

step 11: # efi_cp -d /dev/rdisk/disk32_p1 -u /EFI/HPUX/AUTO /tmp/auto

(cat /tmp/auto - check the auto file content)

step 12 : #mkboot -a "boot vmunix -lq" /dev/rdisk/disk32

(change the auto file content)

step 13 : # efi_ls -d /dev/rdisk/disk32_p1

step 14 : # efi_ls -d /dev/rdisk/disk??_p3 /EFI/HP  

(chk this for primary boot disk , To check whether diag utilities are there on primary boot disk)

step 15 : # dd if=/dev/rdisk/disk??_p3 of=/dev/rdisk/disk32_p3 bs=1024k

(copy the diag utility from primary boot disk to sec boot disk)


step 16 : # pvcreate -f -B /dev/rdisk/disk32_p2

step 17 : # vgextend vg00 /dev/disk/disk32_p2

step 18 : #vgdisplay -v vg00

(cpnfirm disk added to the VG)

step 19 : #Extend the lvols one by one (mirror the lvols ot the new disk)

#for i in `vgdisplay -v vg00| grep -e "LV Name" |awk '{print $3}'`
>do
>lvextend -m 1 $i /dev/dsk/c0t3d0s2
>done

step 20 : #vgdisplay -v vg00

(to check all the lvols are extended and in sync)


step 21 : #lifls -l /dev/rdisk/disk32_p2

step 22 : setboot -a "lun path of sec disk"  




     


Post a Comment

0 Comments