|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcAggr
NAME
Set-NcAggr
SYNOPSIS
Set the specified aggregate online, offline, or restricted.
SYNTAX
Set-NcAggr [-Name] <String> -Online [-Controller <NcController[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]
Set-NcAggr [-Name] <String> -Offline [-UnmountVolumes] [-Controller <NcContr
oller[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Set-NcAggr [-Name] <String> -Restricted [-UnmountVolumes] [-Controller <NcCo
ntroller[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set the specified aggregate online, offline, or restricted.
Online: Bring the specified aggregate online. This command takes effect imm
ediately. All volumes on the aggregate are brought to whatever state they w
ere in before the aggregate was restricted or taken offline. If there are CI
FS shares associated with the any of the aggregate's volumes that were also
onlined, they are enabled.
Offline: Take the specified aggregate offline. The operation takes effect b
efore the API returns. Except in maintenance mode, the current root aggrega
te may not be taken offline. An aggregate marked to become the root aggrega
te cannot be taken offline. An aggregate containing one or more flexible vo
lumes cannot be taken offline; its contained volumes must first be destroyed
. A number of operations being performed on the given aggregate can prevent
this operation from succeeding, either at all or for various lengths of tim
e. If such operations are found, the system waits up to one second for them
to finish. If they don't, the command is aborted. A check is also made for
files in the aggregate opened by internal ONTAP processes. The command is
aborted if any are found.
Restricted: Restrict the specified aggregate. An aggregate with one or more
flexible volumes cannot be restricted; all of its contained volumes must fi
rst be destroyed.
PARAMETERS
-Name <String>
Name of an existing aggregate.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Online
Set the aggregate online.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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
-Offline
Set the aggregate offline.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UnmountVolumes
Offline: This option specifies that all of the volumes hosted by the giv
en aggregate are to be unmounted before the offline operation is execute
d. By default, the system will reject any attempt to offline an aggrega
te that hosts one or more online volumes.
Restricted: This option specifies that all of the volumes hosted by the
given aggregate are to be unmounted before the restrict operation is exe
cuted. By default, the system will reject any attempt to restrict an ag
gregate that hosts one or more online volumes.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Restricted
Set the aggregate restricted.
Required? true
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
NetApp.Ontapi.Filer.C.Aggr810.AggrAttributes
NOTES
Category: aggr
API: aggr-online, aggr-offline, aggr-restrict
Family: cluster
-------------- Example 1 --------------
C:\PS>Set-NcAggr aggr2 -Restricted
Set aggregate 'aggr2' to Restricted.
Name State TotalSize Used Available Disks RaidType RaidSize Volu
mes
---- ----- --------- ---- --------- ----- -------- -------- ----
---
aggr2 restricted 0 0 5 raid_dp,normal 16
0
RELATED LINKS
Get-NcAggr
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|