Configuring Docker containers for disaster recovery

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.

  1. Create VxVM data volumes as backing store for the VxFS filesystem.

    [PrimarySite] # vxassist -g dockerdg make vol1 1G

  2. Create and mount the filesystem.

    [PrimarySite] # mkfs -t vxfs /dev/vx/rdsk/dockerdg/vol1

    [PrimarySite] # mkdir /vol1

    [PrimarySite] # mount -t vxfs /dev/vx/dsk/dockerdg/vol1 /vol1

  3. Create log volume (SRL) for VVR replication.

    [PrimarySite] # vxassist -g dockerdg make srlvol 300m

  4. Repeat steps 1 and 3 on the secondary site.
  5. Setup primary replication group (RVG).

    [PrimarySite] # vradmin -g dockerdg createpri rvg vol1 srlvol

  6. Add secondary site.

    [PrimarySite] # vradmin -g dockerdg addsec rvg <primarysite ip address> <secondarysite ip address>

  7. Start replication.

    [PrimarySite] # vradmin -g dockerdg -a startrep rvg

  8. Create a Docker container.

    # 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.