Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2008 17:51:46 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-geom@freebsd.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: gjournal & fsck
Message-ID:  <g96hii$em7$1@ger.gmane.org>
In-Reply-To: <2b5f066d0808280803ibca3f61xbb167bce384f228@mail.gmail.com>
References:  <2b5f066d0808280705y3454c188v768efe46b388864b@mail.gmail.com>	<g96d2h$sp2$1@ger.gmane.org>	<2b5f066d0808280743g69c32d1rd30aee0ca276125@mail.gmail.com>	<g96e22$1l7$1@ger.gmane.org> <2b5f066d0808280803ibca3f61xbb167bce384f228@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0AC348193C0055E248E3DFF2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Brian McCann wrote:
> On Thu, Aug 28, 2008 at 10:51 AM, Ivan Voras <ivoras@freebsd.org> wrote=
:
>> Does gjournal complain about your drive, for example that it doesn't
>> support BIOFLUSH?
>=20
> Actually yes...I meant to post them in my last message, but hit send
> too early...here's my output from boot (from dmesg.boot)
>=20
> GEOM_JOURNAL: Journal 478661671: da1 contains data.
> GEOM_JOURNAL: Journal 478661671: da1 contains journal.
> GEOM_JOURNAL: Journal da1 clean.
> (da1:mly0:4:1:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
> (da1:mly0:4:1:0): CAM Status: SCSI Status Error
> (da1:mly0:4:1:0): SCSI Status: Check Condition
> (da1:mly0:4:1:0): ILLEGAL REQUEST asc:24,0
> (da1:mly0:4:1:0): Invalid field in CDB
> (da1:mly0:4:1:0): Unretryable error
> GEOM_JOURNAL: BIO_FLUSH not supported by da1.
> GEOM_JOURNAL: Journal 3065355517: da2 contains data.
> GEOM_JOURNAL: Journal 3065355517: da2 contains journal.
> GEOM_JOURNAL: Journal da2 clean.
> (da2:mly1:4:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
> (da2:mly1:4:0:0): CAM Status: SCSI Status Error
> (da2:mly1:4:0:0): SCSI Status: Check Condition
> (da2:mly1:4:0:0): ILLEGAL REQUEST asc:24,0
> (da2:mly1:4:0:0): Invalid field in CDB
> (da2:mly1:4:0:0): Unretryable error
> GEOM_JOURNAL: BIO_FLUSH not supported by da2.

>> Also, did fsck actually do something when it was started (did it find
>> anything corrupted)?
>>
> No...it didn't find anything wrong / anything to fix.  (and one of the
> file systems was being written to at the time...so at least journaling
> appears to be working)  Something else I noticed...Manolis' article
> says it should say "journal xxxx consistent"...whereas mine says
> "Journal xxxx clean".  I don't know what the differences mean, or what
> the BIO_FLUSH means...but I'm hoping you can tell me. :)

Ok, this is most probably the cause of your fsck. BIO_FLUSH is a
catch-all name for operations that synchronize (commit) the drive and
controller caches. It is used to synchronize the file system state after
it's been committed from the journal - if BIO_FLUSH succeeds the data is
guaranteed (or should be guaranteed) by hardware that it's safely
written. Since your controller doesn't support it you have a problem
here. Your best bet is to ask the author of the driver for your
controller (according to the "mly" man page this is Michael Smith
<msmith@FreeBSD.org>) if he knows anything that can help you here (maybe
the driver simply needs to implement it or fix it).

Other than that, you might disable write caching on your controller.
This should significantly reduce the cases where fsck would need to be
called on reboot, but probably not eliminate them completely. It will
also slow down the commit operation (from the journal to the active file
system) but if the server doesn't constantly write to the file system it
 won't be a big problem.




--------------enig0AC348193C0055E248E3DFF2
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 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki2yZIACgkQldnAQVacBcgtWwCgyV58q9PNCyz4blM71NALZj5p
h04An3IooHWDOzH9XZORuM/ZZjKFti8E
=dYtV
-----END PGP SIGNATURE-----

--------------enig0AC348193C0055E248E3DFF2--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?g96hii$em7$1>