Replace a failed vg00 disk

As long as a server utilizes hot-swappable hard drives and all logical volumes in vg00 are properly mirrored, there are three possible scenarios and associated required courses of action I have run into.

1)  PA-RISC server running HP-UX 11.00 or 11.11 without the OLAR patches for LVM and the kernel.

# for i in `vgdisplay -v vg00 | awk 'BEGIN{ ORS=" " }{ if ($0 ~ /LV Name/) print $3 }'`; do lvreduce -m 0 $i /dev/dsk/FAILED_DISK; done
# vgreduce vg00 /dev/dsk/FAILED_DISK

Replace disk
# ioscan -fnC disk
# insf
# pvcreate -B /dev/rdsk/FAILED_DISK
# vgextend vg00 /dev/dsk/FAILED_DISK
# mkboot /dev/rdsk/FAILED_DISK
# mkboot -a "hpux -lq" /dev/rdsk/FAILED_DISK
# mkboot -a "hpux -lq" /dev/rdsk/GOOD_DISK
# for i in `pvdisplay -v /dev/dsk/GOOD_DISK | grep 'current.*0000 $' | awk 'BEGIN{ ORS=" " }{ print $3 }'`; do lvextend -m 1 $i /dev/dsk/FAILED_DISK; done
# lifls /dev/rdsk/GOOD_DISK
# lifls /dev/rdsk/FAILED_DISK
# vgdisplay -v /dev/vg00
# setboot

2) PA-RISC server running HP-UX 11.11 with the OLAR patches or greater.

# pvchange -a N /dev/dsk/FAILED_DISK
Replace disk
# ioscan -fnC disk
# vgcfgrestore -n vg00 /dev/rdsk/FAILED_DISK
# pvchange -a y /dev/dsk/FAILED_DISK
# mkboot /dev/rdsk/FAILED_DISK
# mkboot -a "hpux -lq" /dev/rdsk/FAILED_DISK
# mkboot -a "hpux -lq" /dev/rdsk/GOOD_DISK
# lifls /dev/rdsk/GOOD_DISK
# lifls /dev/rdsk/FAILED_DISK
# setboot

3) Itanium server

# pvchange -a N /dev/dsk/FAILED_DISK
Replace disk
# ioscan -fnC disk
# echo "3
EFI 500MB
HPUX 100%
HPSP 400MB" > /tmp/pdf
# idisk -f /tmp/pdf -w /dev/rdsk/FAILED_DISK
# idisk /dev/rdsk/FAILED_DISK
# insf -e -H HWPATH_FOR_FAILED_DISK
# vgcfgrestore -n vg00 /dev/rdsk/FAILED_DISK
# pvchange -a y /dev/dsk/FAILED_DISK
# mkboot -e -l /dev/rdsk/FAILED_DISK
# echo "boot vmunix -lq" > ./AUTO
# efi_cp -d /dev/rdsk/FAILED_DISK ./AUTO /efi/hpux/auto
# lvlnboot -R /dev/vg00
# lvlnboot -v

For more information:
HP-UX: When Good Disks Go Bad

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: