This post is more than 5 years old
3 Posts
0
43219
March 26th, 2014 05:00
Setting multiple snapshots offline via powershell
We have an issue where the snapshots created by DPM on multiple volumes are not being deleted, I need to delete over 150 snapshots from a volume but need to set them offline first, obviously I can do this via the gui but it would take ages!!
I have found the requred PowerShell commands to set a single snapshot offline but the Set-EqlSnapshot command doesnt accept wildcards and im not a powershell expert, I have looked around the net but cant seem to find an example, I presume I would need to use the 'Get-EqlSnapshot -volumename' command to pipe the returned name of all of the snapshots for that particular volume into the Set-EqlSnapshot command to set them all offline, or something similar?
If anyone could help I would be very grateful, or if there is another way of doing it?
Cheers



Graham Ashmore
3 Posts
0
March 26th, 2014 08:00
Thanks for the info, A colleague and myself actually worked out the powershell commands to set all the snapshots to offline and then we could mass delete, details below:
Get-EqlSnapshot –VolumeName yourvolumename | Set-EqlSnapshot -OnlineStatus offline
Then:
Remove-EqlSnapshot -VolumeName yourvolumename
(this will remove ALL snapshots for given volume!!!)
Use at your own risk!
Regards.
Graham Ashmore
3 Posts
0
March 26th, 2014 06:00
Hey Don,
Thanks for your response, yes we are using firmware version 7.01 with the HIT 4.7 EPA - these snapshots are from an earlier firmware version - I understand there are issues (or by design?) with delete snapshot behaviour.
Im hoping that someone who loves PowerShell can come to my aid! Im amazed that you cant multiple select throguh the GUI to be honest, Im new to using Dell products, so are unfamiliar with the correct way of doing things.
Maybe I should escalate it as a support call to Dell perhaps?
Sean459084
1 Message
0
May 1st, 2014 16:00
To set ALL snapshots offline:
Get-EqlVolume | Get-EqlSnapshot | Set-EqlSnapshot -OnlineStatus offline