Creating a test environment

Before you set up a test or development environment, you must have a production application volume already created in the application disk group.

To prepare for a test environment

To create a test environment

  1. Identify disks to create break-off snapshots. These disks need not be from the same array as the application volume. These disks must be visible to the host that will run test/dev environment.
  2. Use these disks to create a mirror breakoff snapshot:
    • Add the mirror to create a breakoff snapshot. This step copies application volume data into the new mirror added to create the snapshot.

      # vxsnap -g appdg addmir appvol alloc=<sdisk1,sdisk2,...>
    • Create a snapshot.

      # vxsnap -g appdg make src=appvol/nmirror=1/new=snapvol
  3. Split the diskgroup containing the mirror breakoff snapshot.
    # vxdg split appdg testdevdg snapvol
  4. Deport the diskgroup from the production application host
    # vxdg deport testdevdg
  5. 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 the testdevdg disk group is ready to be used for testing or development purposes. If required, it is also possible to create multiple copies of snapvol using Storage Foundation's Flashsnap feature by creating a snapshot of snapvol using method described above.