|
If I try to remove this snapshot, I get told that it forms the basis for another filesystem:
$ zfs destroy storage/Retored@2010.07.28
cannot destroy 'storage/Retored@2010.07.28': snapshot has dependent clones
use '-R' to destroy the following datasets:
storage/bacula
Thus, what I want to try is promoting storage/bacula.
$ sudo zfs promote storage/bacula
Password:
$
That took about 10 seconds. Now look at my snapshots:
$ zfs list -t snapshot
NAME USED AVAIL REFER MOUNTPOINT
storage/bacula@2010.07.27 706G - 3.11T -
storage/bacula@2010.07.28 218K - 2.42T -
As you can see, the snapshots are now storage/bacula@ whereas they were storage/Retored@.
Now let's delete a snapshot:
$ sudo zfs destroy storage/bacula@2010.07.27
Password:
That took about a minute. Now let's check our space:
$ zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
storage 12.7T 6.31T 6.38T 49% ONLINE -
OK, now delete the next snapshot:
$ sudo zfs destroy storage/bacula@2010.07.28
cannot destroy 'storage/bacula@2010.07.28': snapshot has dependent clones
use '-R' to destroy the following datasets:
storage/Retored
That dataset does not contain any data:
$ ls -l /storage/Retored
total 0
So I think I'm safe in just destroying that dataset and then removing that snapshot. But I haven't tried that yet.
|