|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaVolTotalFiles
NAME
Set-NaVolTotalFiles
SYNOPSIS
Set a volume's 'total-files' value to the given quantity.
SYNTAX
Set-NaVolTotalFiles [-Name] <String> [-Controller <NaController>] [-TotalFil
es] <Int32> [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set a volume's 'total-files' value to the given quantity. This specifies th
e maximum number of files that the given volume can hold.
PARAMETERS
-Name <String>
The name of the volume whose 'total-files' field we wish to set. The ch
osen volume must be online and not read-only for this operation to succe
ed.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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
-TotalFiles <Int32>
Specifies the new value for the volume's 'total-files' field. This valu
e must be larger than the volume's current 'total-files' value, and can
never be larger than the number of 4KB blocks in the volume. The filer
may actually choose a smaller value so as to comply with certain interna
l accounting and alignment requirements. Once this value has been incre
ased for a volume, it cannot be reduced. Range : [0..2^31-1]
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Force
Indicates whether the filer should reject a legal but "unreasonable" (se
emingly too large) value for 'TotalFiles', or accept it without question
. By default, legal but "unreasonable" values are rejected.
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: volume
API: volume-set-total-files
-------------- Example 1 --------------
C:\PS>Set-NaVolTotalFiles vol10 10000000
Set total-files limit for volume 'vol10' to 10,000,000.
ChecksumStyle : block
CloneChildren :
CloneParent : {clone_vol2clone.2}
ContainingAggregate : aggr1
DiskCount : 8
FilesTotal : 9999998
FilesUsed : 185
IsChecksumEnabled : True
IsInconsistent : False
IsSnaplock : False
IsUnrecoverable : False
MirrorStatus : unmirrored
Name : vol10
PercentageUsed : 64
PlexCount : 1
Plexes : {/aggr1/plex0}
QuotaInit : 0
RaidSize : 16
RaidStatus : raid_dp,sis
Reserve : 10110799872
ReserveRequired : 10110799872
ReserveUsed : 0
Sis : idle
SizeAvailable : 70695948288
SizeTotal : 198073786368
SizeUsed : 127377825792
SnaplockType :
SpaceReserve : none
SpaceReserveEnabled : True
State : online
Type : flex
Uuid : f7b5f966-11b4-11df-9caa-00a09806c227
IsUnrecoverableSpecified : True
PercentageUsedSpecified : True
SpaceReserveEnabledSpecified : True
RELATED LINKS
Get-NaVol
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|