Replacing A Failed Boot Disk (HP-UX 11.23)

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

Replacing a failed boot disk (HP-UX 11.23) ionscan -fnC disk Shows that 0/1/1/1.0.

0 or /dev/dsk/c3t0d0s2 is the surviving disk 1. Detach the device using a new pvchange(1M) command option: pvchange -a n /dev/dsk/c2t1d0s2 2. Hot swap the disk. 3. Use vgdisplay to identify the disk that is in vg00 and use ioscan to find the spare disk. # vgdisplay -v /dev/vg00 | more --> vg00 is on /dev/dsk/c3t0d0s2 in this examp le # ioscan -funC disk | more --> /dev/dsk/c2t1d0 for this example # diskinfo /dev/rdsk/c2t1d0 3a. We really had some problems with this procedure. The ultimate solution was to to rewrite the EFI boot menu option for the failed disk. So, I am thinking this line would fix it: setboot -p 0/1/1/0.1.0 (for a primary drive failure) 4. Create the system, OS, and service partitions. # vi /tmp/partitionfile 3 EFI 500MB HPUX 100% HPSP 400MB # idisk -wf /tmp/partitionfile /dev/rdsk/c2t1d0 idisk version: 1.31 ********************* WARNING *********************** If you continue you may destroy all data on this disk. Do you wish to continue(yes/no)? yes <-- Answer "yes" and not "y" 5. Optional stuff - probably don't need to do: a. Create device files needed for the new partitions. # insf -eC disk b. Verify the partition table. # idisk /dev/rdsk/c2t1d0 c. Verify that the device files were created properly. # ioscan -funC disk --> c2t1d0 is 0/1/1/0.1.0 6. Populate the /efi/hpux/ directory in the new EFI system partition. # mkboot -e -l /dev/rdsk/c2t1d0

7. Change the auto file for the mirror to boot without quorum. NOTE: Using "s1" # echo "boot vmunix -lq" > /tmp/AUTO.lq # efi_cp -d /dev/rdsk/c2t1d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO The -lq option tells HPUX not to check for quorum. In a two disk mirrored root setup, if -lq is not specified and one of the disks

die, then the system will not come back up without manual intervention. 8. Initialize the LVM information on the disk so it is identified as a replacement disk when it is later attached: vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0s2 9. Reattach the new disk: pvchange -a y /dev/dsk/c2t1d0s2 10. Reactivate the volume group to attach the physcial volume vgchange -a y /dev/vg00 Note: In case that the volume group don't start to synchronize the logical volumes automatically, you can force synchronization with: vgsync vg00 At this point, if there are mirrored logical volumes residing on the disk, LVM will automatically synchronize the data on the disk with the available mirror copies on other disks in the volume group. Misc. 1. Verify the contents of the system partition # efi_ls -d /dev/rdsk/c2t1d0s1 /efi/hpux 2. Verify the contents of the auto file on the primary. NOTE: Using "s1" # efi_cp -d /dev/rdsk/c2t1d0s1 -u /EFI/HPUX/AUTO /tmp/AUTO.pri # cat /tmp/AUTO.pri 3. Verify that the new disk was added to vg00, and the lv's are in sync. # vgdisplay -v vg00 4. Verify that the BDRA was updated properly. Take note of the HW paths for step 14. # lvlnboot -v 5. Verify that the primary and mirror boot paths are configured properly. # setboot 6. Test the new mirror by booting off of it. # shutdown -r -y 0

7. Select each of the first two options to test the primary and alternate. EFI Boot Manager ver 1.10 [14.61] Firmware ver 2.21 [4334] Please select a boot option HP-UX Primary Boot: 0/1/1/0.1.0 HP-UX HA Alternate Boot: 0/1/1/1.0.0 EFI Shell [Built-in] a. After each reboot, verify which disk/kernel you booted from. # grep "Boot device" /var/adm/syslog/syslog.log vmunix: Boot device's HP-UX HW path is: 0/1/1/1.0.0 8. Remove temporary files. # rm /tmp/partitionfile /tmp/AUTO* 9. Check the Diagnostics partition of the new hard drive:

a. To see what is on the Diagnostics partition (HPSP): efi_ls -d /dev/rdsk/c2t1d0s3 If the above give the following error: efi_ls: invalid efi device Then the partition can be re-initialized using the following command: efi_fsinit -d /dev/rdsk/c2t1d0s3 Reference links: http://www12.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c 01037975-1 http://docs.hp.com/en/7161/LVM_OLR_whitepaper.pdf http://docs.hp.com/en/A6961-96013/apbs03.html#chdecgda See "Adding an HP-UX Boot Option" /sbin/lvlnboot /sbin/lvlnboot /sbin/lvlnboot /sbin/lvlnboot lvlnboot -v lvlnboot -R To verify which disk/kernel you booted from. # grep "Boot device" /var/adm/syslog/syslog.log vmunix: Boot device's HP-UX HW path is: 0/1/1/1.0.0 Add # # # # EFI primary and high availability boot path menu entries. setboot -p 0/1/1/0.1.0 <-- Set primary disk setboot -h 0/1/1/1.0.0 <-- Set mirror disk setboot -b on <-- Set autoboot on setboot -a 0/0/3/0.0.0.0 <- Will make the DVD drive an alternate boot. A DVD must be in the drive for this to work. echo "boot vmunix -lq" > /tmp/AUTO.lq # efi_cp -d /dev/rdsk/c2t1d0s1 /tmp/AUTO.lq /EFI/HPUX/AUTO Failure message: Scsi(Pun1,Lun0) HP 73.4GST373454LC HPC3 (160 MBytes/sec) Loading.: HP-UX Primary Boot: 0/1/1/0.1.0 Load of HP-UX Primary Boot: 0/1/1/0.1.0 failed: Not Found Scsi(Pun0,Lun0) HP 73.4GST373454LC HPC2 (160 MBytes/sec) Loading.: HP-UX HA Alternate Boot: 0/1/1/1.0.0 Starting: HP-UX HA Alternate Boot: 0/1/1/1.0.0 -r -b -s -d /dev/vg00/lvol3 /dev/vg00/lvol1 /dev/vg00/lvol2 /dev/vg00/lvol2

You might also like