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
pvscan
command 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
This shows that the disk devices sdf
and sdh1
are associated with volume group, vg02
, but sde1
and sdg
are not in any volume group.
fdisk
or sfdisk
command to edit the partition table on the disk:
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 "Linux
".
vxdiskadm
command 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.