Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
I have two question about aggregate snapshot
1.How to use power shell to setting aggregate snapshot schedule?
2.how to delete aggregate snapshot by powershell ?
Thanks
Solved! See The Solution
This kb has commands: (Not Poweshell)
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_disable_aggregate_snapshots_in_Clustered_Data_ONTAP_8
You can try these commands for 'aggr0':
From node level:
node> snap sched -A aggr0 0 0 0
node> snap delete -A -a -f aggr0
node> aggr options aggr0 snapshot_autodelete on
On the side note: You can consider taking a snapshot of the working Simulator VM if you want to avoid simulator crashing or running into panic mode due to low rootvol size.
I have not tried your queries in PowerShell but I found few links that might be helpful:
Community - Delete snapshot with powershell
Hi @AllenChang can I ask what you are using aggregate snapshots for and is it for an old array?
NetApp advise "Aggregate Snapshot copies are used only to support the SyncMirror and MetroCluster technologies; they should not be used for data protection purposes."
AFAIK it deprecated "Starting in Data ONTAP 8.3.1, you can no longer create aggregate Snapshot copies using the Data ONTAP command-line interface (CLI). "
Because I use the simulator not a physical hardware,
To avoid the root volume full,
I want maximum the available capacity to root volume,
so I need to reclaim all the available space in aggregate
This kb has commands: (Not Poweshell)
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_disable_aggregate_snapshots_in_Clustered_Data_ONTAP_8
You can try these commands for 'aggr0':
From node level:
node> snap sched -A aggr0 0 0 0
node> snap delete -A -a -f aggr0
node> aggr options aggr0 snapshot_autodelete on
On the side note: You can consider taking a snapshot of the working Simulator VM if you want to avoid simulator crashing or running into panic mode due to low rootvol size.