misc/169964: "zfs receive -F" not destroying snapshots that do not exist on the sending side

Claudiu Vasadi claudiu.vasadi at gmail.com
Wed Jul 18 09:00:26 UTC 2012


>Number:         169964
>Category:       misc
>Synopsis:       "zfs receive -F" not destroying snapshots that do not exist on the sending side
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 18 09:00:25 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Claudiu Vasadi
>Release:        9-STABLE r236943
>Organization:
>Environment:
FreeBSD backup.local 9.0-STABLE FreeBSD 9.0-STABLE #0 r236943: Tue Jun 12 10:08:34 CEST 2012     root at backup.local:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When sending snapshots to another machine with "zfs receive -F" the snapshots that no longer exist on the sending side, do not get deleted on the receiving side.
>How-To-Repeat:
Something like this would do:

zfs create rpool/test
zfs snapshot rpool/test at snap1
zfs snapshot rpool/test at snap2
zfs snapshot rpool/test at snap3
zfs snapshot rpool/test at snap4
zfs send rpool/test at snap1 | ssh -c arcfour ssh backup.local zfs receive -F backup/test
zfs send -i snap1 rpool/test at snap2 | ssh -c arcfour ssh backup.local zfs receive -F backup/test
zfs send -i snap2 rpool/test at snap3 | ssh -c arcfour ssh backup.local zfs receive -F backup/test
zfs destroy rpool/test at snap1
zfs send -i snap3 rpool/test at snap4 | ssh -c arcfour ssh backup.local zfs receive -F backup/test

PS: Makes no difference if one uses the "-R" flag for "zfs send" or not.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list