Table of ContentsView in Frames

Creating a volume SnapMirror relationship for a FlexVol volume

You can create a volume SnapMirror relationship for a FlexVol volume.

Steps

  1. To create a SnapLock Compliance aggregate source, enter the following command:
    aggr create aggr_name [-L [compliance|enterprise]] ndisks[@disksize]

    -L is specified to create a SnapLock aggregate. The aggregate can either be a SnapLock Compliance aggregate or a SnapLock Enterprise aggregate.

    Example

    aggr create wormaggrsrc -L compliance 3

  2. To create a volume in that aggregate, enter the following command:
    vol create vol_name aggr_name size[k|m|g|t]

    Example

    vol create src wormaggrsrc 20g

  3. To create a SnapLock Compliance aggregate destination, enter the following command:
    aggr create aggr_name [-L [compliance|enterprise]] ndisks[@disksize]

    -L is specified to create a SnapLock aggregate. The aggregate can either be a SnapLock Compliance aggregate or a SnapLock Enterprise aggregate.

    Example

    aggr create wormaggrdst -L compliance 3

  4. To create a volume in that aggregate, enter the following command:
    vol create vol_name aggr-name size[k|m|g|t]

    Example

    vol create dst wormaggrdst 20g

  5. On the destination system, restrict the volume by using the vol restrict command.
    vol restrict vol_name

    Example

    vol restrict dst

  6. To initialize the SnapMirror relationship between the source and the destination, enter the following command:
    snapmirror initialize -S src_system:src_vol dst_system:dst_vol

    src_system is the name of the source system.

    src_vol is the volume you want to copy.

    dst_system is the name of the destination system.

    dst_vol is the destination volume.

    Example

    snapmirror initialize -S src dst

    The snapmirror initialize command initializes the SnapMirror relationship between the source volume src and destination volume dst.