ONTAP Discussions
ONTAP Discussions
We are currently migrating around 170 thick volumes from a 7-filer mode system to a SVM using 7MT software. Unfortuantely , there is no option (latest version 3.5) to force creation of thin volumes on the destination (the SVM). So we run out of space when we try to run the migration (pre-check error).
Netapp support has told us to change all the 7-filer volumes to thin using this command:
vol options <volume> guarantee none.
But I will have to enter this command 180 times. Is there a script or a different way to enable thin on these volumes?
Solved! See The Solution
For cDOT/ONTAP, its much easier: (Just one command)
::> volume modify -volume * -space-guarantee none
For 7-mode, unfortunately, it's not that easy, except scripting I guess (may be PowerShell but I have never done it). However, following is also possible.
Put all the commands serially in a notepad, and then ctl+A, ctl+c and paste in the putty terminal filer>
vol options vol1 guarantee none
vol options vol2 guarantee none
vol options vol3 guarantee none
vol options vol4 guarantee none
For cDOT/ONTAP, its much easier: (Just one command)
::> volume modify -volume * -space-guarantee none
For 7-mode, unfortunately, it's not that easy, except scripting I guess (may be PowerShell but I have never done it). However, following is also possible.
Put all the commands serially in a notepad, and then ctl+A, ctl+c and paste in the putty terminal filer>
vol options vol1 guarantee none
vol options vol2 guarantee none
vol options vol3 guarantee none
vol options vol4 guarantee none
Thanks, will try to copy all from text file. After all that is faster than typing everything in CLI.
can you run "ssh $filer vol options vol1 guarantee none" and script that? It's been many years since I've seen 7-mode...
yes, I managed to get something similar to work (since I use Windows).
This can be saved as a .bat file and then run as administrator:
@ECHO OFF
cd "C:\Program Files (x86)\PuTTY"
plink.exe root@ipaddr vol options test guarantee none;vol options test2 guarantee none
pause
I will probably use this method as it is easier to document all the changes done.