1826633 Members
4456 Online
109695 Solutions
New Discussion

VxVM

 
SOLVED
Go to solution
simon_164
Super Advisor

VxVM

I am new to Unix at all and to VxVM.
i've installed the VxVM software, added a disk done some tests. Now i want to reuse the disk for LVM. how to do that. I tried to vxassist -o ( didn't work). this is a test machine --> i can reinstall the whole unix if i want to.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: VxVM

Shalom Simon,

First you must remove the disk from the vxvm group.

vxinfo to the the drive info
vxdisk list for more information
vxvol to take it offline
vxdisk init c#t#d# nolog=2 noconfig=2 will wipe it out nicely.

vxassisg -g volname remove volme volumename

Then

pvcreate -f disk to prepare the disk for lvm
vgextend a volume group on it.
lvcreate a new logical volume
lvextend the lvol to your chosen size.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sameer_Nirmal
Honored Contributor
Solution

Re: VxVM

Hi,

I guess you have already configured the disk in VXVM disk group. If you want to convert the VXVM disk group to LVM volume group, you can use "vxvmconvert". It is a menu driver interface.
Steven E. Protter
Exalted Contributor

Re: VxVM

Simon,

the convert idea is better than my poorly typed reply.

You may want to restart the system and run vgassist again.

You may need to patch vxvm to get it to work well enough to give up the disk.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sandman!
Honored Contributor

Re: VxVM

>>Sameer<<

I thought vxvmconvert command could be used only to convert from lvm -> vxvm. And SEP's method is the only way to do a conversion from VXVM -> LVM. Seeking clarification.

thanks!
Sameer_Nirmal
Honored Contributor

Re: VxVM

Sandman,
There is an option in the "vxvmcovert" interface to roll back from VXVM to LVM.

I presumed that the disk was configured with LVM volume group earlier before moving to VXVM. If it is , then roll back is possible with "vxvmconvert". If not, SEP method should be used.
simon_164
Super Advisor

Re: VxVM

Thank you all, but i forgot to mention that i want to remove the vxvm rootdg. i found a way that requires to remove the VxVM software.
Anyone knows a way to remove the VxVM rootdg which does not require to remove the VxVM software.