Active IQ Unified Manager Discussions

Volume offline workflow

filer_sith
5,463 Views

May I know if there if anyone already tried to create a workflow that just offline a volume?

thanks.

5 REPLIES 5

sinhaa
5,449 Views

The below command code will do for you. 

 

##Begin Code

 

 

param (
[parameter(Mandatory=$true, HelpMessage="Cluster IP address")]
[string]$Cluster,

[parameter(Mandatory=$true, HelpMessage="Volume name")]
[string]$VolumeName,

[parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine name")]
[string]$VserverName
)

 

Connect-WfaCluster $Cluster -Vserver $VserverName
Set-NcVol -Name $VolumeName -Offline

 

##End code

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

geringer
5,432 Views

Sinhaa,

 

For Clustered Data OnTap, we may need to un-mount the volume before we take it off-line.

 

Filer-sith,

 

I have a remove volume workflow that, un-mounts the volume, takes it offline, and sends an email to notify WFA Admins that a volume deletion is requested.  The workflow has an approval point after the email, and once approved it can remove the volume.  My lab is down at the moment, but if this workflow would help you, I can clean I up and post it.

 

Mike

sinhaa
5,417 Views

Right Mike. Added the line to Un-mount the volume.

 

##Begin Code

 

 

param (
[parameter(Mandatory=$true, HelpMessage="Cluster IP address")]
[string]$Cluster,

[parameter(Mandatory=$true, HelpMessage="Volume name")]
[string]$VolumeName,

[parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine name")]
[string]$VserverName
)

 

Connect-WfaCluster $Cluster -Vserver $VserverName

Dismount-NcVol -Name $VolumeName
Set-NcVol -Name $VolumeName -Offline

 

##End code

 

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

justin_smith
5,089 Views

Im creating a new command since this isnt a standard one.

 

Whats the string representation field?

junec
5,301 Views

How about for 7-Mode only? And if it possible, can put it in .dar file compatible with WFA 2.2. Thank you so much

Public