Re: Uninstall Veritas VM

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

Uninstall Veritas VM

Hi,

Could any one list the steps for uninstalling Veritas VM from the system (ver 3.2). We also have a encapsulated rootdisk.

Thanks
Karthik S S

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
1 REPLY 1
Jerome Baron
Respected Contributor
Solution

Re: Uninstall Veritas VM

Hi,

VxVM can be removed from a server but care must be taken to follow the proper
procedures and not just swremove the products.

The following steps will remove VxVM properly.

o Determine if there are disk groups other than rootdg by running the
following:


# vxdg list
NAME STATE ID
rootdg enabled 997120777.1025.rbox
datadg enabled 1000301278.1606.rbox


The above command reveals two diskgroups; rootdg,datadg.

o Identify volumes in the disk groups using vxprint -htr.
/etc/fstab can also be checked for volumes with device files beginning
with /dev/vx/dsk but this will obviously only show volumes that have
filesystems mounted at boot and swap assigned at boot.


o Backup or copy the data from VxVM volumes to LVM logical volumes. This can
be done with fbackup, tar, cpio, etc.

o Unmount any VxVM volumes with filesystems and remove those entries from
/etc/fstab.

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 128763 13783 90% /
/dev/vg00/lvol8 573440 567581 5859 99% /var
/dev/vg00/lvol7 946176 810183 127521 86% /usr
/dev/vg00/lvol4 131072 85975 42328 67% /tmp
/dev/vg00/lvol6 921600 888140 31415 97% /opt
/dev/vg00/lvol5 20480 7875 11826 40% /home
/dev/vg00/lvol1 111637 47149 53324 47% /stand
/dev/vx/dsk/datadg/datavol01
51200 1117 46960 2% /datavol01
# umount /datavol01


o Remove all diskgroups except for rootdg with the following command:

vxdg destroy groupname

For example:

vxdg destroy datadg

o Stop the VxVM daemons with the following commands:


vxdctl stop
vxiod -f set 0


o Remove the VxVM product.

If the HP VxVM product B9116AA is installed which is the full version then run:

swremove -x autoreboot=true B9116AA

Next, run the following to remove the base product:

swremove -x autoreboot=true B7961AA


The disks used in rootdg or other disk groups can now be used with LVM.

Regards,
Jerome