From owner-freebsd-geom@FreeBSD.ORG Fri Nov 7 19:21:51 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 369831065676 for ; Fri, 7 Nov 2008 19:21:51 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id F0BF58FC31 for ; Fri, 7 Nov 2008 19:21:50 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.3/8.14.3) with ESMTP id mA7JLoDp003154 for ; Fri, 7 Nov 2008 11:21:50 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.3/8.14.3/Submit) id mA7JLoCq003153 for freebsd-geom@freebsd.org; Fri, 7 Nov 2008 11:21:50 -0800 (PST) (envelope-from sgk) Date: Fri, 7 Nov 2008 11:21:50 -0800 From: Steve Kargl To: freebsd-geom@freebsd.org Message-ID: <20081107192150.GA3007@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: RW and RO semantic and unable to umount a partition? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 19:21:51 -0000 So, I may have done something in the category of "Don't do that!". On node n19, I export /dev/ad4s1e and combine it into a mirror on node n18 with n18's /dev/ad4s1e. On n18 I have /dev/mirror/data, and I've successfully mounted /dev/mirror/data: n18:root[32] mount /dev/mirror/data /data Now, I tried the the following: On n18, I created /etc/gg.exports n18:root[33] cat /etc/gg.exports 192.168.0.17 RW /dev/mirror/data n18:root[34] ggated -v On node n17 (yes, a third system). I do n17:root[08] ggatec create -o rw 192.168.0.18 /dev/mirror/data The above command does not create /dev/ggate0. So, I tried ggatec create -o ro 192.168.0.18 /dev/mirror/data This created the /dev/ggate0 device. Now, the interesting part n17:root[10] mount /dev/ggate0 /mnt n17:root[11] ls /mnt .snap/ fcurra/ kargl/ n17:root[12] umount /mnt umount: unmount of /mnt failed: Operation not permitted n17:root[13] umount -f /mnt umount: unmount of /mnt failed: Operation not permitted Three questions. Why is RW not permitted? Why does umount fail? How the heck to I force umount or the unmounting of /mnt? -- Steve