是否可以将卷从可写修改为只读
适用场景
问题解答
- 创建 DP 类型的卷:
::> volume create -volume volname -vserver svm1 -type DP
- 重新同步 SnapMirror 关系时,目标卷将变为 DP 类型。
SnapMirror 重新同步操作可以删除目标卷中的数据,请确保重新同步卷正确无误。 |
::> snapmirror show
Progress
Source Destination Mirror Relationship Total Last
Path Type Path State Status Progress Healthy Updated
----------- ---- ------------ ------- -------------- --------- ------- --------
svm1:vol1 XDP svm1:vol1dp Snapmirrored
Idle - true -
::> volume show -volume vol1dp
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
svm1 vol1dp aggrfp online DP 500MB 195.9MB 60%
::> snapmirror break -destination-path svm1:vol1dp
Operation succeeded: snapmirror break for destination "svm1:vol1dp".
::> volume show -volume vol1dp
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
svm1 vol1dp aggrfp online RW 500MB 194.8MB 61%
::> snapmirror resync -destination-path svm1:vol1dp
Warning: All data newer than Snapshot copy snapmirror.xxxxxx.xxxx-xx-xx_xxx on volume svm1:vol1dp will be deleted.
Do you want to continue? {y|n}: y
Operation is queued: initiate snapmirror resync to destination "svm1:vol1dp".
corecls9701::> volume show -volume vol1dp
Vserver Volume Aggregate State Type Size Available Used%
--------- ------------ ------------ ---------- ---- ---------- ---------- -----
svm1 vol1dp aggrfp online DP 500MB 195.9MB 60%