Data Infrastructure Management Software Discussions

Highlighted

Volume offline workflow

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

thanks.

5 REPLIES 5
Highlighted

Re: Volume offline workflow

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.

Highlighted

Re: Volume offline workflow

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

Highlighted

Re: Volume offline workflow

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.

Highlighted

Re: Volume offline workflow

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

Highlighted

Re: Volume offline workflow

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

 

Whats the string representation field?

Cloud Volumes ONTAP
Review Banner
All Community Forums
Public