Skip to main content
NetApp Knowledge Base

Is it possible to modify the volume from writeable to readonly?

Views:
4,072
Visibility:
Public
Votes:
3
Category:
ontap-9
Specialty:
core
Last Updated:

Applies to

ONTAP 9

Answer

It's not possible to modify the volume from writeable(RW) to readonly(DP) directly
 
There are two ways to make the volume into a DP volume:
 
  • Create a volume with DP type:

::> volume create -volume volname -vserver svm1 -type DP

  • Resync a SnapMirror relationship, the destination volume becomes DP type.
Snapmirror resync operation can delete data in the destination volume, make sure the resync volume is correct or not.

::> 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%

Additional Information

N/A
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.