Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2012 08:50:26 GMT
From:      Claudiu Vasadi <claudiu.vasadi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/169964: "zfs receive -F" not destroying snapshots that do not exist on the sending side
Message-ID:  <201207180850.q6I8oQAH071128@red.freebsd.org>
Resent-Message-ID: <201207180900.q6I90PT2099383@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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

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


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207180850.q6I8oQAH071128>