From owner-freebsd-geom@FreeBSD.ORG Sun Nov 9 11:50:18 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 7371C1065677 for ; Sun, 9 Nov 2008 11:50:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206045082.chello.pl [87.206.45.82]) by mx1.freebsd.org (Postfix) with ESMTP id C3CB58FC1B for ; Sun, 9 Nov 2008 11:50:16 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 146D245B26; Sun, 9 Nov 2008 12:19:25 +0100 (CET) Received: from localhost (chello087206045082.chello.pl [87.206.45.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C4B6F45684; Sun, 9 Nov 2008 12:19:19 +0100 (CET) Date: Sun, 9 Nov 2008 12:19:17 +0100 From: Pawel Jakub Dawidek To: Steve Kargl Message-ID: <20081109111917.GB2340@garage.freebsd.pl> References: <20081107192150.GA3007@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aM3YZ0Iwxop3KEKx" Content-Disposition: inline In-Reply-To: <20081107192150.GA3007@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: 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: Sun, 09 Nov 2008 11:50:18 -0000 --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 07, 2008 at 11:21:50AM -0800, Steve Kargl wrote: > So, I may have done something in the category of "Don't do that!". >=20 > 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: >=20 > n18:root[32] mount /dev/mirror/data /data >=20 > Now, I tried the the following: >=20 > On n18, I created /etc/gg.exports >=20 > n18:root[33] cat /etc/gg.exports > 192.168.0.17 RW /dev/mirror/data > n18:root[34] ggated -v >=20 > On node n17 (yes, a third system). I do >=20 > n17:root[08] ggatec create -o rw 192.168.0.18 /dev/mirror/data >=20 > The above command does not create /dev/ggate0. So, I tried=20 Because /dev/mirror/data is already open for writting by UFS. If you unmount /data on n18, you will be able to attach /dev/mirror/data on n17 for writting. > ggatec create -o ro 192.168.0.18 /dev/mirror/data >=20 > This created the /dev/ggate0 device. Now, the interesting > part >=20 > 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 >=20 > Three questions. Why is RW not permitted? Why does umount > fail? How the heck to I force umount or the unmounting of /mnt? Not sure why. It might be that file system changed under you (node n18 modified it), so now n17 sees some strange inconsistencies. All in all, you can eigher mount the same file system multiple times read-only OR one time read-write and zero times read-only. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --aM3YZ0Iwxop3KEKx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFJFsc0ForvXbEpPzQRAp+6AJ0VaVHDniS65VE0XWq8ZKJbJ1zn+ACgiv9L 4ZWkEyiDNkfHc/OKcFujHdY= =W/LL -----END PGP SIGNATURE----- --aM3YZ0Iwxop3KEKx--