2 removing a drive from a live system – IBM RS/6000 User Manual
Page 72

3.3.2 Removing a Drive from a Live System
To be able to remove a hot-swap drive from the system without causing problems,
you will have to tell AIX that you are removing the drive.
3.3.2.1 Removing a Disk From an Existing Volume Group
If you want to physically remove the disk and it belongs to an existing volume
group, you would either remove the logical volumes which are present on the disk
(you can find out which logical volumes are present on a disk by using the
lspv -l
hdiskx
command), or migrate the physical partitions from the disk to other disks in
the same volume group. To remove a disk from an existing volume group, you can
use the following procedure:
1. Unmount all the filesystems on the disk if you are removing the logical volumes
on the disk.
2. Remove all data from the drive by either removing the logical volumes or by
migrating the partitions on the disk to another disk in the same volume group.
If you are removing the logical volumes, you may wish to back up the data prior
to removal.
3. Remove the drive from the volume group:
reducevg VGname hdiskx
4. Remove the device from the ODM:
rmdev -d -l hdiskx
When you run the
rmdev
command, the amber light on the drive will switch off.
If you run
lspv
, you will see that the disk is no longer defined to the system.
5. Physically remove the drive from the system.
3.3.2.2 Removing a Drive with its Own Volume Group
To remove a drive which has its own volume group, you can use the following
procedure:
1. Back up any data that you require from the volume group.
2. Unmount all the filesystems on the disk.
3. Varyoff the volume group by issuing:
varyoffvg VGname
4. Export the volume group by issuing:
exportvg VGname
5. Remove the device from the ODM by issuing:
rmdev -d -l hdiskx
6. Physically remove the device from the system.
The disk can easily be re-added to the system, and the volume group can be
accessed using the
importvg
command.
48
Introduction to PCI-Based RS/6000 Servers