Veritas 4.1 Installation Guide (HP-UX 11i v3, February 2007)
7 Removing Veritas 4.1 Products
This chapter discusses the steps for removing the Veritas 4.1 suite of products from an HP-UX
11i Version3 system, using the HP-UX SD commands.
Removing VxVM
VxVM 4.1 can be removed from systems only where the root disk is under HP Logical Volume
Manager (LVM) control. If you try to remove VxVM 4.1 software from your system without
completing the following steps, you will lose data and your system will be in an unstable state.
The following steps provide an overview of VxVM removal procedure:
• Backup data on your system.
• Modify file systems and other applications that use volumes to use disks or LVM volumes.
See “Moving VxVM Volumes to LVM Volumes”, for more information.
• Remove copies of file systems to free up as much space as possible.
• Remove plexes, except one.
• Striped or spanned volumes, must be moved to a single disk or to an appropriate LVM
logical volume.
• Shut down VxVM.
Moving VxVM Volumes to LVM Volumes
• Move VxVM volumes to LVM, as follows:
1. Evacuate as many disks as possible. Evacuation moves sub-disks from the source disks
to target disks. The evacuated disks provides 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 a disk option.
• Using the vxevac script.
2. Remove the evacuated disks from VxVM control, as follows:
# vxdg rmdisk <diskname>
# vxdisk rm <devname>
3. 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.
4. Create an LVM logical volume of the same size as the plex on the 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.
5. 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.
See dd (1), for detailed description of the supported options.
6. Replace the entry (if any) for the volume in /etc/fstab file with an entry for the
newly created LVM logical volume.
7. Mount the logical volume only if the VxVM volume was mounted before.
8. Remove the volume from Veritas Volume Manager control:
# vxedit -rf rm volume_name
See vxedit (1M), for detailed description of the supported options.
9. Check whether any sub-disks remain on a disk:
Removing VxVM 67