I have setup my Freenas box's snapshots wrong, and I now have about 30,000 snapshots that need to be deleted.
Even just listing the snapshots on the CLI takes forever.
It's on a production system, and I ran the following command to try to clear all snapshots:
zfs destroy -r pool/dataset@%
It seemed to be working for a while, but after about an hour, the smb service and the webUI went down. I couldn't type anything into the console, and the only thing the server would do is to respond to pings. I kept it at that state for about 6 hours, but with the office opening in the morning, I had to do a hard reset, which thankfully worked without issue.
Is there any way where I can delete all of the snapshots and start fresh without the system services going down?
I'm at a totally loss. Please help!
Even just listing the snapshots on the CLI takes forever.
It's on a production system, and I ran the following command to try to clear all snapshots:
zfs destroy -r pool/dataset@%
It seemed to be working for a while, but after about an hour, the smb service and the webUI went down. I couldn't type anything into the console, and the only thing the server would do is to respond to pings. I kept it at that state for about 6 hours, but with the office opening in the morning, I had to do a hard reset, which thankfully worked without issue.
Is there any way where I can delete all of the snapshots and start fresh without the system services going down?
I'm at a totally loss. Please help!