1830143 Members
21768 Online
109999 Solutions
New Discussion

Removing VxVM rootdg

 
SOLVED
Go to solution
Karthik S S
Honored Contributor

Removing VxVM rootdg

I want remove all the VxVM disk groups including rootdg. I could delete all other DGs using the vmsa GUI but not the rootdg. How can I remove it using commands? ( I am not worried about the data)

Thanks
Karthik

For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
7 REPLIES 7
Clemens van Everdingen
Honored Contributor
Solution

Re: Removing VxVM rootdg

Hi,

In case you want to go back to LVM you need to follow this steps.

- Stop the VxVM daemons with the following commands:

vxdctl stop
vxiod -f set 0

- 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.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Karthik S S
Honored Contributor

Re: Removing VxVM rootdg

Hi Clemens,

Thanks for that. But is there anyway to remove the root dg without uninstalling the VxVM Product?

Thanks
Karthik
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Clemens van Everdingen
Honored Contributor

Re: Removing VxVM rootdg

Hi,

Not that I am aware of.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Jean-Louis Phelix
Honored Contributor

Re: Removing VxVM rootdg

Hi,

I have seen in vxvm startup scripts lines like :

#
# If the volume manager hasn't yet been initialized, don't
# bother starting vxconfigd. The install-db file indicates that
# initialization has NOT yet happened.
#

if [ -f "/etc/vx/reconfig.d/state.d/install-db" ]
then
exit 0
fi

#
# Start some I/O daemons, if there aren't any already running.
#

So I think that if you rename /etc/vx/ (or at least /etc/vx/reconfig.d), nothing will start. But I'm not sure it's really clean ...

Regards,

Jean-Louis.
It works for me (© Bill McNAMARA ...)
George Petrides_1
Honored Contributor

Re: Removing VxVM rootdg

Just out of curiosity, what do you guys think about VxVM? I have been dealing with LVM since 94 and never touched Veritas' product. I read the documentation and it seems very similar but anybody can give a comparison how VxVM does the job compared to LVM.
TIA,
George
Jerome Baron
Respected Contributor

Re: Removing VxVM rootdg

Hi,

To stop vxvmutilisation without desinstallation you can done :
touch /etc/vx/reconfig.d/state.d/install-db

the file install-db denied the vxvm daemon start.

Regards,
Jerome
Tom Danzig
Honored Contributor

Re: Removing VxVM rootdg

This is the Sun procedure I used in the past. I assume its OK with HP (not sure though)

*** Removing Veritas VVM:

# vxprint -ht rootvol swapvol usr var
(Ensure that the rootvol, swapvol, usr, and var (opt) volumes have only one associated plex each

If not (i.e. mirrored root):
# vxplex -o rm dis plex_name

# /etc/vx/bin/vxunroot (system will reboot)

Root disk is now out of VVM control