ONTAP Hardware

Script to create volume on NAS

mpileye
1,749 Views

Hello, 

 

I'm trying to automate NetApp volume creation. 

For it I use Powershell Dataontap toolkit (4.6). 

Everythings work except setting volume option maxdirsize.

When I try through SSH with command vol options <vol_name> maxdirsize XXXXXX it ask me for confirmation.

When I try through PS with command Set-NaVolOption -Name <vol_name> -Key maxdirsize -Value XXXXXX it make several minute before crash...

 

Is there a way to : 

- Disable confirmation with SSH command ?

or

- Make powershell command works ? 

 

My environnement is : 

FAS8020 in NetApp Release 8.2.3P6 7-Mode

 

Thanks 🙂

1 REPLY 1

AlexSun0302
1,692 Views

-confirm:$false, try it, in the powershell

Public