Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to move a volume to a new aggregate using the API. I can't find a "volume-move" operation in the SDK so I have attempted to use the "volume-modify-iter" API to change the aggregate, using the code below - unforunately, this just doesn't move the volume.
<?xml version="1.0" encoding="UTF-8"?> <netapp xmlns="http://www.netapp.com/filer/admin" version="1.32"> <volume-modify-iter> <attributes> <volume-attributes> <volume-id-attributes> <containing-aggregate-name>aggr11_06_sas</containing-aggregate-name> </volume-id-attributes> </volume-attributes> </attributes> <continue-on-failure>true</continue-on-failure> <max-failure-count>1</max-failure-count> <max-records>1</max-records> <query> <volume-attributes> <volume-id-attributes> <name>test_api</name> <name-ordinal></name-ordinal> <node></node> <owning-vserver-name>name_of_vserver</owning-vserver-name> </volume-id-attributes> </volume-attributes> </query> <return-failure-list>true</return-failure-list> <return-success-list>true</return-success-list> <tag></tag> </volume-modify-iter> </netapp>
Is there any way to achieve this using the API?
Thanks!
Solved! See The Solution
1 ACCEPTED SOLUTION
stephzylstra has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 REPLIES 2
stephzylstra has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Vol move is not "vserver" level API its under "Cluster-Mode" API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, I accidentally moved it to vserver level in ZEDI.
