freenas:state LATEST

Status
Not open for further replies.

alexg

Contributor
Joined
Nov 29, 2013
Messages
197
Can someone explain what this does in autorepl.py script. I'm having an issue with automated replication (bug has been logged) after upgrading to 9.2.1.3 . Manual replication worked and I think I need to mark it as LATEST (at least that's what I see in /var/log/messages before upgrade)
 
D

dlavigne

Guest
Were you able to find an answer to this? If not, can you add a comment to your bug report that asks this question?
 

alexg

Contributor
Joined
Nov 29, 2013
Messages
197
I gave up and followed suggestion to install latest autorepl.py. Have been running without any issues.
 

alexg

Contributor
Joined
Nov 29, 2013
Messages
197
BTW, in case anyone interested, I did some more digging and figured out what it does. Looks like it sets custom property freenas:state to NEW when snapshot is taken. Then on replication it sets that property to LATEST. I found it by looking into zfs history

Code:
2014-04-18.04:00:06 zfs snapshot -r -o freenas:state=NEW tank/shares@auto-20140418.0400-3w
2014-04-18.05:01:28 zfs send -V -R -I tank/shares@auto-20140417.0400-3w tank/shares@auto-20140418.0400-3w
2014-04-18.05:01:29 zfs inherit freenas:state tank/shares@auto-20140417.0400-3w
2014-04-18.05:01:34 zfs set freenas:state=LATEST tank/shares@auto-20140418.0400-3w
 
Status
Not open for further replies.
Top