Remove a boot mirror disk on Integrity / Itanium servers


PROBLEM

How to remove a functional mirror disk from the boot / root mirror configuration.
This document provides steps to remove a functional mirror disk from an LVM boot
disk configuration.

These steps apply to Integrity / Itanium based HP-UX systems ONLY.
 
CONFIGURATION

Integrity servers
rx1600 rx1620
rx2600 rx2620
rx4640 bl60p
rx7620 rx7640
rx8620 rx8640
===================================

RESOLUTION

Example disk to be removed from a mirror set:
c2t1d0s2

1. lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2
====================================
2. vgreduce /dev/vg00 /dev/dsk/c2t1d0s2 

Safety checks :

# vgdisplay -v /dev/vg00 | grep c2t1d0
Should not return anything

# strings /etc/lvmtab
Ensure that c2t1d0 or s2 device is not listed.

# lvlnboot -v
Ensure no errors and that c2t1d0 is no longer listed.
=========================================

3. Steps to remove EFI disk partitions :

# idisk -wR /dev/rdsk/c2t1d0

NOTE: This is destructive, ensure specify correct disk !
Note the use or rdsk device and whole disk device file.
=========================================
4. Remove the special device files which are no longer used.

# rmsf /dev/rdsk/c2t1d0s1
# rmsf /dev/rdsk/c2t1d0s2
# rmsf /dev/rdsk/c2t1d0s3

# rmsf /dev/dsk/c2t1d0s1
# rmsf /dev/dsk/c2t1d0s2
# rmsf /dev/dsk/c2t1d0s3
===========================================

Use pvcreate or pvcreate -f to format the disk for LVM usage and create or
extend the disk into a volume group.

Post a Comment

0 Comments