Adding DMP devices to an existing ZFS pool or creating a new ZFS pool

When the dmp_native_support is ON, you can create a new ZFS pool on an available DMP device. You can also add an available DMP device to an existing ZFS pool. After the ZFS pools are on DMP devices, you can use any of the ZFS commands to manage the pools.

To create a new ZFS pool on a DMP device or add a DMP device to an existing ZFS pool

  1. Choose disks that are available for use by ZFS.

    Use the vxdisk list command to identify these types of disks.

    • Disks that are not in use by VxVM

      The output of vxdisk list shows these disks with the Type auto:none and the Status as online invalid.

      Do not run zpool commands on disks with VxVM labels, as these operations can cause data corruption.

    • Disks previously used by a ZFS pool, if the ZFS pool has been destroyed.

      The output of vxdisk list shows these disks with the Type auto:ZFS and the Status as ZFS.

    The example shows available disks.

    # vxdisk list
    DEVICE               TYPE      DISK  GROUP    STATUS
    . . .
    tagmastore-usp0_0079 auto:none -     -        online invalid
    tagmastore-usp0_0080 auto:none -     -        online invalid
    tagmastore-usp0_0080 auto:ZFS  -     -        ZFS
  2. Create a new ZFS pool on a DMP device.
    # zpool create newpool tagmastore-usp0_0079s2
    # zpool status newpool
     pool: newpool
     state: ONLINE
     scrub: none requested
     config:
     NAME                      STATE     READ WRITE CKSUM
     newpool                   ONLINE       0     0     0
     tagmastore-usp0_0079s2    ONLINE       0     0     0
  3. Add a DMP device to an existing ZFS pool.
    # zpool add newpool tagmastore-usp0_0080s2
    # zpool status newpool
      pool: newpool
      state: ONLINE
      scrub: none requested
      config:
      NAME                      STATE     READ WRITE CKSUM
      newpool                   ONLINE       0     0     0
      tagmastore-usp0_0079s2    ONLINE       0     0     0
      tagmastore-usp0_0080s2    ONLINE       0     0     0
      errors: No known data errors
  4. Run the following command to trigger DMP discovery of the devices:
    # vxdisk scandisks
  5. After the discovery completes, the disks are shown as in use by ZFS:
    # vxdisk list
    . . .
    tagmastore-usp0_0079 auto:ZFS    -        -    ZFS
    tagmastore-usp0_0080 auto:ZFS    -        -    ZFS