VERITAS 4.1 Installation Guide (June 2006)

Removing Base-VXFS 4.1 and Base-VXVM 4.1
Chapter 436
a. Evacuate as many disks as possible. Evacuation moves sub-disks from the
source disks to target disks. The evacuated disks provide the initial free disk
space for volumes to be moved to LVM volumes. Disks can be evacuated in one
of the following ways:
•Using the vxdiskadm command with the remove disk option.
•Using the vxevac script.
b. Remove the evacuated disks from Base-VXVM 4.1 control, by running the
following commands:
# vxdg rmdisk diskname
# vxdisk rm devname
c. Unmount the disk to be removed first. If the volume is being used as a raw
partition for database applications, ensure that the application is not updating
the volume and the data on the volume has been synchronized.
d. Create an LVM logical volume of the same size as the plex VxVM volume. If
there is not enough free space for the logical volume, add a new disk to the
system for the first volume to be removed. For subsequent volumes, you can use
the free space generated by the removal of the first volume.
e. Run the following command to copy the data on the volume to the newly created
LVM logical volume:
# dd if=/dev/vx/dsk/lhome of=/dev/vgvol/lhome
where vgvol is a newly created LVM volume group and lhome is a new logical
volume.
f. Replace the entry (if any) for the volume in /etc/fstab file with an entry for
the newly created LVM logical volume.
g. Mount the logical volume only if the VxVM volume was mounted before.
h. Run the following command to remove the volume from VERITAS Volume
Manager control:
# vxedit -rf rm volume_name
i. Run the following command, to check whether any sub-disks remain on a disk:
# vxprint -F “%sdnum” diskname
If the output is 0, remove the disk from Volume Manager control: