Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Set-NaSnaplockLogVolume


NAME
Set-NaSnaplockLogVolume

SYNOPSIS
Set the active WORM log volume.

SYNTAX
Set-NaSnaplockLogVolume [-Volume] <String> [-Force] [-Controller <NaControll
er>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Set the active WORM log volume.


PARAMETERS
-Volume <String>
The name of the volume that will contain the WORM log files. This volume
must be a SnapLock Compliance volume.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Force
If specified it will enable the set log volume operation to ignore error
s encountered during SnapLock log volume change. Useful when the log vol
ume is inconsistent or have not enough disk space.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
DataONTAP.Types.Volume.VolumeInfo


NOTES


Category: snaplock
API: snaplock-set-log-volume

-------------- Example 1 --------------

C:\PS>Set-NaSnaplockLogVolume snaplock_vol0


Sets the snaplock log volume to snaplock_vol0.


Name State TotalSize Used Available Dedupe Fil
esUsed FilesTotal Aggregate
---- ----- --------- ---- --------- ------ ---
------ ---------- ---------
snaplock_vol0 online 24.0 MB 1% 23.8 MB False
116 881 aggr1



RELATED LINKS
Get-NaSnaplockLogVolume







 Data ONTAP® PowerShell Toolkit