Administering mirrored volumes using vxassist

By default, a volume in disk groups with the FSS attribute set is mirrored across hosts. You can use the vxassist command to create mirrored volume sets spanning across mixed media types, or using a combination of internal disks and external shared disks (i.e. SAN-attached disks).

To create a mirrored volume with HDD and SSD disks

  1. Create a volume on either the HDD or SSD disk:
    # vxassist -g diskgroup make vol1 maxsize layout=concat init=none

    Where diskgroup is the diskgroup name. HDD is selected by default.

  2. Add a plex based on SSD(s):
    # vxassist -g diskgroup mirror vol1 mediatype:ssd
  3. Activate the volume:
    # vxvol -g diskgroup init active vol1

Note:

The mirrored volume may not preserve allocation constraints set.

If you have created a mirrored volume on an SSD disk using the init=none option, you can manually add a new mirror for a DCO volume using the following command:

# vxassist -g diskgroup mirror volume-dcl diskname

Where diskgroup is the diskgroup name and diskname is the name of a disk from the host on which the new data mirror was added. Symantec recommends that you specify the name of a disk on which the data mirror was created.

To create a mirrored volume using internal disks and external physically shared disks

  1. Create a volume on either the internal disk or the external physically shared disks:
    # vxassist -g diskgroup make vol1 maxsize layout=concat init=none 
    host:host1

    Where diskgroup is the diskgroup name.

  2. Add a plex based on external shared disks:
    # vxassist -g diskgroup mirror vol1 enclr:emc0
  3. Activate the volume:
    # vxvol -g diskgroup init active vol1

Note:

Specifying the host disk class allocates the volume on the internal storage that is connected to the specified host.

See Using the host disk class and allocating storage.