Skip to content

Add Per Storage Volume Attributes (Space, Autosize, Inode, Language)#71

Merged
rebelinux merged 2 commits intodevfrom
copilot/add-volume-space-attributes
Feb 28, 2026
Merged

Add Per Storage Volume Attributes (Space, Autosize, Inode, Language)#71
rebelinux merged 2 commits intodevfrom
copilot/add-volume-space-attributes

Conversation

Copy link
Contributor

Copilot AI commented Feb 27, 2026

Extends volume reporting to include four additional attribute categories exposed by Get-NcVol but previously unreported.

New Sections (InfoLevel.Vserver ≥ 2)

  • Per Volumes Space Attributes (VolumeSpaceAttributes) — total size, available, used, % used, space guarantee type and enabled state
  • Per Volumes Autosize Attributes (VolumeAutosizeAttributes) — enabled, mode, min/max size, grow/shrink thresholds
  • Per Volumes Inode Attributes (VolumeInodeAttributes) — files total/used/private-used, inode file private/public capacity
  • Per Volumes Language Attributes (VolumeLanguageAttributes) — language, language code, convert/create ucode enabled

Implementation

Four new private functions following existing conventions:

File Function
Get-AbrOntapVserverVolumesSpaceAttr.ps1 Get-AbrOntapVserverVolumesSpaceAttr
Get-AbrOntapVserverVolumesAutosize.ps1 Get-AbrOntapVserverVolumesAutosize
Get-AbrOntapVserverVolumesInodeAttr.ps1 Get-AbrOntapVserverVolumesInodeAttr
Get-AbrOntapVserverVolumesLanguage.ps1 Get-AbrOntapVserverVolumesLanguage

All four sections are called directly inside the existing $InfoLevel.Vserver -ge 2 block in Invoke-AsBuiltReport.NetApp.ONTAP.ps1, alongside the existing QoS section. No conditional existence checks are needed since these attributes are always present on every volume.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add Per Storage Volumes Attributes</issue_title>
<issue_description>

PS /home/rebelinux/Projects> (Get-NcVol Oracle_DB_Storage_vol_1).VolumeSpaceAttributes

ExpectedAvailable                               : 33176526848
FilesystemSize                                  : 33178624000
IsFilesysSizeFixed                              : False
IsSpaceEnforcementLogical                       : False
IsSpaceGuaranteeEnabled                         : True
IsSpaceReportingLogical                         : False
IsSpaceSloEnabled                               : true
LogicalAvailable                                : 
LogicalUsed                                     : 2097152
LogicalUsedByAfs                                : 614400
LogicalUsedBySnapshots                          : 3686400
LogicalUsedPercent                              : 0
MaxConstituentSize                              : 
NcController                                    : 192.168.7.60
OverProvisioned                                 : 0
OverwriteReserve                                : 0
OverwriteReserveRequired                        : 0
OverwriteReserveUsed                            : 0
OverwriteReserveUsedActual                      : 0
PercentageFractionalReserve                     : 0
PercentageSizeUsed                              : 0
PercentageSnapshotReserve                       : 0
PercentageSnapshotReserveUsed                   : 0
PerformanceTierInactiveUserData                 : 
PerformanceTierInactiveUserDataPercent          : 
PhysicalUsed                                    : 2097152
PhysicalUsedPercent                             : 0
Size                                            : 33178624000
SizeAvailable                                   : 33176526848
SizeAvailableForSnapshots                       : 33176526848
SizeTotal                                       : 33178624000
SizeUsed                                        : 2097152
SizeUsedBySnapshots                             : 1482752
SnapshotReserveAvailable                        : 0
SnapshotReserveSize                             : 0
SpaceFullThresholdPercent                       : 98
SpaceGuarantee                                  : none
SpaceMgmtOptionTryFirst                         : volume_grow
SpaceNearlyFullThresholdPercent                 : 95
SpaceSlo                                        : none
ExpectedAvailableSpecified                      : True
FilesystemSizeSpecified                         : True
IsFilesysSizeFixedSpecified                     : True
IsSpaceEnforcementLogicalSpecified              : True
IsSpaceGuaranteeEnabledSpecified                : True
IsSpaceReportingLogicalSpecified                : True
LogicalAvailableSpecified                       : False
LogicalUsedByAfsSpecified                       : True
LogicalUsedBySnapshotsSpecified                 : True
LogicalUsedPercentSpecified                     : True
LogicalUsedSpecified                            : True
OverProvisionedSpecified                        : True
OverwriteReserveRequiredSpecified               : True
OverwriteReserveSpecified                       : True
OverwriteReserveUsedActualSpecified             : True
OverwriteReserveUsedSpecified                   : True
PercentageFractionalReserveSpecified            : True
PercentageSizeUsedSpecified                     : True
PercentageSnapshotReserveSpecified              : True
PercentageSnapshotReserveUsedSpecified          : True
PerformanceTierInactiveUserDataPercentSpecified : False
PerformanceTierInactiveUserDataSpecified        : False
PhysicalUsedPercentSpecified                    : True
PhysicalUsedSpecified                           : True
SizeAvailableForSnapshotsSpecified              : True
SizeAvailableSpecified                          : True
SizeSpecified                                   : True
SizeTotalSpecified                              : True
SizeUsedBySnapshotsSpecified                    : True
SizeUsedSpecified                               : True
SnapshotReserveAvailableSpecified               : True
SnapshotReserveSizeSpecified                    : True
SpaceFullThresholdPercentSpecified              : True
SpaceNearlyFullThresholdPercentSpecified        : True


PS /home/rebelinux/Projects> (Get-NcVol Oracle_DB_Storage_vol_1).VolumeAutosizeAttributes

GrowThresholdPercent            : 90
IncrementPercent                : 
IncrementSize                   : 
IsEnabled                       : True
MaximumSize                     : 17592186044416
MinimumSize                     : 33178624000
Mode                            : grow
NcController                    : 192.168.7.60
Reset                           : 
ShrinkThresholdPercent          : 50
GrowThresholdPercentSpecified   : True
IncrementPercentSpecified       : False
IncrementSizeSpecified          : False
IsEnabledSpecified              : True
M...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

- Fixes AsBuiltReport/AsBuiltReport.NetApp.ONTAP#32

<!-- START COPILOT CODING AGENT TIPS -->
---

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. [Learn more about Advanced Security.](https://gh.io/cca-advanced-security)

Co-authored-by: rebelinux <1002783+rebelinux@users.noreply.github.com>
Copilot AI changed the title [WIP] Add per storage volumes attributes Add Per Storage Volume Attributes (Space, Autosize, Inode, Language) Feb 27, 2026
@rebelinux rebelinux marked this pull request as ready for review February 28, 2026 01:36
@rebelinux rebelinux merged commit 9e5ca13 into dev Feb 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants