Operating System - HP-UX
1828371 Members
3034 Online
109976 Solutions
New Discussion

convert VxVM disks to LVM?

 
Eric Parson
Occasional Contributor

convert VxVM disks to LVM?

Have a N-class running HPUX 11 with LVM. I've just been presented with a block 8 disks from our SAN, and for some reason those disks are seen as VxVM disks. How do I convert the VxVM disks to LVM disks to get them included in the VG's I need to create?
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: convert VxVM disks to LVM?

Eric,

Just run pvcreate, vgcreate, lvcreate, etc. - that should be all there is to it.


Pete

Pete
Alzhy
Honored Contributor

Re: convert VxVM disks to LVM?

Properway is /etc/vx/bin/vxdiskunsetup (read man pages)

or the quick way (only if you're sure those VxVM disks ARE NOT in use elsewhere:

dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=1024 count=10

Then you can do your usual pvcreate, vgextend... etc.
Hakuna Matata.
Steven E. Protter
Exalted Contributor

Re: convert VxVM disks to LVM?

If the disks are just sitting there with no data on them, there is no need to run a conversion process.

The normal process of creating an LVM volume group will bring the disks into LVM.


SEP
http://www.isnamerica.com/contactsep.shtml
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
Alzhy
Honored Contributor

Re: convert VxVM disks to LVM?

And btw, there is an LVM to VxVM conversion tool. And its the same VxVM to LVM conversion tool - called vxvmconvert.

Once LVM VGs are converted to VxVM *AND* new volumes (lvols) in VxVM added or resized, then you can no longer revert back to LVM using said tool.
Hakuna Matata.
Eric Parson
Occasional Contributor

Re: convert VxVM disks to LVM?

"just do the pvcreate, ..." doesn't seem to work:

usgleuxfn01# pvcreate /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".
usgleuxfn01# pvcreate -f /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".

Any other thoughts?
Eric Parson
Occasional Contributor

Re: convert VxVM disks to LVM?

Let me clarify. HPUX 11 (NOT 11i). NOT running VxVM.

that means /dev/zero >> /dev/rdsk/cXtYdZ won't work.

that means vxconvert doesn't exist.

"just pvcreating" the disks gives :
usgleuxfn01# pvcreate /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".
usgleuxfn01# pvcreate -f /dev/rdsk/c7t4d0
pvcreate: Could not perform LVM operation on VxVM disk "/dev/rdsk/c7t4d0".


any other thoughts?