Active IQ Unified Manager Discussions
Active IQ Unified Manager Discussions
May I know if there if anyone already tried to create a workflow that just offline a volume?
thanks.
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
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
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
Im creating a new command since this isnt a standard one.
Whats the string representation field?
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