From owner-freebsd-fs@FreeBSD.ORG Fri Mar 30 00:48:41 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E291116A403 for ; Fri, 30 Mar 2007 00:48:41 +0000 (UTC) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 8A4B013C44B for ; Fri, 30 Mar 2007 00:48:41 +0000 (UTC) (envelope-from nb_root@videotron.ca) Received: from clk01a ([24.202.150.69]) by VL-MO-MR004.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0JFO008S4VH4PN00@VL-MO-MR004.ip.videotron.ca> for freebsd-fs@freebsd.org; Thu, 29 Mar 2007 19:48:40 -0400 (EDT) Date: Thu, 29 Mar 2007 19:48:34 -0400 From: Nicolas Blais To: freebsd-fs@freebsd.org Message-id: <200703291948.40100.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart4355290.nCFbbvuQQ5; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit User-Agent: KMail/1.9.6 Subject: gjournal questions 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: Fri, 30 Mar 2007 00:48:42 -0000 --nextPart4355290.nCFbbvuQQ5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I've posted this here since this is probably the place to get an answer :)= =20 I've been experimenting with gjournal with the hopes of using it in my new= =20 multi-TB server (SuperMicro 5015M-NTB) . I have several questions, hopefull= y=20 someone can help me out (long read though!). 1. I simulated a crash (hard power-off while transfering files). When I=20 rebooted, I got the following on my console: ad0: 78167MB at ata0-master UDMA133 acd0: DVDR at ata1-master UDMA33 ad4: 76319MB at ata2-master SATA150 ad6: 76319MB at ata3-master SATA150 ad10: 76319MB at ata5-master SATA150 GEOM_JOURNAL: Journal 2822006383: ad10s1 contains data. GEOM_JOURNAL: Journal 2822006383: ad10s1 contains journal. GEOM_JOURNAL: Journal ad10s1 clean. acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00 sks=3D0x40 0= x00 0x01 ar0: 76293MB status: READY ar0: disk0 READY (master) using ad4 at ata2-master ar0: disk1 READY (mirror) using ad6 at ata3-master WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted WARNING: R/W mount of /mnt/journaled denied. =A0Filesystem is not clean - r= un=20 fsck Only /mnt/journaled (ad10s1.journal) is gjournaled. Why doesn't fsck, which= is=20 running in background mode by now, check my /mnt/journaled and tag it clean= ?=20 I have to manually fsck /dev/ad10s1.journal and manually remount it. This i= s=20 a no-go because I want my system to be able to run without the helps of us,= =20 bipeds even in the event of a crash :). /usr and /var where fsck'ed in=20 background as expected. Therefore, is it possible to make a crash recovery with gjournal without th= e=20 need of humains? Can I boot from a crash, with background_fsck=3D"NO" and s= till=20 mount the journaled FS? 2. Since my new server will require a fresh installation, can I set up my=20 gjournal slices from within sysinstall by choosing "Custom NewFS" and putti= ng=20 the -J option in there? Will that load the gjournal module? What is the=20 correct way to implement gjournal (and if possible with gmirror) from a fre= sh=20 start? 3. From gjournal(8) man page: "It is not recommended to use gjournal for sm= all=20 file systems (e.g.: only few gigabytes big)." How much is a "few"? Is it <= =20 10gb? <50gb? I intend to use gjournal on /var (10gb), /usr (100gb), /home=20 (1tb) and some misc mounts. (~25-100gb). 4. I'm thinking of using gmirror instead of my MB's onboard raid. I found f= rom=20 previous posts that I can mount async, disable soft-updates and that for=20 simplicity it would be better to mirror the whole drive instead of slices=20 (which is what I'm intending to do). Anything else I could use/know about=20 using gmirror and gjournal?=20 Thank you VERY MUCH for your help. Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #18: Sun Mar 25 16:03:50 EDT 2007 =20 nicblais@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://plaintext.clkroot.net/security/nb_root.asc --nextPart4355290.nCFbbvuQQ5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGDFBS4wTBlvcsbJURAlyRAJ9LGemZXaE1TVVUbt5ubDX5RnVOlQCggOiD LpDSTu3/CCy5v7NZH3VRBUU= =In9E -----END PGP SIGNATURE----- --nextPart4355290.nCFbbvuQQ5--