Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2009 13:34:49 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-geom@freebsd.org
Cc:        freebsd-stable@freebsd.org
Subject:   Re: fsck, glabel and sudden paralellism
Message-ID:  <gt6pkp$hko$1@ger.gmane.org>
In-Reply-To: <49F5DE4B.2070702@icyb.net.ua>
References:  <49F5DE4B.2070702@icyb.net.ua>

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

Andriy Gapon wrote:
> So I recently switched one system to have only (g)labels instead of "ra=
w" device
> names in fstab and noticed that now initial (preen) fsck is performed i=
n parallel
> on couple of filesystems where before it used to be sequential.
>=20
> Here is a lengthy quote from fsck(8):
>> In preen mode, after pass 1 completes, all remaining file systems are
>> checked, in pass number order running one process per disk drive in pa=
r-
>> allel for each pass number in increasing order.
>>
>> In other words: In preen mode all pass 1 partitions are checked sequen=
-
>> tially.  Next all pass 2 partitions are checked in parallel, one proce=
ss
>> per disk drive.  Next all pass 3 partitions are checked in parallel, o=
ne
>> process per disk drive.  etc.
>>
>> The disk drive containing each file system is inferred from the shorte=
st
>> prefix of the device name that ends in a digit; the remaining characte=
rs
>> are assumed to be the partition and slice designators.
>=20
> I think it is highly desirable that fsck knows which filesystems reside=
 on the
> same disk regardless of how they are referred to.
> I think that the simple string matching described above is not sufficie=
nt these days.
> Is there an easy geom way to query this info?

Yes, contents of kern.geom.confxml could be used to walk the tree of
GEOM devices and find what drive they are physically on.


--------------enigB3E61CA7FB3A6D1800CC22EE
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

iEYEARECAAYFAkn26dkACgkQldnAQVacBcjXTQCg6Is7eu1tX3jgNKyvxjGaQzqm
DeoAn2i7pzEjo8jR5GcqONYvzAwGyFSK
=xGvW
-----END PGP SIGNATURE-----

--------------enigB3E61CA7FB3A6D1800CC22EE--




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