Search This Blog

Thursday, July 10, 2014

Disk Replacement - Integrity (Itanium) - Required reboot

Disk Replacement - Integrity (Itanium) - Required reboot
1.  Initiate the boot sequence:

# shutdown –ry 0

2.  Replace the damaged disk.

The damage disk is one of the boot disk mirrors? No, jump to step 11.
3.  Interrupt the EFI boot manager autoboot.

EFI Boot Manager ver 1.10 (14.60] Firmware ver 1.61 [4241]
[Escape]

4.  Select the proper mirror. Can be primary or alternate. Depend of which disk you have replaced. your mirrored disk from the boot manager selection menu.

EFI Boot Manager ver 1.10 (14.60] Firmware ver 1.61 [4241]
Please select a boot option
   HP-UX Primary Boot
   HP-UX Alternate Boot
   EFI Shell [Built-in]

5.  Verify which disk/kernel you booted from

# grep ‘Boot device’s HP-UX path” /var/adm/syslog.log
 vmunix: Boot device’s HP-UX HW path is: 0.0.0.0.1.0

6.  In the HP-UX system prompt, recreate the device files for EFI and OS partitions on the new disk:
# mksf –H 0/1/1/0.1.0 –s 1
# mksf –H 0/1/1/0.1.0 –s 2
# mksf –H 0/1/1/0.1.0 –s 3
# mksf –H 0/1/1/0.1.0 -r –s 1
# mksf –H 0/1/1/0.1.0 -r –s 2
# mksf –H 0/1/1/0.1.0 -r –s 3

7.  Create the EFI and OS partititions using an IPF partition description file.

# cat >> /tmp/idf << EOF
3
EFI 500MB
HPUX 100%
HPSP 400MB
EOF

8.  Use idisk to setup the disk partitioning using the file created above:

# idisk -wf /tmp/idf /dev/rdsk/cXtXdX

Note: There will be a prompt with a message saying the operation may be destructive and asks to continue. Be sure to answer 'yes' for the operation to be successful. If the prompt is answered with 'y' only, an error is received along with a message saying, "user aborting".

9.  Use mkboot to format and populate the newly created EFI partition:

# mkboot -e -l /dev/dsk/cXtXdX

10. Change the AUTO file contents to the proper mode:
A)  Primary boot disk.

# cat >> /tmp/auto << EOF
boot vmunix
EOF
# efi_cp –d /dev/rdsk/cXtXdXs1 /tmp/auto /efi/hpux/auto

B)  Alternate boot disk.

# cat >> /tmp/auto << EOF
boot vmunix –lq
EOF
# efi_cp –d /dev/rdsk/cXtXdXs1 /tmp/auto /efi/hpux/auto

11. Restore the LVM reserved areas (PVRA/VGRA):

# vgcfgrestore –n vg00 /dev/rdsk/cXtXdXs2

12. Reactivate the volume group to attach the physical volume.

# vgchange –a y vgXX

Note: In case that the volume group don’t start to synchronize the logical volumes automatically, you can force synchronization with:

# vgsync vgXX

13. Use lvlnboot to ensure that the LVM logical volumes are prepared to be root, primary swap or dump volume.

# lvlnboot -R
# lvlnboot –v


No comments:

Post a Comment