Date: Sat, 18 Sep 2010 02:14:48 -0500 From: Brandon Gooch <jamesbrandongooch@gmail.com> To: perryh@pluto.rain.com Cc: amvandemore@gmail.com, freebsd-questions@freebsd.org Subject: Re: sysinstall vs gmirror Message-ID: <AANLkTimW64zetEoFi7Or1sP8zggmqWyKunmVEzGJi8%2Bv@mail.gmail.com> In-Reply-To: <4c945a3f.3BNAtV%2BUuZ%2BM1RW2%perryh@pluto.rain.com> References: <4c83190a.SG%2BLIhPWaGtmaaeL%perryh@pluto.rain.com> <4C835474.7060707@infracaninophile.co.uk> <4c8487cc.Rh42YL91jTIv09e0%perryh@pluto.rain.com> <4c84ce46.sHyLaI%2BH%2BUzM%2BJ/y%perryh@pluto.rain.com> <4c8c5260.%2BCOCCpHgloxRSY2/%perryh@pluto.rain.com> <4C8CD2A4.3020203@infracaninophile.co.uk> <4c8da53d.pPK/NzHAHPlQPOfh%perryh@pluto.rain.com> <AANLkTimJ-fidbrRPYGynHLQj1-1nqo=-byo9zxXCK049@mail.gmail.com> <4c943b69.bsyYirMmUuB/1m0g%perryh@pluto.rain.com> <AANLkTimK=y-V0sBt-Z3LqOBi9KSEABSATdYdFNC5ZruZ@mail.gmail.com> <4c945a3f.3BNAtV%2BUuZ%2BM1RW2%perryh@pluto.rain.com>
index | next in thread | previous in thread | raw e-mail
On Sat, Sep 18, 2010 at 1:20 AM, <perryh@pluto.rain.com> wrote:
> Adam Vande More <amvandemore@gmail.com> wrote:
[SNIP]
> The question is, how do I go about partitioning gm0 from Fixit?
> I've seen nothing so far that describes how to go about creating
> multiple partitions on a gmirror (or on anything else, for that
> matter) without either using sysinstall or having to understand
> gpart.
I've used something like this from the Fixit console (using /dev/ad0
as an example):
Fixit# kldload /dist/boot/kernel/geom_mirror.ko
Fixit# gmirror -v -b round-robin gm0 /dev/ad0
Fixit# fdisk -v -B -I /dev/mirror/gm0
Fixit# bsdlabel -w -B /dev/mirror/gm0s1
Partition with:
# bsdlabel -e /dev/mirror/gm0s1
Create a UFS file system (with Soft Updates):
Fixit# newfs -U /dev/mirror/gm0s1a
Mount the newly created file system:
Fixit# mount /dev/mirror/gm0s1a /mnt
...then follow one of the procedures for doing a "manual" install from
fixit, e.g.
Fixit# cd /dist/8.1-*
Fixit# export DESTDIR=/mnt
Fixit# for dir in base catpages dict doc games info lib32 manpages ports; \
do (cd $dir ; ./install.sh) ; done
Fixit# cd src ; ./install.sh all
Fixit# cd ../kernels ; ./install.sh generic
Fixit# cd /mnt/boot ; cp -Rlp GENERIC/* /mnt/boot/kernel/
[taken from http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror]
> OK, given the system's age I will presume that it is not, thus
> (I suppose) no reason to deal with gpart.
I've used GPT partitioning on all of my machines, ranging from a
circa-2000 Toshiba Pentium 3 junker to a new i7 Quad Core beast. No
problem so far, and it is a lot more logical (IMHO) than the
fdisk/bsdlabel method. Also, the "manual" installation method
demonstrated above hasn't failed me yet.
Having stated all of this, I will say that I spent time reading the
handbook, quite a few man pages, and a a wiki article here and there
-- and I still feel only slightly more comfortable than I did after my
first successful attempt! It is starting to "come together" for me
now, finally :)
Well, I hope this helps you get unstuck...
Good Luck!
-Brandon
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimW64zetEoFi7Or1sP8zggmqWyKunmVEzGJi8%2Bv>
