Understanding GEOM Ranking System
Loren M. Lang
lorenl at alzatex.com
Wed Feb 9 16:43:08 PST 2005
I'm slightly confused on the ranking system use in GEOM as described in
the geom(4) manpage. The wording of the description seems a little
confusing, but the way I understand it is that any geom instance which
has no consumers attached to anything like a disk or acd geom has a rank
of 1. Any geom that does have some of it's consumers attached to a
provider has a rank of the highest ranked geom providing a service to
this geom. For example, a ufs filesystem is running on a raid1
configuration between partition d on slice 1 on disk ad0 mirrored with
slice 2 on disk ad1 (no disklabel on second disk). This makes two disk
geoms for ad0 and ad1 both with rank 1. Each disk geom has a mbr geom
on top of them with rank 2 (max(1)+1). The bsd geom on slice 1 of disk
ad0 has rank 3 (max(2)+1). The mirror geom on top of the bsd geom and
the mbr geom on disk ad1 has a rank of 4 since max(2, 3)+1 = 4. Then a
dev geom on top of the mirror geom has a rank of 5 (max(4)+1). That dev
geom is what is mounted as a filesystem on freebsd. Is this correct?
dev(5) ---> mirror(4) ---> bsd(3) ---> mbr(2) ---> dev(1) ---> ad0
\-------------> mbr(2) ---> dev(1) ---> ad1
--
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.
Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C
More information about the freebsd-geom
mailing list