上述錯誤通常為修正先前錯誤的結果「Target path overlap.Previous policy XXXXX from xxxxxxx has path YYYYYYYY.New policy ZZZZZ from zzzzzzz has path YYYYYYYY (unrunnable)」
在來源叢集上,來源路徑是舊叢集中先前原則的目標「因為依範例遷移」
來自舊叢集的舊原則在來源叢集上仍有目標記錄「包括路徑上的舊網域 ID」
當在新目標叢集上建立鏡像原則時,它會使用舊原則記錄的相同網域 ID,但在之後執行鏡像原則時,它會抱怨舊叢集存在舊的目標記錄。
「Target path overlap. Previous policy XXXXX from xxxxxxx has path YYYYYYYY. New policy ZZZZZ from zzzzzzz has path YYYYYYYY (unrunnable)」
當管理員/支援嘗試修正此錯誤時,即會中斷來源叢集上舊原則 XXXXX 的關聯,這會導致刪除鏡像原則仰賴的網域 ID,進而導致日後新鏡像原則 ZZZZZ 失敗。
請在實驗室的模擬下方找到示範:
- 在 new_source_cluster 上,路徑 /ifs/target 是來自 older_cluster 的目標,並具有網域 ID 65537
new_source_cluster-1# isi sync target list| grep -w /ifs/target
old_policy old_cluster /ifs/target finished writes_disabled
new_source_cluster-1# isi_classic domain list -wl | grep -w /ifs/target
65537 | /ifs/target | SyncIQ | None | None | None | None | None | Off
- A newly created policy "new_policy" from new_source_cluster to new_target_cluster
- The "new_policy_mirror" created and complains from target overlap
new_target_cluster-1# isi sync reports list -v
Policy Name: new_policy_mirror
Job ID: 1
Start Time: 2021-05-30T08:27:01
End Time: 2021-05-30T08:27:03
Action: run
State: failed
ID: 1-new_policy_mirror
Policy ID: 005056aa8bf93a4cb360d71298fdf618
Sync Type: incremental
Duration: 2s
Errors: Target path overlap. Previous policy old_policy from old_cluster has path /ifs/target. New policy new_policy_mirror from new_target_cluster has path /ifs/target (unrunnable)
- The new_policy_mirror is using the same domin id 65537 as the old_policy
new_source_cluster-1# cat /ifs/.ifsvar/modules/tsm/config/target_records/005056aa8bf93a4cb360d71298fdf618.xml | grep domain-id
65537
- 管理員/支援會中斷 new_source_cluster 上的 old_policy,導致刪除網域 ID 65537
new_source_cluster-1# isi sync target break --policy=old_policy
中斷原則的目標關聯將導致需要在下一次同步時完整同步所有資料。
是否確定?(是/[否]):是
new_source_cluster-1# isi_classic domain list -wl | grep -w /ifs/target
new_source_cluster-1#
- 因此,鏡像原則下一次的執行將會失敗,因為網域 ID 65537 已刪除
new_target_cluster-1# isi sync reports list -v
Policy Name: new_policy_mirror
Job ID: 1
Start Time: 2021-05-30T08:27:01
End Time: 2021-05-30T08:31:03
Action: run
State: failed
ID: 1-new_policy_mirror
Policy ID: 005056aa8bf93a4cb360d71298fdf618
Sync Type: incremental
Duration: 3s
Errors: Failed to get domain info for domain id 65537: No such file or directory (unrunnable)
修正方法是使用工作引擎手動建立新網域 ID,請等待 DomainMark 工作完成,然後使用新網域 ID 更新目標 XML 記錄,最後恢復鏡像原則至成功。
NB:請聯絡支援以協助更新目標 XML 記錄
new_source_cluster-1# isi job jobs start DomainMark --root=/ifs/target --dm-type=SyncIQ -o Medium
Started job [64]
new_source_cluster-1# isi_classic domain list -wl | grep -w /ifs/target
65538 | /ifs/target | SyncIQ,Writable | None | None | None | None | None | Off
new_source_cluster-1# cat /ifs/.ifsvar/modules/tsm/config/target_records/005056aa8bf93a4cb360d71298fdf618.xml | grep domain-id
65538
new_target_cluster-1# isi sync reports list
Policy Name Job ID Start Time End Time Action State
---------------------------------------------------------------------------------------------
new_policy_mirror 1 2021-05-30T08:27:01 2021-05-30T08:34:59 run needs_attention
---------------------------------------------------------------------------------------------
Total: 1