Active IQ Unified Manager Discussions

Volume offline workflow

filer_sith
4,656 Views

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

thanks.

5 REPLIES 5

sinhaa
4,642 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
4,625 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
4,610 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
4,282 Views

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

 

Whats the string representation field?

junec
4,494 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