< Back

Get-NsFilesystem

Sat Jan 18, 2020 5:12 pm

NAME Get-NsFilesystem



SYNOPSIS

Get filesystems for the current controller





SYNTAX

Get-NsFilesystem [-Recurse] [-Detailed] [<CommonParameters>]



Get-NsFilesystem [-Path] <String> [-Recurse] [-Detailed] [<CommonParameters>]





DESCRIPTION

Retrieves one or more filesystems from the connected NexenaStor controller.

If nothing is specified, all filesystems are returned.

If a path is specified, only that filesystem is retrieved.

If Recurse is invoked, all child filsystems from the pool or path are retrieved.

If Detailed is invoked, extended attributes are retrieved for all filesystems matching the request.





PARAMETERS

-Path <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Recurse [<SwitchParameter>]

Invoke to request child filesystems are retrieved



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Detailed [<SwitchParameter>]

Invoke to request extended attributes of the filesystems are retrieved



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Nothing if no matching filesystems are found.

Otherwise, matching Filesystem objects





NOTES





Format-Table defaults to converting bytes to Mb/Gb/Tb



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-Pool | Get-Filesystem -Recurse



name path Available LogicalUsed ActualUsed UsedBySnapshots quotaSize compressionRatio

---- ---- --------- ----------- ---------- --------------- --------- ----------------

p1 p1 28.78 Gb 187.50 Kb 100.45 Mb 0 B 0 B 1

top1 p1/top1 28.78 Gb 12.00 Kb 24.00 Kb 0 B 0 B 1

top2 p1/top2 28.78 Gb 24.00 Kb 48.00 Kb 0 B 0 B 1

top3 p1/top3 28.78 Gb 12.00 Kb 24.00 Kb 0 B 0 B 1

p2 p2 28.78 Gb 124.00 Kb 100.31 Mb 0 B 0 B 1



Get filestsystems for all pools









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-Filesystem p1/top2 -Recurse



name path Available LogicalUsed ActualUsed UsedBySnapshots quotaSize compressionRatio

---- ---- --------- ----------- ---------- --------------- --------- ----------------

top2 p1/top2 28.78 Gb 24.00 Kb 48.00 Kb 0 B 0 B 1

top2/sub1 p1/top2/sub1 28.78 Gb 12.00 Kb 24.00 Kb 0 B 0 B 1



Get named filesystem and all descendants.











RELATED LINKS