Newbie gmirror questions
Dino Vliet
dino_vliet at yahoo.com
Sat Jan 16 18:21:38 UTC 2010
Forwarded Message: Newbie gmirror questions
Newbie gmirror questions
Saturday, January 16, 2010 12:34 AM
From:
"Mike Clarke" <jmc-freebsd2 at milibyte.co.uk>
To:
freebsd-questions at freebsd.org
I'm about to upgrade to more disk space and I'm tempted use this as an
opportunity to get two disks and implement gmirror. Before I go ahead
there's a few aspects of mirroring I'm not sure about and would
appreciate some advice.
I'm using grub for multi booting. Does this introduce any problems if I
want to boot into Windows or Linux on one of the other partitions?
The gmirror manpage describes the procedure for handling kernel dumps
using the prefer balance algorithm in the early stages of booting and
then switching to round-robin in the /etc/rc.local script. It then goes
on to say that "If on the next boot a component with a higher priority
will be available, the prefer algorithm will choose to read from it and
savecore(8) will find nothing". Does this only arise if I've made some
change to the configuration of the mirror between the dump and the
reboot or is there some instances when the priority automatically
changes?
Some of the articles I've read about gmirror suggest setting the balance
to round-robin while others just leave this at the default setting of
split. Am I right in assuming that round-robin would give better
performance, and does it make much noticeable difference in real terms.
In particular am I likely to see a reduction in performance using
gmirror compared with what I would get with just a normal single disk.
Finally, recent articles say to set kern.geom.debugflags to 17 when
creating a mirror on a mounted drive while older articles say to set it
to 16. Although I'll probably be creating the mirror on my disks before
copying my system onto them so I don't really need to worry about
setting this flag but I'm curious to know the difference between using
the two values.
--
Mike Clarke
******************
Hi Mike,
I' ve just (ok, two weeks ago) completed a gmirror setup so can tell about what I know about this process However, my setup is not the same as yours because I' m not in a multi boot situation. I let others give their opinion regarding GRUB.
I do guess that your OS-es are on a separate disk and in FreeBSD you will create a mirror with the two identical disks using gmirror. I've used round-robin because that's what the handbook suggested.
I used kern.geom.debugflags = 17 because I looked at the handbook and guessed the other articles which suggested 16 were not up to date and it worked flawlessly.
BrgdsDino
More information about the freebsd-questions
mailing list