Changing a Standard Volume to a Mirror Volume
Describes how to convert a standard volume to a mirror volume.
About this task
You can convert a standard volume to a mirror volume and set it up to mirror one of its associated mirror volumes using the Control System, the CLI, or the REST API.
Changing a Standard Volume to a Mirror Volume Using the Control System
Procedure
What to do next
After converting the standard volume to a mirror volume:
- Convert the source (mirror) volume to a standard (read/write) volume to prevent a deadlock and to allow writes to continue on the volume.
- Associate a mirroring schedule with this volume to ensure that data on this volume is in sync with the source volume.
Changing a Standard Volume to a Mirror Volume Using the CLI or the REST API
About this task
- CLI
To convert a standard volume to a mirror volume from the CLI, run the
maprcli volume modifycommand with the-typeoption value set tomirror.maprcli volume modify -name <volume name> -type mirror- REST
- To convert a standard volume to a mirror volume, send a request of type
POST. For example:
curl -k -X POST 'https://<hostname>:8443/rest/volume/modify?name=<volName>&type=mirror' --user mapr:mapr
For more information, see After converting the standard volume
to a mirror volume:
volume modify. NOTE
It
might take some time (approximately 10 minutes or so) to convert a standard
volume to a mirror volume. You need to wait until the operation is complete
before performing other actions.- Convert the source (mirror) volume to a standard (read/write) volume to prevent a deadlock and to allow writes to continue on the volume.
- Associate a mirroring schedule with this volume to ensure that data on this volume is in sync with the source volume.