Skip to main content
Question

How to check if restore is using the aux copy from logs

  • February 7, 2025
  • 3 replies
  • 46 views

Forum|alt.badge.img+1

Is there a way to verified the from the logs that the restore media is from the aux copy and not from the primary copy?

3 replies

Forum|alt.badge.img+4
  • Novice
  • February 7, 2025

I can think of 2 ways.

First you can look on your media agent and see what disk is reading against the commvault process.

Second, you can look at the StartRestore.log on the client your restoring and do a find for copyID. This will show what copy precedence was used in your browse. 1= primary copy , 2 = aux copy

Here is an example:
7 2897696 CVRestoreFiles::sendInitData() - Sending initialization data:
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - seqNum               = [4436701220135]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - appNumber            = [2422]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - appType              = [33]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - commCellId           = [2]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - copyId               = [0]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - jobId                = [2897696]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - subClient            = [n/a]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - numFiles             = [1]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - srcClient            = [ServerName]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - destClient           = [ServerName
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - userName             = [NULL]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - initRestartNumber    = [0]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - noLossRestore        = [0]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - mountDbsAfterRestore = [0]
2916  3a0c  02/07 17:58:57 2897696 CVRestoreFiles::sendInitData() - Sent message FSR_MSG_INIT_DATA


Forum|alt.badge.img+1
  • Author
  • Novice
  • February 10, 2025

Hi, from this actual log. Is  “copyPrec 3” saying that I selected the aux copy #3

41395 a1b3 02/04 13:59:24 771848 OraBaseContext::CheckForSnapRestore(6036) - getArchFileListByTime args:appId -1 clientId 72  instanceId 74 dataType 22 copyPrec 3 time=1738695564
41395 a1b3 02/04 13:59:25 771848 OraBaseContext::GetOscBackupPieces(6702) - IndexingV1 client detected on source. Need not look for OSC pieces.
41395 a1b3 02/04 13:59:25 771848 OraBaseContext::CheckForSnapRestore(6132) - Detected Archive file in the cycle archfile id = 945293 archfile name = 771798_EMGCDB_i73gthpc_26183_1_1 jobid = 771798 snap data = 0, snap copy = 0, Org SnapJob = 0 CopyId = 73
41395 a1b3 02/04 13:59:25 771848 OraBaseContext::CheckForSnapRestore(6132) - Detected Archive file in the cycle archfile id = 945294 archfile name = 771798_EMGCDB_i83gthpc_26184_1_1 jobid = 771798 snap data = 0, snap copy = 0, Org SnapJob = 0 CopyId = 73
41395 a1b3 02/04 13:59:25 771848 OraBaseContext::CheckForSnapRestore(6132) - Detected Archive file in the cycle archfile id = 945295 archfile name = 771798_EMGCDB_ia3gthpc_26186_1_1 jobid = 771798 snap data = 0, snap copy = 0, Org SnapJob = 0 CopyId = 73
41395 a1b3 02/04 13:59:25 771848 OraBaseContext::CheckForSnapRestore(6132) - Detected Archive file in the cycle archfile id = 945296 archfile name = 771798_EMGCDB_i93gthpc_26185_1_1 jobid = 771798 snap data = 0, snap copy = 0, Org SnapJob = 0 CopyId = 73
41395 a1b3 02/04 13:59:25 771848 OraBaseContext::CheckForSnapRestore(6132) - Detected Archive file in the cycle archfile id = 945327 archfile name = 771798_EMGCDB_ib3gthqf_26187_1_1 jobid = 771798 snap data = 0, snap copy = 0, Org SnapJob = 0 CopyId = 73
41395 a1b3 02/04 13:59:25 771848 OraBaseContext::CheckForSnapRestore(6132) - Detected Archive file in the cycle archfile id = 945345 archfile name = c-3165165137-20250204-01 jobid = 771798 snap data = 0, snap copy = 0, Org SnapJob = 0 CopyId = 73

thanks


Forum|alt.badge.img+8

@Luis Ramos You can verify the copy precendence by following these steps

In the commcell console

  1. go to Policies > Storage Policies.

  2. Right-click the appropriate storage policy, and then click Properties.

  3. On the Copy Precedence tab, select the copy.

You can check which copy has been set to copy precedence =3. That is the copy which is being used for the restore job above.