LVM disks or disk partitions that are not part of any volume group, and which contain no user data, can be converted by removing the LVM disk headers.
To convert unused LVM physical volumes to VxVM disks
pvscancommand to make sure that the disk is not part of any volume group as shown in this example:
pvscan -- reading all physical volumes (this may take a
pvscan -- inactive PV "/dev/sde1" is in no VG [8.48 GB]
pvscan -- ACTIVE PV "/dev/sdf" of VG "vg02" [8.47 GB / 8.47
pvscan -- inactive PV "/dev/sdg" is in no VG [8.48 GB]
pvscan -- ACTIVE PV "/dev/sdh1" of VG "vg02" [8.47 GB / 8.47
pvscan -- total: 4 [33.92 GB] / in use: 2 [16.96 GB] / in no
VG: 2 [16.96 GB]
This shows that the disk devices
sdh1 are associated with volume group,
sdg are not in any volume group.
dd if=/dev/zero of=/dev/diskdev
blockdev --rereadpt /dev/diskdev
sfdiskcommand to edit the partition table on the disk:
fdisk -l /dev/diskdev
If the LVM disk was created on an entire disk, relabel it as a DOS or SUN partition. If the LVM disk was created on a disk partition, change the partition type from "
Linux LVM" to "
vxdiskadmcommand and selecting item
1 Add or initialize one or more disks, or by using the VEA GUI. For a disk partition that coexists with other partitions on a disk, initialize the partition as a simple disk.
See "Disks under VxVM control" on page 92.