VxVM coexistence with ZFS

ZFS is a type of file system presenting a pooled storage model that is provided by Oracle for Solaris. File systems can directly draw from a common storage pool (zpool). Veritas Volume Manager (VxVM) can be used on the same system as ZFS disks.

VxVM protects devices in use by ZFS from any VxVM operations that may overwrite the disk. These operations include initializing the disk for use by VxVM or encapsulating the disk. If you attempt to perform one of these VxVM operations on a device that is in use by ZFS, VxVM displays an error message.

Before you can manage a ZFS disk with VxVM, you must remove it from ZFS control. Similarly, to begin managing a VxVM disk with ZFS, you must remove the disk from VxVM control.

To determine if a disk is in use by ZFS

To reuse a VxVM disk as a ZFS disk

  1. If the disk is in a disk group, remove the disk from the disk group or destroy the disk group.

    To remove the disk from the disk group:

    # vxdg [-g diskgroup] rmdisk diskname

    To destroy the disk group:

    # vxdg destroy diskgroup
  2. Remove the disk from VxVM control
    # /usr/lib/vxvm/bin/vxdiskunsetup diskname
  3. You can now initialize the disk as a ZFS device using ZFS tools.

    See the Oracle documentation for details.

    You must perform step 1 and step 2 in order for VxVM to recognize a disk as ZFS device.

To reuse a ZFS disk as a VxVM disk

  1. Remove the disk from the zpool, or destroy the zpool.

    See the Oracle documentation for details.

  2. Clear the signature block using the dd command:
    # dd if=/dev/zero of=/dev/rdsk/c#t#d#s# oseek=16 bs=512 count=1

    Where c#t#d#s# is the disk slice on which the ZFS device is configured. If the whole disk is used as the ZFS device, clear the signature block on slice 0.

  3. You can now initialize the disk as a VxVM device using the vxdiskadm command or the vxdisksetup command.