Operating System - HP-UX
1753649 Members
5969 Online
108798 Solutions
New Discussion

Re: Replace failed boot disk on hpux 11.23

 
SOLVED
Go to solution
Nappy_1
Frequent Advisor

Re: Replace failed boot disk on hpux 11.23

hi Pete,
if you come back tomorrow, you will get another 10 points ;-)
點燃
Valued Contributor

Re: Replace failed boot disk on hpux 11.23

Hi ,
We have used this procedure to replace the failed boot disk on a superdome server.

In this case, the disk was /dev/dsk/c0t6d0 and the secondary disk was /dev/dsk/c2t6d0.

# pvchange -a N /dev/dsk/c0t6d0s2 (Detaches all paths to the disk)
# vi /tmp/partitionfile (add following lines)

3
EFI 100MB
HPUX 100%
HPSP 400MB

# idisk -wf /tmp/partitionfile /dev/rdsk/c0t6d0 (Writes the partition file to the disk)
# insf -e -C disk (Recreates the device files for the new disk)
# mkboot -e -l /dev/rdsk/c0t6d0 (Writes EFI info to the EFI partition on the disk)
# efi_ls -d /dev/rdsk/c0t6d0s1 (Lists the contents of the EFI root directory on the disk)
# lifls -l /dev/rdsk/c0t6d0s2 (Lists the contents of the LIF directory on the disk)
# mkboot -a "boot vpmon -a" /dev/dsk/c0t6d0 (Writes the boot string to the AUTO file on the disk)
# efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x (Lists the contents of the AUTO file on the disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_ls -d /dev/dsk/c2t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/crashdump.efi /tmp/crashdump.efi (Writes the contents of the crashdump.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/crashdump.efi /EFI/HPUX/ (Writes the crashdump.efi file to the new disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/vparconfig.efi /tmp/vparconfig.efi (Writes the contents of the vparconfig.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/vparconfig.efi /EFI/HPUX/ (Writes the vparconfig.efi file to the new disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# vgcfgrestore -n vg00 /dev/rdsk/c0t6d0s2 (Restores the LVM configuration information to the new disk)
# pvchange -a y /dev/dsk/c0t6d0s2 (Attaches the path back to the new disk)
# vgchange -a y vg00 (Activates the volume group)
# vgsync /dev/vg00 (Syncs all lvols within the volume group)
# setboot -p 0/0/0/2/0.6.0 (Sets the primary boot path)
# vparefiutil -u -H 0/0/0/2/0.6.0 (Run on all vpars) (Updates the hw_path to EFI_path mappings in the vpar database)
# lvlnboot -b /dev/vg00/lvol1 (Defines lvol1 to be the boot volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -r /dev/vg00/lvol3 (Defines lvol3 to be the root volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -s /dev/vg00/lvol2 (Defines lvol2 to be the swap volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -d /dev/vg00/lvol2 (Defines lvol2 to be the dump volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# shutdown -ry 0 (Reboots the O/S instance)

You can use setboot command after this to change the default boot device etc..


Hope this helps!
Pradeesh Kumar
Man's mind, once stretched by a new idea, never regains its original dimensions