Refreshing a test environment

Periodically, it may be required to resynchronize the test or development environment with current production data. This can be efficiently achieved using the Flashsnap feature of Storage Foundation and High Availability Solutions products.

To refresh a test environment

  1. Deport the testdevdg disk group from the test environment. This step requires stopping the usage of snapvol in the test environment.
    # vxdg deport testdevdg
  2. Import testdevdg into the production environment.
    # vxdg import testdevdg
  3. Reattach the snapvol to appvol in order to synchronize current production data. Note that this synchronization is very efficient since it copies only the changed data.
    # vxsnap -g appdg reattach snapvol source=appvol
  4. When you need to setup the testdevdg environment again, recreate the break-off snapshot.
    # vxsnap -g appdg make src=appvol/nmirror=1/new=snapvol
  5. Split the diskgroup containing the mirror breakoff snapshot.
    # vxdg split appdg testdevdg snapvol
  6. Deport the diskgroup from the production application host
    # vxdg deport testdevdg
  7. Import the testdev disk group on the host that will run the test environment.
    # vxdg import testdevdg

    Once this step is done, the snapvol present in testdevdg is ready to be used for testing or development purposes.

You can also create further snapshots of snapvol in order to create more test or development environments using the same snapshot. For this purpose, the following mechanisms can be used:

For more detailed information, see the Storage FoundationTM Administrator's Guide