From owner-freebsd-fs@FreeBSD.ORG Mon Jul 16 14:40:21 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AE05106566B for ; Mon, 16 Jul 2012 14:40:21 +0000 (UTC) (envelope-from claudiu.vasadi@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 412258FC0A for ; Mon, 16 Jul 2012 14:40:21 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so10966372pbb.13 for ; Mon, 16 Jul 2012 07:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=REVZ08kqeeXmyvfqLch4Tdqj540mYcO8Y+JwnHXKFnA=; b=qLiRgeAdQbD/a9Qi8eJyT/zlLa4mjQL3qWSA84Eg0ObhDjGaK09jNWvnnrcFdK7Y3i jjg96ohAE1CCA+j8b6m1mcSZ6cbtsUaiNNQcLix8fOgiTbBjixSzZa31l1SfTaKcA+MC LoJwHzqxK5Y7g6yeROYBdx8ToCv+tX3u3RiWgscnLUEsS+NxdY8pOTMrDPzg6URrk+mn E+tFvGpf7+amt8ElU7s9P1ZwO9To8TIwmZCQMemsQMSmZC6QGMymGshzra8t7FAh4d5H ld4sV1nk/RWkzJX8YBb6qPGoW6u6BRGQuu9oBZuBLQDwbSvp9PSYATalJOufohfYH5jb fg1g== MIME-Version: 1.0 Received: by 10.68.130.67 with SMTP id oc3mr27506107pbb.18.1342449620939; Mon, 16 Jul 2012 07:40:20 -0700 (PDT) Received: by 10.66.17.202 with HTTP; Mon, 16 Jul 2012 07:40:20 -0700 (PDT) Date: Mon, 16 Jul 2012 16:40:20 +0200 Message-ID: From: claudiu vasadi To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: "zfs receive -F" not destroying snapshots that do not exist on the sending side X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2012 14:40:21 -0000 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