SOLVED Cannot delete snapshot

Status
Not open for further replies.

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
I have a snapshot that won't be deleted. It is supposed to be held for 2 months, but it's still stuck from october and refuses to be deleted.
This is a replicated dataset and it's the same onthe replicated side.

I have two snapshot tasks on this dataset.
Nr. 1 is every day@02:00 except monday and keep for 1 week
Nr. 2 is every week on monday@02:00 and keep for 2 months

This works fine for another dataset.

Code:
@NAS01:~ % zfs destroy vol01/felles@auto-20141002.1743-1w
cannot destroy snapshots: permission denied


So i learned a new command "zfs holds" and it gives me this:

Code:
@NAS01:~ % zfs holds -r vol01/felles@auto-20141002.1743-1w
NAME                                TAG           TIMESTAMP
vol01/felles@auto-20141002.1743-1w  freenas:repl  Thu Oct  2 17:43 2014


I logged in as SU and did this:

Code:
zfs release -r freenas:repl vol01/felles@auto-20141002.1743-1w


And with that the snapshot was automatically destroyed.

It's still on the pull side, but i assume it will dissapear there to afer replication starts tonight.


What does this mean? Why were it beeing held?

Oh yeah.. and i can't see any of my "2 months" snapshots in "previous versions" in windows...?? I could before and i DO see them for my other datasets....
 
Last edited:

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
Is that the same issue?

Replication now seems to work fine. The snapshot dissapeared on the receiving side too.

However, i still cannot see the weekly (created every monday keep for 2months) snapshots in windows previous versions.

Code:
@NAS01] /mnt/vol01/someuser# zfs list -r -t snapshot -o name,creation  vol01/felles
NAME                                CREATION
vol01/felles@auto-20150310.0200-1w  Tue Mar 10  2:00 2015
vol01/felles@auto-20150311.0200-1w  Wed Mar 11  2:00 2015
vol01/felles@auto-20150312.0200-1w  Thu Mar 12  2:00 2015
vol01/felles@auto-20150313.0200-1w  Fri Mar 13  2:00 2015
vol01/felles@auto-20150314.0200-1w  Sat Mar 14  2:00 2015
vol01/felles@auto-20150315.0200-1w  Sun Mar 15  2:00 2015
vol01/felles@auto-20150316.1033-2m  Mon Mar 16 10:33 2015


So i have one snapshot marked with "2m" left created last night.
In previous versions i can see all snaps except for the last one.

This is another dataset:

Code:
@NAS01] /mnt/vol01/someuser# zfs list -r -t snapshot -o name,creation vol01/ftp
NAME                             CREATION
vol01/ftp@auto-20150119.0200-2m  Mon Jan 19  2:00 2015
vol01/ftp@auto-20150126.0200-2m  Mon Jan 26  2:00 2015
vol01/ftp@auto-20150202.0200-2m  Mon Feb  2  2:00 2015
vol01/ftp@auto-20150209.0200-2m  Mon Feb  9  2:00 2015
vol01/ftp@auto-20150216.0200-2m  Mon Feb 16  2:00 2015
vol01/ftp@auto-20150223.0200-2m  Mon Feb 23  2:00 2015
vol01/ftp@auto-20150302.0200-2m  Mon Mar  2  2:00 2015
vol01/ftp@auto-20150309.0200-2m  Mon Mar  9  2:00 2015
vol01/ftp@auto-20150310.0200-1w  Tue Mar 10  2:00 2015
vol01/ftp@auto-20150311.0200-1w  Wed Mar 11  2:00 2015
vol01/ftp@auto-20150312.0200-1w  Thu Mar 12  2:00 2015
vol01/ftp@auto-20150313.0200-1w  Fri Mar 13  2:00 2015
vol01/ftp@auto-20150314.0200-1w  Sat Mar 14  2:00 2015
vol01/ftp@auto-20150315.0200-1w  Sun Mar 15  2:00 2015
vol01/ftp@auto-20150316.0200-2m  Mon Mar 16  2:00 2015


Same setup here. I do two snapshot tasks.
First every day except monday. Keep 1 week.
Second is every monday onlu. Keep 2 months.

However i can see all of them in previous versions. Why is this not so for the other datasets snapshots?
 
Last edited:

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
So i found out that you now need to choose a snapshot task in your CIFS share config for windows previous versions to be working.
Choosing between my tasks and restarting cifs alows me to see the corresponding snaps.

Now my question is reversed... why then, do the ftp share show snaps from BOTH snapshot tasks?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Now my question is reversed... why then, do the ftp share show snaps from BOTH snapshot tasks?

What do you mean? Are you saying that the "ftp" dataset is used for FTP and for CIFS and in CIFS it shows snaps for both tasks?
 

Sir.Robin

Guru
Joined
Apr 14, 2012
Messages
554
No, it is not used for ftp,. But yes, in cifs (windows previous versions) i can see the snapshots of both tasks at the same time.


Sent from my mobile using Tapatalk
 
Status
Not open for further replies.
Top