Freenas 8.3.1 howto cleanup replicated snapshots

Status
Not open for further replies.

chriswal999

Cadet
Joined
Jan 21, 2014
Messages
2
Hi,
how can i clean up replicated snaphots?
they are not removed after there lifetime, and the storage is full.
So replication fails for new snapshots.
 

Dusan

Guru
Joined
Jan 29, 2013
Messages
1,165
Hi,
how can i clean up replicated snaphots?
If you configure your replication task with the Recursively replicate option it will also automatically destroy all snapshots on the destination that do not exist on the source. This works even if you replicate one dataset and there is nothing to do recursively.

If you want to destroy the snapshots manually you can use the ZFS Snapshots view in the GUI (http://doc.freenas.org/index.php/Periodic_Snapshot_Tasks) -- it allows you to view / filter & destroy the snapshots.
If you want to use the CLI you can run:
[panel]zfs destroy %snapname[/panel]It will destroy all snapshots older than and including snapname. The automatic snapshots are named <dataset_name>@auto-<date>-<expiration>. You can run "zfs list -t snapshot" to get list of all snapshots.
 

chriswal999

Cadet
Joined
Jan 21, 2014
Messages
2
thx that helped.

i wanted to have more snapshots on the replicated system as on the productive.

i had to enter zfs destroy <dataset_name>@%auto-<date>-<expiration> to delete the old snapshots.


thx a lot this saved my day :smile:
 
Status
Not open for further replies.
Top