Provisioning data LUNs in a mixed VxVM and LVM environment

The standard method for identifying which data LUNs are controlled by VxVM or LVM is to use the 'vxdisk list' command and review the output.

To identify data LUNs controlled by VxVM or LVM

Disks that are under LVM control
disk_0       auto:LVM        -            -            LVM
v_xiv0_108a  auto:LVM        -            -            LVM

Disks that are under VxVM control
ibm_ds8x000_06cd auto:aixdisk    -        -           online
ibm_ds8x000_06cf auto:cdsdisk    -        -           online

Disks that are not under any volume manager control.
ibm_ds8x000_06ce auto:none       -        -           online invalid

Once you identify the LUNs controlled by LVM you can select the ones you want to release for the available storage pool. You must use the native LVM commands rmlv and reducevg to remove LVM volumes and volume groups created on those LUNs as illustrated below.

To release LVM disks and bring them under VxVM control

  1. Remove any LVM volumes that reside on the LVM disk.

    Example:

    # rmlv -B -f logical_volume_name
  2. Remove the disk from the volume group.

    Example:

    # reducevg volume_group_name LVM_disk_name
  3. Use vxdiskunsetup to clear out any stale header information.
  4. Use vxdisksetup to bring them under VxVM control.

To release VxVM disks for LVM control

  1. Make sure that disk is not under any disk group. Remove the VxVM header if present.

    Example:

    # /etc/vx/bin/vxdiskunsetup -Cf disk_name
  2. Remove the disk from VxVM control.

    Example:

    # vxdisk rm disk_name

For more details on managing volumes, see the Storage Foundation Administrator's Guide.