NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

volume-create volume-type "DP" - Only volumes of type "RW" can be mounted during create.

JENGELBRECHT
19,132 Views

I'm trying to create a volume on Vserver using the OnTAP 1.17 VServer API:

I'm calling the volume-create method as follows -

r = s.invoke("volume-create", "volume", "test01", "containing-aggr-name", "aggr1_node01", "size", "20971520", "junction-path", "/test01", "export-policy", "n01_vs10", "volume-type", "dp", "volume-state", "offline", "is-junction-active", "false", "percentage-snapshot-reserve", "15")

And I get:

Only volumes of type "RW" can be mounted during create.

I've tried adding the 'volume-state' parameter and setting it to "offline" so that it won't be "mounted during create", but that did not work either.  Setting the 'volume-type' to "rw" (default) works, but then I can't use the volume as SnapMirror destination.  I need to set the volume type to "DP" for SnapMirror.

Thoughts?

Jaco

1 ACCEPTED SOLUTION

rle
NetApp Alumni
19,131 Views

Hi Jaco,

I did some reading from the "SnapMirror® Intercluster Failover and Resync Express Guide". A volume type "DP" cannot have a mount point.  Only after the SnapMirror relationship is broken, can the volume be mounted.

Regards,

   - Rick -

View solution in original post

3 REPLIES 3

rle
NetApp Alumni
19,132 Views

Hi Jaco,

I did some reading from the "SnapMirror® Intercluster Failover and Resync Express Guide". A volume type "DP" cannot have a mount point.  Only after the SnapMirror relationship is broken, can the volume be mounted.

Regards,

   - Rick -

Public