Freebsd-fs Archive

List Statistics

  • Total Threads: 1437
  • Total Posts: 5631

Phrases Used to Find This Thread

  #1  
16-07-2012 03:40 PM
Freebsd-fs member admin is online now
User
 

Hello list,

Ono our backup machine, I noticed that the old snapshots do not get
deleted. I checked the script that sends snapshots there and it is using
the "-F" flag for "zfs receive" which, according to the man page, should
delete snapshots that do not exist on the sending side.

In my case, it does not. The machines in question are 9-STABLE (around
r236943) exhibiting no problems what so ever. I tried on other machines and
got the same result.

I did a quick test:
zfs create rpool/test
zfs snapshot rpool/test@snap1
zfs snapshot rpool/test@snap2
zfs snapshot rpool/test@snap3
zfs snapshot rpool/test@snap4
zfs send rpool/test@snap1 | ssh -c arcfour ssh backup.local zfs receive -F
backup/test
zfs send -i snap1 rpool/test@snap2 | ssh -c arcfour ssh backup.local zfs
receive -F backup/test
zfs send -i snap2 rpool/test@snap3 | ssh -c arcfour ssh backup.local zfs
receive -F backup/test
zfs destroy rpool/test@snap1
zfs send -i snap3 rpool/test@snap4 | ssh -c arcfour ssh backup.local zfs
receive -F backup/test


I think, snap1 should be deleted at this stage, but it is not. I also tried
sending the initial snapshot with the "-R" flag but the results were the
same.


Is this expected behavior or some bug ?


--
Best regards,
Claudiu Vasadi
_______________________________________________
freebsd- mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-"
)





NewsArc Lists  |  Culture Pages   |  Computing Archive  |  Media-Pages
Link to this page on your blog or website by copying the HTML code below and pasting it into your site: