I wanted to trash my snapshots yesterday as well; but in the GUI, in just said "working" - I waited like 10 minutes and then closed the dialog. Then I fired
Code:
zfs destroy pool2/backup"
, which held all the unwanted snapshots (coming from periodic sync from pool1). The pool2 was still visible with all those datasets in the GUI, so I dismounted it from GUI and then wanted to re-import the volume (e.g. pool). But the disks were not selectable! So I rebooted and tried again: nothing, the pool was gone.. The whole idea was to get rid of the snapshots synced from pool1.
The interesting point is from
@cyberjock - that the synced snapashots scheme can somehow break the things if you manually delete the snapshots. I didn't find so far nothing related to this, but it seems be very true. I tried to delete manually the synced pool2 snapshots (e.g. the copies), of course the sync was not running in that time. And I ended up with a broken pool.
Situation:
- pool1 is source
- pool2/sync is sync destination
- pool1 was reorganized heavily, which caused very big snaphots
- pool2 is a bit smaller than pool1 so I wanted to clean-up the unneeded snapshots, keeping snapshots from pool1 for a moment
- both pool1/2 are encrypted
FreeNAS behavior:
- Clicking "destroy" on pool2/backup froze up in "waiting" (or loading or something like that)
- manually destroying poo2/backup went smoothly, but GUI was still showing it
- trying to "detach" pool2 in GUI (I guess it's an "export") went ok but GUI didn't show the disks in "import volume"
A bit scary for me; it seems if the GUI is not responding and I solve it from console, pool can be gone like magic. But what to do if the GUI just stops responding also after the reboot?