Creating a Mirror from the Command Line

To set up a mirror volume in a remote cluster at the secondary datacenter, run the volume create command, as shown in this example:
Cluster2> maprcli volume create -name volA -path /A -type mirror -source volA@Cluster1 -schedule 1 -mirrorschedule 1

When you run this command, a mirror volume named volA is created with these specifications:

Option Description Value used in example
-name Name of the mirror volume volA
-path Path to the mirror volume (the mount point) /A
-type Type of volume (either rw or mirror) mirror
-source Name of the source volume from which the mirror pulls data. For remote mirroring, the name must include the cluster name, since the source is located on a different cluster from the mirror. volA@Cluster1, where Cluster1 resides in the primary datacenter
-schedule The ID corresponding to the snapshot schedule for the mirror volume. These schedule IDs are pre-assigned:
  • 1 is for critical data
  • 2 is for important data
  • 3 is for normal data

See Schedules for information on creating a custom schedule.

1 (for critical data)
Warning: If a mirror volume is changed to a read-write volume, the snapshot schedule specified by the -schedule option will apply to that volume, and the mirror schedule will be disabled.
-mirrorschedule

The ID corresponding to the mirror schedule. These schedule IDs are pre-assigned:

  • 1 is for critical data
  • 2 is for important data
  • 3 is for normal data
1 (for critical data)
Warning: If the quota set for the mirror volume is less than the quota set for its source volume, the CLDB raises an alarm. The mirroring operation will not fail, but the administrator must decide whether to add space and increase the mirror volume quota, or remove unwanted space from the source volume and decrease its quota.