From owner-freebsd-fs@FreeBSD.ORG Mon Dec 6 16:19:36 2010 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 CA25A1065696 for ; Mon, 6 Dec 2010 16:19:36 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from rack.patpro.net (rack.patpro.net [193.30.227.216]) by mx1.freebsd.org (Postfix) with ESMTP id 174ED8FC20 for ; Mon, 6 Dec 2010 16:19:35 +0000 (UTC) Received: from rack.patpro.net (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP id 3C85F1CC036 for ; Mon, 6 Dec 2010 17:00:16 +0100 (CET) X-Virus-Scanned: amavisd-new at patpro.net Received: from amavis-at-patpro.net ([127.0.0.1]) by rack.patpro.net (rack.patpro.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RvCi+YoKOdLx for ; Mon, 6 Dec 2010 17:00:12 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP for ; Mon, 6 Dec 2010 17:00:12 +0100 (CET) From: Patrick Proniewski Content-Type: multipart/signed; boundary=Apple-Mail-4--188600245; protocol="application/pkcs7-signature"; micalg=sha1 Date: Mon, 6 Dec 2010 17:00:12 +0100 Message-Id: <4524EE89-E0A2-4CCF-92F9-80BB709C4BF6@patpro.net> To: freebsd-fs@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: auto-mounting ZFS snapshots 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, 06 Dec 2010 16:19:37 -0000 --Apple-Mail-4--188600245 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello, I'm using freebsd-snapshot to create/destroy a bunch of daily/weekly = snapshots of my ZFS datasets. I would like to make the automount work, so I've configured amd accordingly, but strangely it fails: $ uname -v FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 = root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC $ grep ^amd /etc/rc.conf amd_enable=3D"YES" amd_flags=3D"-a /.am -c 1800 -w 60 -l syslog /snap = /usr/local/etc/amd.map.snap" $ df /snap Filesystem 1K-blocks Used Avail Capacity Mounted on pid82732@rack:/snap 0 0 0 100% /snap $ cat /usr/local/etc/amd.map.snap /defaults type:=3Dprogram * mount:=3D"/usr/local/sbin/snapshot snapshot mount /`echo ${key} | = /usr/bin/sed -e 's;+;/;g'` ${fs}";\ unmount:=3D"/usr/local/sbin/snapshot snapshot umount ${fs}" $ snapshot list /home/patpro Filesystem User User% Snap Snap% Snapshot /home/patpro 748MB 0.1% 1024KB 0.0% daily.5 /home/patpro 748MB 0.1% 1024KB 0.0% weekly.0 /home/patpro 748MB 0.1% 1024KB 0.0% daily.4 /home/patpro 748MB 0.1% 1024KB 0.0% daily.3 /home/patpro 748MB 0.1% 1024KB 0.0% daily.2 /home/patpro 748MB 0.1% 1024KB 0.0% daily.1 /home/patpro 748MB 0.1% 1024KB 0.0% daily.0 few attempts: $ ls -l /snap/home/patpro:daily.0/testawk.sh ls: /snap/home/patpro:daily.0/testawk.sh: Unknown error: 2147483647 $ ls -l /snap/home/patpro:daily.0/testawk.sh ls: /snap/home/patpro:daily.0/testawk.sh: Operation timed out $ ls -l /snap/home+patpro:daily.0/testawk.sh ls: /snap/home+patpro:daily.0/testawk.sh: Unknown error: 2147483647 $ ls -l /snap/home+patpro:daily.0/testawk.sh ls: /snap/home+patpro:daily.0/testawk.sh: Operation timed out Any idea is greatly appreciated. thanks, Patrick --Apple-Mail-4--188600245--