Microsoft Virtualization Discussions

How to set aggregate snapshot attribute?

AllenChang
950 Views

I use Get-NCaggr command just can get the information

PS C:\Users\Administrator> Get-Ncaggr aggr0_cluster1_01 |fl


Aggr64bitUpgradeAttributes :
AggregateName : aggr0_cluster1_01
AggregateUuid : 9c2fe28d-32eb-4095-aed9-96e0032dd18b
AggrFsAttributes : DataONTAP.C.Types.Aggr.AggrFsAttributes
AggrInodeAttributes : DataONTAP.C.Types.Aggr.AggrInodeAttributes
AggrOwnershipAttributes : DataONTAP.C.Types.Aggr.AggrOwnershipAttributes
AggrPerformanceAttributes : DataONTAP.C.Types.Aggr.AggrPerformanceAttributes
AggrRaidAttributes : DataONTAP.C.Types.Aggr.AggrRaidAttributes
AggrSnaplockAttributes : DataONTAP.C.Types.Aggr.AggrSnaplockAttributes
AggrSnapmirrorAttributes :
AggrSnapshotAttributes : DataONTAP.C.Types.Aggr.AggrSnapshotAttributes

.....

If I want to see the Aggr Snapshot Reserve,

I can use the command

PS C:\Users\Administrator> Get-Ncaggr aggr0_cluster1_01 | Select-Object -ExpandProperty AggrSnapshotAttributes |Select-Object -ExpandProperty SnapshotReservePercent
5

but If I want to set the SnapshotReservePercent,

How's the command be write ?

 

Thanks

1 ACCEPTED SOLUTION

mbeattie
932 Views

Hi Allen

 

You can use the "Set-NcAggrOption" CmdLet to set the aggregates snapshot percent reserve

 

PS C:\> Set-NcAggrOption -Name aggr1_cluster1 -Key percent_snapshot_space -Value 5

Name                      State       TotalSize  Used  Available Disks RaidType        RaidSize  Volumes
----                      -----       ---------  ----  --------- ----- --------        --------  -------
aggr1_cluster1            online        15.0 GB   28%    10.8 GB  20   raid_dp, normal    20          10

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

1 REPLY 1

mbeattie
933 Views

Hi Allen

 

You can use the "Set-NcAggrOption" CmdLet to set the aggregates snapshot percent reserve

 

PS C:\> Set-NcAggrOption -Name aggr1_cluster1 -Key percent_snapshot_space -Value 5

Name                      State       TotalSize  Used  Available Disks RaidType        RaidSize  Volumes
----                      -----       ---------  ----  --------- ----- --------        --------  -------
aggr1_cluster1            online        15.0 GB   28%    10.8 GB  20   raid_dp, normal    20          10

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public