You can create a snapshot based on a specific event mark. You can use this snapshot for data mining and object repair on the production server.
Use the scrt_ra command to display the available event mark rollback window.
scrt_ra -C <Context ID> -ve
Available event marks for rollback:
-------------------------------------------------------------
Event Name Date/Time (Epoch Time) Description---------- ---------------------- -----------
Event-2 Tue Jan 14 14:21:28 2014 (1389727288)
Event-1 Tue Jan 14 14:13:49 2014 (1389726829)
-
On the recovery server, ensure all snapshot file systems are unmounted before trying to release the snapshot.
rtumnt -C <Context ID>
-
Ensure that no snapshots already exists on the recovery server.
scrt_ra -C <Context ID> -W
-
On the recovery server, create a snapshot based on a specific event mark. Use the target seconds (Epoch Time) value from the "Available event marks for rollback " output. The Event mark should precede the sequence of the current redo log, but should not be so far in the past that it has been archived to media such as tape.
Example:
scrt_ra -C <Context ID> -S<target seconds> which is (Epoch Time)
If the target seconds is 1529601179, then the output is similar to the following:
Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_83, 62.6 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_82, 62.10 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_81, 62.14 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_80, 62.18 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_89, 62.22 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_88, 62.26 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_87, 62.30 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_86, 62.34 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_85, 62.38 Jun 21 17:12:59 Making SNAP /dev/rsnlvFS_C71_84, 62.42 Jun 21 17:12:59 Making SNAP /dev/rsnc71lif_bk_1, 62.46 Jun 21 17:12:59 Making SNAP /dev/rsnc71lif_bk_2, 62.50 Jun 21 17:12:59 Making SNAP /dev/rsnc71lif_bk_3, 62.54 Jun 21 17:12:59 Making SNAP /dev/rsnc71dbmf_bk_1, 62.58 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_83, 62.4 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_82, 62.8 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_81, 62.12 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_80, 62.16 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_89, 62.20 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_88, 62.24 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_87, 62.28 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_86, 62.32 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_85, 62.36 Jun 21 17:12:59 Making SNAP /dev/rlvFS_C71_84, 62.40 Jun 21 17:12:59 Trying to match LFC to time: 1529601179 Jun 21 17:12:59 Found time 1529601179 in-between LFC #2270and LFC #2272 Jun 21 17:12:59 Fetching LFC #2271 Jun 21 17:12:59 Jun 21 17:12:59 Applying LFC #2271 Jun 21 17:12:59 Fetching LFC #2272 Jun 21 17:12:59 Jun 21 17:12:59 Applying LFC #2272 Jun 21 17:12:59 The BackingStore Vdevs are at level 2270+. ABA is at level 2272
-
Mount the volumes on the recovery server.
rtmnt -C <Context ID> -f
You should see output similar to the following:
Determining Filesystems to mount...
Mounting /FS_C71_80...
Replaying log for /dev/lvFS_C71_80.
Mounting /FS_C71_81...
Replaying log for /dev/lvFS_C71_81.