VxVM coexistence with SVM and ZFS

Solaris Volume Manager (SVM) is a logical volume manager software provided by Sun. ZFS is a type of file system presenting a pooled storage model that Sun developed. File systems can directly draw from a common storage pool (zpool). Veritas Volume Manager (VxVM) can be used on the same system as SVM and ZFS disks.

VxVM protects devices in use by SVM or 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 a device that is in use by SVM or ZFS, VxVM displays an error message.

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

To determine if a disk is in use by SVM or ZFS

To reuse a VxVM disk as a ZFS disk or an SVM 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 SVM/ZFS device using ZFS/SVM tools.

    See the Sun documentation for details.

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

To reuse a ZFS disk or an SVM disk as a VxVM disk

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

    See the Sun 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 or the SVM 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.