From owner-freebsd-questions@FreeBSD.ORG Sun Jul 19 10:21:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73B0D106566B for ; Sun, 19 Jul 2009 10:21:25 +0000 (UTC) (envelope-from acc@hexadecagram.org) Received: from mail.itproficiency.com (hexadecagram.org [166.70.126.65]) by mx1.freebsd.org (Postfix) with ESMTP id 2F8358FC1F for ; Sun, 19 Jul 2009 10:21:24 +0000 (UTC) (envelope-from acc@hexadecagram.org) Received: from localhost (mail.hexadecagram.org [192.168.133.11]) by mail.itproficiency.com (Postfix) with ESMTP id 7D2EFDED179; Sun, 19 Jul 2009 04:03:00 -0600 (MDT) X-Virus-Scanned: amavisd-new at itproficiency.com Received: from mail.itproficiency.com ([192.168.133.11]) by localhost (mail.itproficiency.com [192.168.133.11]) (amavisd-new, port 10024) with LMTP id nK8+vJvKXwZK; Sun, 19 Jul 2009 04:02:48 -0600 (MDT) Received: from ares.aegaeum.hexadecagram.org (ares.aegaeum.hexadecagram.org [192.168.133.220]) by mail.itproficiency.com (Postfix) with ESMTPSA id E052CDED169; Sun, 19 Jul 2009 04:02:47 -0600 (MDT) Message-ID: <4A62EF41.50702@hexadecagram.org> Date: Sun, 19 Jul 2009 04:02:41 -0600 From: Anthony Chavez Organization: hexadecagram.org User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4A62E0CE.1000508@hexadecagram.org> In-Reply-To: <4A62E0CE.1000508@hexadecagram.org> X-Enigmail-Version: 0.95.7 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig234791EE5D92A1F1E131CC2B" Cc: freebsd-fs@freebsd.org Subject: Re: Re-starting a gjournal provider X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2009 10:21:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig234791EE5D92A1F1E131CC2B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm moving this discussion to freebsd-questions, which is probably a more suitable forum (if not freebsd-geom). I apologize for the intrusion and the subsequent crosspost. Anthony Chavez wrote: > Hello freebsd-fs, >=20 > I'm trying to get gjournal working on a "removable" hard disk. I use > the term loosely, because I'm using a very simple eSATA enclosure: an > AMS Venus DS5 [1]. >=20 > If I swap out disks, atacontrol cap ad0 seems sufficient enough to > detect the new drive: the reported device model, serial number, firmwar= e > revision, and CHS values change as one would expect. >=20 > My interpretation of [2] section 5.3 and gjournal(8) is that the > following sequence of commands should ensure me that all write buffers > have been flushed and bring the system to a point where it is safe to > remove a disk. >=20 > sync; sync; sync > gjournal sync > umount /dev/ad0s1.journal > gjournal stop ad0s1.journal >=20 > However, once they are executed, /dev/ad0s1.journal disappears and when= > I swap out the disk it doesn't come back. The only way I've found to > bring it back is atacontrol detach ata0; atacontrol attach ata0, which > doesn't seem like a wise thing to do if I have another device on the > same channel. >=20 > My question is, do I need to issue gjournal stop before I swap disks? > And if so, is there any way that I can avoid the atacontrol > detach/attach cycle that would need to take place before any mount is > attempted so that /dev/ad0s1.journal appears (if in the drive inserted > at the time does in fact utilize gjournal; I may want to experiment wit= h > having disks with either gjournal or soft updates)? >=20 > And while I'm on the subject, are the (gjournal) syncs commands > preceeding umount absolutely necessary in the case of removable media? >=20 > [1] http://www.american-media.com/product/external/ds/ds.html >=20 > [2] http://www.freebsd.org/doc/en/articles/gjournal-desktop/article.htm= l --=20 Anthony Chavez http://hexadecagram.org/ mailto:acc@hexadecagram.org xmpp:acc@hexadecagram.org --------------enig234791EE5D92A1F1E131CC2B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpi70UACgkQbZTbIaRBRXFNmACfSPbcLIFuAnd+iDj6ucfoQKCN 3NIAn3FC5g4vTyCwwfnjgl1bRqRWndLa =Z962 -----END PGP SIGNATURE----- --------------enig234791EE5D92A1F1E131CC2B--