From owner-freebsd-current@FreeBSD.ORG Mon Mar 14 07:10:21 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EF36106566B for ; Mon, 14 Mar 2011 07:10:21 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id F030A8FC20 for ; Mon, 14 Mar 2011 07:10:20 +0000 (UTC) Received: by iyj12 with SMTP id 12so5536039iyj.13 for ; Mon, 14 Mar 2011 00:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:in-reply-to :message-id:references:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type; bh=7Q+8XfcOGpFWhbWQwgX5sr8UCu1KVc8EpauGWI+bYbQ=; b=Tc0PAkAkbnUqMNsEIP8ZRQou97gzHUXQWvLi3fyvFazsBT2i9YpQ3VhJiGhRFQtoLf e/GYJlUWD7gCYGePutTCn74Sn9qvb91mXLYv0/QDHC2ZIXujeilD2mEOEDJBeLT6CJNi qFqOiSgMl8Ntiv6eI+WV7BHlHlZzu4ujdTtYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=Qh3xtfrAi+doS2wcLMlSO6BxJoaLzsZGs5KPOYROjVqVv8LUPZMvblmHRqJt0UA896 eMdGTyWQQKhnf455lZFTYgEzHpDdCTmJYb6FXAnFMkYpjQ6lCr9LZsaxxnI/qCaZm31b d6rjpi2IE2t8kZ6Fj0TTK9VD5UVCHtqTldt+8= Received: by 10.42.133.129 with SMTP id h1mr5760224ict.486.1300085089742; Sun, 13 Mar 2011 23:44:49 -0700 (PDT) Received: from disbatch.dataix.local (adsl-99-19-43-28.dsl.klmzmi.sbcglobal.net [99.19.43.28]) by mx.google.com with ESMTPS id 8sm6367889iba.10.2011.03.13.23.44.47 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Mar 2011 23:44:47 -0700 (PDT) Sender: "J. Hellenthal" Date: Mon, 14 Mar 2011 02:44:16 -0400 From: "J. Hellenthal" To: Urankar Mikael In-Reply-To: <20110310131710.GG96225@iut-mir-o.ujf-grenoble.fr> Message-ID: References: <20110310131710.GG96225@iut-mir-o.ujf-grenoble.fr> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Current Subject: Re: ZFSv28, zfs list behaviour and sysutils/freebsd-snapshot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2011 07:10:21 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 10 Mar 2011 08:17, mikael.urankar@ wrote: > Hi, > > I'm using sysutils/freebsd-snapshot to make periodic ZFS backup snapshot > and this soft is broken since the upgrade of my pool to ZFSv28. > After some debugging it appears that "zfs list" behaviour has changed > with ZFSv28, and since freebsd-snapshot relies on "zfs list" to retrieve > the "ZFS file system name" from the "mountpoint name" the soft doesn't > work anymore. > > output of "zfs list" on a 8.2R amd64 (ZFSv15) : > zfs list /home/murankar > NAME USED AVAIL REFER MOUNTPOINT > tank/home/murankar 1.47M 1.59T 1.47M /home/murankar > > zfs list tank/home/murankar > NAME USED AVAIL REFER MOUNTPOINT > tank/home/murankar 1.47M 1.59T 1.47M /home/murankar > > on a 9-Current amd64 I've got no output for "zfs list /home/murankar" > and a exit code of 1 > the output of "zfs list tank/home/murankar" is correct : > NAME USED AVAIL REFER MOUNTPOINT > tank/home/murankar 6,56G 286G 6,55G /home/murankar Looking at the output here I am hoping that this is not hand typed! the character ',' appears in this output which might fool a script into doing other things if it has not been avoided in the first place. If you have upgraded that machine to 9-CURRENT and have sysutils/zfsnap installed I would recommend deleting any snapshots that you have before it runs the snapshot scripts. This assumes that the snapshot script might have changed since you upgraded it and that the snapshot names are different. Better to be on the sane side. See UPDATING/20100929 for reference. # Correct syntax: zfs list pool/dataset1/dataset2 # Incorrect syntax: ( I hope you were hand typing that and missed... ) zfs list /dataset1/dataset2 > > Is it the normal behaviour for ZFSv28 or some kind of regression ? > No its not normal, and some sort of regression possible. Though I usually take regression as performance issues as in speed. Also, pkg-descr freebsd-snapshot is a set of convenience front-end tools to mount(8) and mdconfig(8) for the management of UFS2 snapshots. It is also the under-lying tool used in the periodic snapshot scheduler periodic-snapshot(8) and the mounting/unmouning command in the amd(8) map /usr/local/etc/amd.map.snap. It provides the making, expiring, visiting, mounting and unmounting of filesystem snapshots. pkg-descr zfSnap is simple sh script to make rolling zfs snapshots with cron. Main advantage of zfSnap is that it's written in %100 pure /bin/sh, doesn't require any additional software to run, and is simple to use. zfSnap keeps all information about snapshot in snapshot name. zfs snapshot names are in form: Time-stamp--TTL where time-stamp is date and time of snapshot creation and TTL is Time To Live in human readable form. Did you happen to mix the above two up ? If so then rinse and repeat. Good luck, - -- Regards, J. Hellenthal (0x89D8547E) JJH48-ARIN -----BEGIN PGP SIGNATURE----- Comment: THIS SOFTWARE AND/OR CONTENTS IS PROVIDED BY THE AUTHOR ``AS IS'' AND Comment: ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE Comment: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR Comment: PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY Comment: DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL Comment: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS Comment: OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) Comment: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, Comment: STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING Comment: IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE Comment: POSSIBILITY OF SUCH DAMAGE. iQEcBAEBAgAGBQJNfblYAAoJEJBXh4mJ2FR+5cIH/0csXIcjgGofUFOxVtCjOnnQ NlBo9MCwbq5E7VdGxsLQ1tS56/svUH5b6n/iUjT1Yca/gxGl39jxdwnvLFV8IqxD ahJNcf7vmnwZYILh34jfCCCP8UUl4JEk/huj3fVtV0smjp7obqpx2CuF9EtyRtnh 0tYoiHJberXjzQOO3jrDQhciSqAGjhOL8n8K8bPP28SRWC4l7ujVZX/Av8pXf8TA NnsLOfIOT18tkdr6j69YFCDHazE/Y/qTxfRV6ECgmah2OSlYzaeyF6DjsE2EuHtk bHQ/qTOQ+SJL6wrt13kXdbVX1tPnVuN2Ru7aYBswWPeocEemmqmKEuotmnLXOlQ= =yK0/ -----END PGP SIGNATURE-----