You can create a snapshot based on a time in the past. You can use this snapshot for data mining and object repair on the production server.
To create a snapshot:
-
On the recovery server, make sure all snapshot file systems are unmounted before trying to release the snapshot.
rtumnt -C <Context ID>
-
Make sure that a snapshot does not already exist on the recovery server.
scrt_ra -C <Context ID> -W
-
On the recovery server, enter the following command to create a snapshot based on a specific date and time.
scrt_ra -C <Context ID> -D date
The date format depends on the DATEMSK environment variable that is used by the recovery server.
If you enter 06/15/18 09:33:40 as the date and 34 for the Context ID, the output is similar to the following:
scrt_ra -C34 -D "06/15/18 09:33:40" You have requested a virtual incremental LFC restore to time (1529055220) Fri Jun 15 09:33:40 2018 c(ontinue) or a(bort)? c Making SNAP /dev/rsnc1lif_bk_1, 66.306 Making SNAP /dev/rsnc1lif_bk_2, 66.310 Making SNAP /dev/rsnc1lif_bk_3, 66.314 Making SNAP /dev/rsnc1dbmf_bk_1, 66.318 Making SNAP /dev/rsntestlv, 66.450 Making SNAP /dev/rsnrtlog, 66.454 Making SNAP /dev/rtestlv, 66.448 Making SNAP /dev/rrtlog, 66.452 Trying to match LFC to time: 1529055220 Found time 1159536820 in-between LFC #12 and LFC #14 Fetching LFC #17 Applying LFC #17 Fetching LFC #15 Applying LFC #15 Fetching LFC #13 Applying LFC #13 Fetching LFC #14 Applying LFC #14 The BackingStore Vdevs are at level 12+. ABA is at level 18.
-
Mount the volumes on the recovery server:
rtmnt -C <Context ID>
You will see output similar to the following:
Verifying Operating Context ID.
Determining role of this system in the Context.
Determining Filesystems to mount...
Mounting /pfs00...
Replaying log for /dev/esplv00.
Mounting /pfs01...
Mounting /pfs02...