<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">This is an issue I've reported: <a href="http://bugs.dragonflybsd.org/issues/2915">http://bugs.dragonflybsd.org/issues/2915</a></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;font-size:small">My way around this is to create the new master and use cpdup to copy the PFS slave to it.</div><div><div dir="ltr" class="gmail_signature"><div><br></div>Tim</div></div><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 29, 2018 at 6:22 AM Aleksej Lebedev <<a href="mailto:root@zta.lk">root@zta.lk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
Recently my 5T hard drive broke. It contained among other things a <br>
master PFS that was backed up to a remote host.<br>
<br>
I replaced broken hard drive, formatted it and run hammer mirror-copy <br>
from the remote pfs. After that I upgraded the freshly copied PFS to <br>
master<br>
and now I can't set up the backup process again. The command "hammer <br>
mirror-stream" simply doesn't do anything.<br>
<br>
Both my new master PFS and old backup seem to work OK and I can even <br>
mirror-stream from them to other places. But I can't mirror-stream from <br>
master to slave.<br>
I checked sync-end-tid on both of them and noticed that for some reason <br>
the TID of my new master is a bit behind the one on my slave.<br>
<br>
So I guess I somehow a few changes from my backup were not commited to <br>
my new harddrive. The problem is I already upgraded this PFS to master <br>
and even made some changes on it (just for testing, I don't mind loosing <br>
them).<br>
<br>
I realize that I can easily delete the master PFS, re-mirror it again <br>
from my backup and make sure it has the same sync-end-tid before <br>
upgrading it to master, but I would like to avoid it because the PFS is <br>
very large.<br>
<br>
My question: is it possible to roll-back a PFS (master or slave) a few <br>
transactions back?<br>
<br>
I noticed that "hammer pfs-update" allows to simply change sync-end-tid, <br>
but since I don't understand what it is made for I am in doubt. <br>
Especially because the man page states "Manually modifying this field is <br>
dangerous and can result in a broken mirror."<br>
<br>
Is there a way to roll-back a PFS or I have to re-mirror it from my <br>
backup again?<br>
<br>
(I also now that I can do a local mirror-stream from my new master to <br>
separate PFS, stop it right before the end and then finish mirroring <br>
from my backup, but I it requires a lot of copying anyway, though local <br>
is better than remote, which I would like to avoid.)<br>
<br>
-- <br>
Aleksej Lebedev<br>
</blockquote></div></div>