You must delete logical volumes, physical volumes, and disks in that order. The following list summarizes the steps needed to reclaim storage space:
The examples in this procedure reclaim the space occupied by the logical volume sfslvol1. Assume that the logical volume sfslvol1 is backed by two physical volumes: the original physical volume, sfspvol1, and a mirror, sfspvol1.mirr. Each physical volume resides on its own Open Systems disk partition, for example, sfspvol1 on /dev/rsd0f and sfspvol1.mirr on /dev/rse0f.
Perform the following steps to reclaim storage space:
tkadmin remove mirror -server server_name logical_volume_name
physical_volume_name
You must specify the name of the logical volume for the logical_volume_name argument and the name of the physical volume for the physical_volume_name argument. You can determine which physical volume and mirrors back a logical volume by using the tkadmin query lvol command.
For example, enter the following command to remove a mirror named sfspvol1.mirr from a logical volume named sfslvol1:
% tkadmin remove mirror sfslvol1 sfspvol1.mirr
tkadmin delete lvol -server server_name logical_volume_name
You must specify the name of the logical volume for the logical_volume_name argument. For example, enter the following command to delete a logical volume named sfslvol1:
% tkadmin delete lvol sfslvol1
tkadmin delete pvol -server server_name physical_volume_name
You must specify the name of the physical volume to be deleted as the physical_volume_name argument. Be sure to delete all physical volumes, including physical volumes that back mirrors. For example, enter the following command to delete a physical volume named sfspvol1:
% tkadmin delete pvol sfspvol1
tkadmin delete disk -server server_name disk_name
You must specify the name of the disk as the disk_name argument. Any attempt to delete a disk that still stores a physical volume fails. Note that some physical volumes are stored on multiple disks and that a single disk can hold multiple physical volumes or portions of physical volumes.
In this example, each physical volume resides on its own disk partition, for example, sfspvol1 on /dev/rsd0f and sfspvol1.mirr on /dev/rse0f. You must delete both disk partitions.
On Open Systems. For example, enter the following command to delete a disk named /dev/rsd0f:
% tkadmin delete disk /dev/rsd0f
On Windows. For example, enter the following command to delete a disk named D:\rqs1data:
C:\> tkadmin delete disk D:\rqs1data