跳转到主内容

是否可以将卷从可写修改为只读

Views:
31
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core<a>2008896632</a>
Last Updated:

适用场景

ONTAP 9

问题解答

无法 直接将卷从 writeable ( RW )修改为 readonly ( DP )。 
 
可通过两种方法将卷设置为 DP 卷:
 
  • 创建 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%

追加信息

不适用

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.