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