Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2010 17:00:12 +0100
From:      Patrick Proniewski <patpro@patpro.net>
To:        freebsd-fs@freebsd.org
Subject:   auto-mounting ZFS snapshots 
Message-ID:  <4524EE89-E0A2-4CCF-92F9-80BB709C4BF6@patpro.net>

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4524EE89-E0A2-4CCF-92F9-80BB709C4BF6>