如果源和目标之间的卷压缩设置不一致、则SnapMirror还原将失败
适用场景
- ONTAP 9
- SnapMirror还原
- 卷数据压缩
问题描述
- 还原操作的目标卷已启用数据压缩、而源卷未启用数据压缩
- 如果从目标(原始SnapMirror目标)尝试执行SnapMirror还原、并且源(原始SnapMirror源)上不存在Snapshot副本、则该还原将失败
- RST关系将运行状况显示为"false"
::*> snapmirror show ;date
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
svm1_ontap913:fg_src
XDP svm2_ontap913:fg_dst
Snapmirrored
Idle - true -
svm2_ontap913:fg_dst
RST svm1_ontap913:fg_src
Snapmirrored
Idle - false -
last-transfer-error
的在snapmirror show
FlexGroup卷和FlexVol中显示不同的错误:
FlexGroup卷:
::*> snapmirror show -fields last-transfer-error -destination-path svm1_ontap913:fg_src
source-path destination-path last-transfer-error
-------------------- -------------------- --------------------------------------------------------------------------------------------
svm2_ontap913:fg_dst svm1_ontap913:fg_src Group Update failed (Failed to complete update operation on one or more item relationships.)
FlexVol:
::> snapmirror show -fields last-transfer-error -destination-path svm1_ontap913:vol1_svm1
source-path destination-path last-transfer-error
------------------------------------ ----------------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
svm2_ontap913:vol1_svm1_ontap913_dst svm1_ontap913:vol1_svm1 Failed to start transfer because compression is enabled on destination volume "svm1_ontap913:vol1_svm1". (Failed to start transfer. (Negotiation for using Storage Efficiency optimization failed because there is compression on the destination volume "6ee1d313-90b7-11ee-9dcc-000c297e7ba7:vol1_svm1"))
- SnapMirror审核日志:
FlexGroup卷:
Wed May 15 17:59:49 JST 2024 RestoreTransfer[May 15 17:59:49]:29c860a6-1299-11ef-a788-000c297e7ba7 Operation-Uuid=2b250553-0dbc-40e7-ad8b-d00e371aa1ff Group=flexgroup Operation-Cookie=0 action=End source=svm2_ontap913:fg_dst0002 destination=svm1_ontap913:fg_src0002 status=Failure message=Failed to start transfer because compression is enabled on destination volume "svm1_ontap913:fg_src0002".(Failed to start transfer.(Negotiation for using Storage Efficiency optimization failed because there is compression on the destination volume "6ee1d313-90b7-11ee-9dcc-000c297e7ba7:fg_src0002"))
FlexVol:
Wed May 15 18:44:48 JST 2024 Restore:b7b3396d-129f-11ef-a788-000c297e7ba7 Operation-Uuid=b7b33960-129f-11ef-a788-000c297e7ba7 Group=none Operation-Cookie=0 action=End status=Failure message=Failed to start transfer because compression is enabled on destination volume "svm1_ontap913:vol1_svm1". (Failed to start transfer. (Negotiation for using Storage Efficiency optimization failed because there is compression on the destination volume "6ee1d313-90b7-11ee-9dcc-000c297e7ba7:vol1_svm1")) source=svm2_ontap913:vol1_svm1_ontap913_dst destin
- 如果在两个卷上都启用或禁用了卷压缩、则不会出现此问题。