Search This Blog

Thursday, July 10, 2014

Disk Replacement - Integrity (Itanium) - Online Hot Plug

Disk Replacement - Integrity (Itanium) - Online Hot Plug
1.  Detach the physical volume from volume group:

# pvchange -a n /dev/dsk/cXtXdXs2

2.  Hot swap the disk.
Is a bootable disk? No, jump to step 5.

3.  Create a description file by doing the following:

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

4.  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".

5.  Verify the partition table

# idisk /dev/rdsk/cXtXdX

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

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

7.  Change the AUTO file contents to the proper mode on both the boot disk, so that it could boot without quorum

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


8.  Verify the content of the system partition

#efi_ls –d /dev/rdsk/cXtXdXs1


9.  Verify the content of the auto file in the system partition:

# efi_cp –d /dev/rdsk/cXtXdXs1 –u /efi/hpux/auto /tmp/auto
# cat /tmp/auto

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

# vgcfgrestore –n vg00 /dev/rdsk/cXtXdXs2

11. Reattach the new disk:

# pvchange -a y /dev/dsk/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