<div dir="ltr">The timestamps in snapshots can change due to the way mtime updates work, but the contents of a snapshot should not change. So the issue comes down to the directory rename operation you did, which definitely should NOT show up in a prior snapshot. Nor should any other additions or deletions. I was not able to reproduce the rename / add / delete issues you reported.<div><br></div><div>It might be due to how you are accessing the snapshot. You are providing a path, such as "/var/hammer/home/andrea/snap-20170406-0957/bin/ ...", but what is 'snap-20170406-0957' ? Is it a softlink to something? Is it a mount?</div><div><br></div><div>Try CD'ing into the snapshot using the TID snapshot format. That is, do a 'hammer snapls' to list available snapshots, then CD into one of them using cd .@@0x<fullsnapshottid>. Then go from there.</div><div><br></div><div><div>-Matt</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 7, 2017 at 4:21 AM, Andrea <span dir="ltr"><<a href="mailto:tech_lists@mail.com" target="_blank">tech_lists@mail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, with help form this list I've set-up my main main workstation and almost ported all my work to DragonFly BSD (thanks!)<br>
<br>
Now I'm moving all my data and but I'm left with one problem I'm not able to sort out: some of the changes to files are propagated in older snapshots! It's obviously impossible so or I've done something horribly wrong during disk set-up or I don't understand how snapshots works.<br>
<br>
The "short" version:<br>
<br>
1) /home/andrea/ is my home directory in a master PFS<br>
2) /home/attic/ is another directory in another master PFS<br>
3) Both PFSs have a snapshot done yesterday.<br>
4) If I add or remove files sometimes changes are not visible in yesterday's snapshots, but sometimes they are.<br>
<br>
As an example, today I've added (added, not modified) this file:<br>
% ls -l /home/attic/disk_stats.txt<br>
-rw-r--r-- 1 andrea wheel 167 Apr 7 11:38 /home/attic/disk_stats.txt<br>
<br>
And I found it in yesterday's snapshot:<br>
% ls -l /var/hammer/home/attic/snap-20<wbr>170406-0957/disk_stats.txt<br>
-rw-r--r-- 1 andrea wheel 167 Apr 7 11:37 /var/hammer/home/attic/snap-20<wbr>170406-0957/disk_stats.txt<br>
<br>
File date in the snapshot is 1 minute earlier than original but the file shouldn't be there at all.<br>
<br>
5) Another example: today I moved a whole directory from /home/attic/ to /home/andrea/ and:<br>
- It disappeared from /home/attic/ yesterday's snapshot<br>
- It appeared in /home/andrea/ yesterday's snapshot<br>
- Files in /home/andrea/ kept the last modify dates while files in the snapshot have the date of the moment I moved the directory<br>
<br>
6) I'm 100% sure I didn't move file directly inside the snapshot directory<br>
<br>
<br>
Some details:<br>
<br>
1) OS version is DragonFly v4.8.0-RELEASE #4<br>
2) Both directories /home/andrea/ and /home/attic/ are mirrored on a second disk.<br>
3) This is the output of snapls and pfs-status for /home/andrea/:<br>
<br>
# hammer snapls /home/andrea/<br>
Snapshots on /home/andrea/ PFS#1<br>
Transaction ID Timestamp Note<br>
0x0000000000000000 2017-04-06 09:57:34 CEST -<br>
<br>
# hammer pfs-status /home/andrea/<br>
/home/andrea/ PFS#1 {<br>
sync-beg-tid=0x000000000000000<wbr>1<br>
sync-end-tid=0x00000001183f03c<wbr>0<br>
shared-uuid=f030302c-1895-11e7<wbr>-b1dd-714d7b6e28cc<br>
unique-uuid=f0303031-1895-11e7<wbr>-b1dd-714d7b6e28cc<br>
label=""<br>
prune-min=00:00:00<br>
operating as a MASTER<br>
snapshots directory defaults to /var/hammer/<pfs><br>
}<br>
<br>
4) Here I find my snapshot for /home/andrea/:<br>
<br>
# ls -l /var/hammer/home/andrea/snap-2<wbr>0170406-0957<br>
lrwxr-xr-x 1 root wheel 33 Apr 6 09:57 /var/hammer/home/andrea/snap-2<wbr>0170406-0957 -> /home/andrea/@@0x0000000000000<wbr>000<br>
<br>
5) The output of snapls and pfs-status for /home/attic/:<br>
<br>
% hammer snapls /home/attic/<br>
Snapshots on /home/attic/ PFS#2<br>
Transaction ID Timestamp Note<br>
0x0000000000000000 2017-04-06 09:57:34 CEST -<br>
<br>
% hammer pfs-status /home/attic/<br>
/home/attic/ PFS#2 {<br>
sync-beg-tid=0x000000000000000<wbr>1<br>
sync-end-tid=0x000000011840a4b<wbr>0<br>
shared-uuid=7bb3b3bc-18ab-11e7<wbr>-9d0e-714d7b6e28cc<br>
unique-uuid=7bb3b3e1-18ab-11e7<wbr>-9d0e-714d7b6e28cc<br>
label=""<br>
prune-min=00:00:00<br>
operating as a MASTER<br>
snapshots directory defaults to /var/hammer/<pfs><br>
}<br>
<br>
6) Here I find my snapshot for /home/attic:<br>
<br>
% ls -l /var/hammer/home/attic/snap-20<wbr>170406-0957<br>
lrwxr-xr-x 1 root wheel 32 Apr 6 09:57 /var/hammer/home/attic/snap-20<wbr>170406-0957 -> /home/attic/@@0x00000000000000<wbr>00<br>
<br>
7) I try to reproduce the problem but everything seems ok:<br>
<br>
I delete a file in my home directory and I still find it in the snapshot:<br>
<br>
$ rm /home/andrea/0<br>
$ ls /home/andrea/0 /var/hammer/home/andrea/snap-2<wbr>0170406-0957/0<br>
ls: /home/andrea/0: No such file or directory<br>
/var/hammer/home/andrea/snap-2<wbr>0170406-0957/0<br>
<br>
Now I add a file in my home directory and I don't find it in yesterday's snapshot:<br>
<br>
$ touch xxx<br>
$ ls -1 /home/andrea/xxx /var/hammer/home/andrea/snap-2<wbr>0170406-0957/xxx<br>
ls: /var/hammer/home/andrea/snap-2<wbr>0170406-0957/xxx: No such file or directory<br>
/home/andrea/xxx<br>
<br>
8) But, I moved a directory in my home directory *today* and I find it in *yesterday's* snapshot:<br>
<br>
% ls -l /home/andrea/bin/ | grep launcher<br>
-rwxr-xr-x 1 andrea wheel 57 Jun 11 2013 ll.urxvt_launcher<br>
<br>
% ls -l /var/hammer/home/andrea/snap-2<wbr>0170406-0957/bin/ | grep launcher<br>
-rwxr-xr-x 1 andrea wheel 57 Apr 7 11:42 ll.urxvt_launcher<br>
<br>
In other words: today I added the whole /bin directory inside my home and I find it in yesterday's snapshot. Files in my home directory have the original dates (2013 in this case) while version in the snapshot have the date of the moment I added the files. As you can see from the output above there's a file dated 2017-04-07 inside the snapshot dated 2017-04-06 which should be impossible<br>
<br>
9) In the source directory the directory disappeared from yesterday's snapshots.<br>
<br>
10) I didn't mess with the snapshot directories directly (I double checked my command history to be sure).<br>
<br>
<br>
I'm completely lost here, any suggestion about what I'm doing wrong or what I can do to diagnose further?<br>
<br>
<br>
Regards,<br>
Andrea<br>
</blockquote></div><br></div>