Setting up disaster recovery for backing filesystem and volumes of the Docker container and Docker Daemon using VVR/VFR is similar to setting up disaster recovery plans for a physical host or a virtual machine.
To set up replication using VVR
In this section, we are using PrimarySite and SecondarySite to indicate primary and secondary sites respectively.
[PrimarySite] # vxassist -g dockerdg make vol1 1G
[PrimarySite] # mkfs -t vxfs /dev/vx/rdsk/dockerdg/vol1
[PrimarySite] # mkdir /vol1
[PrimarySite] # mount -t vxfs /dev/vx/dsk/dockerdg/vol1 /vol1
[PrimarySite] # vxassist -g dockerdg make srlvol 300m
[PrimarySite] # vradmin -g dockerdg createpri rvg vol1 srlvol
[PrimarySite] # vradmin -g dockerdg addsec rvg <primarysite ip address> <secondarysite ip address>
[PrimarySite] # vradmin -g dockerdg -a startrep rvg
# docker run -it --name container -v /vol1:/vol1 ubuntu /bin/bash
To configure VVR and VFR for replication between DR sites:
See Configure VVR and VFR in VCS GCO option for replication between DR sites.
For information about configuring VVR/VFR-related resources, see the Storage Foundation and High Availability Solutions Replication Administrator's Guide.
For information about the VVR-related agents, see the Cluster Server Bundled Agents Reference Guide.