From owner-freebsd-fs@FreeBSD.ORG Sun Apr 12 03:52:07 2009 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 17D94106566C for ; Sun, 12 Apr 2009 03:52:07 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from mail.jrv.org (rrcs-24-73-246-106.sw.biz.rr.com [24.73.246.106]) by mx1.freebsd.org (Postfix) with ESMTP id BA1458FC12 for ; Sun, 12 Apr 2009 03:52:06 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from kremvax.housenet.jrv (kremvax.housenet.jrv [192.168.3.124]) by mail.jrv.org (8.14.3/8.14.3) with ESMTP id n3C3TbbM001217 for ; Sat, 11 Apr 2009 22:29:37 -0500 (CDT) (envelope-from james-freebsd-fs2@jrv.org) Authentication-Results: mail.jrv.org; domainkeys=pass (testing) header.from=james-freebsd-fs2@jrv.org DomainKey-Signature: a=rsa-sha1; s=enigma; d=jrv.org; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: content-type:content-transfer-encoding; b=RZT1d3Jtiaaqs+lcx7ZRlEJiCDm6J47s1UYDP7P3b56PELUayAhKcfGQXF+Xt+adH 1BVOUW9/cIvI3QLxRYp6iVsWEfJyszcS2ySiTKMz47pTtAxOj3TCi1OdZsnggLtx5cB XBL6pGxVnDpozfisXkrwXj81lujylvKcbxRUu9Y= Message-ID: <49E16021.6040900@jrv.org> Date: Sat, 11 Apr 2009 22:29:37 -0500 From: "James R. Van Artsdalen" User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: turning off ZFS mountpoint property behavior? 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: Sun, 12 Apr 2009 03:52:07 -0000 Is there a knob to turn off ZFS's mounting of filesystems based on the mountpoint property? It is most unhelpful when receiving replicas of filesystems to have a received snapshot suddenly mounted over /usr. I have two systems "prime" and "subprime", both of which have a large ZFS pool and a small UFS partition for maintenance. They are essentially the same except that /boot/loader.conf boots one into ZFS and the other into UFS. "prime" is the operational server using ZFS. "subprime" is essentially a hot spare booting UFS whose ZFS pool is to be kept in sync with the pool on "prime" sync zfs send/recv replication. Should the pool on "prime" fail, /boot/load.conf on "subprime" can be changed to boot its ZFS pool and the server is quickly available again, at the last snapshot replicated. Unfortunately when zfs recv runs and it receive a filesystem with property mountpoint=/usr it mounts that filesystem there. That's not desirable in my situation nor I suspect many others. Is there a sysctl or some other way to disable the automatic mount behavior?