Veritas Volume Manager 5.0.1 Migration Guide, HP-UX 11i v3, First Edition, November 2009
The former are disks that contain logical volumes and volume groups. Unused
disks contain no user data, and are not used by any volume group, but have LVM
disk headers written by pvcreate. Conversion is done differently for these two
types of disks.
For unused LVM disks you can use a combination of pvremove and vxdiskadm.
For LVM disks in volume groups, the primary tool for conversion is the
vxvmconvert command. More information is available on the vxdiskadm command.
See the man page vxdiskadm(1M) or the Veritas Volume Manager Administrator’s
Guide.
The vxvmconvert utility is an interactive command. You can also use the
vxautoanalysis command and the vxautoconvert command to perform
non-interactive analysis and conversion of LVM volume groups. The
vxautorollback command also lets you reverse the conversion, and turn a disk
group back into a volume group.
See “Non-interactive conversion of volume groups” on page 54.
Converting unused LVM physical volumes to VxVM
disks
LVM disks which are not part of any volume group, and contain no user data, are
simply cleaned up, so that there are no LVM disk headers. Then the disks are given
over to VxVM through the normal means of initializing disks.
Warning: Exercise caution while using this procedure to give disks over to VxVM.
You must be absolutely certain that the disks are not in use in any LVM
configuration. If there is any user data on these disks, it will be lost during
conversion.
Removing LVM disk information
To remove LVM disk information from the disks use the following command:
# pvremove disk_name
The pvremove command does not allow the removal of disk headers which indicate
a Volume Group membership for the disk. If the disk fails pvremove for this reason,
you should first make certain that the group membership information is stale.
Do this by using pvdisplay:
# pvdisplay disk_name
Converting LVM to VxVM
Converting unused LVM physical volumes to VxVM disks
20