Date: Fri, 13 May 2011 22:34:20 -0500 (CDT) From: Greg Rivers <gcr+freebsd-geom@tharned.org> To: Lucas Reddinger <lucas@wingedleopard.net> Cc: freebsd-geom@freebsd.org Subject: Re: Simple question regarding GPT and UFS for data only Message-ID: <alpine.BSF.2.00.1105132216340.62950@roadkill.tharned.org> In-Reply-To: <BANLkTinhvsfJxt7fOjB7cSPzL7_TPyO5jw@mail.gmail.com> References: <BANLkTinhvsfJxt7fOjB7cSPzL7_TPyO5jw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13 May 2011, Lucas Reddinger wrote: > Hi everyone, > > I can't find assurance in the man pages that I'm doing this correctly, > so I'd greatly appreciate confirmation or correction. > > I have two 3 TB disks, which I want to mirror. I then want a single UFS > for /usr/home. > > Here is what I did: > gmirror label -vb round-robin gm0 /dev/ada2 /dev/ada3 > gpart create -s GPT /dev/mirror/gm0 > gpart add -t freebsd-ufs mirror/gm0 > newfs -U /dev/mirror/gm0p1 > mount /dev/mirror/gm0p1 /usr/home > > Did I miss anything? Do I need boot blocks? It seems to work, but "seems > to" isn't good enough on a production system. > What you did is fine. Don't forget to update /etc/fstab. You're not booting from this device, so you do not need boot blocks. In fact, since you only want a single file system on the mirror, you don't need to partition it. For a volume of this size, you'll probably want to adjust the number of bytes/inode. For best performance, I suggest you use the default balance algorithm "load" for the mirror. In other words, this is sufficient: # gmirror label gm0 /dev/ada2 /dev/ada3 # newfs -U -i 16384 /dev/mirror/gm0 # mount /dev/mirror/gm0 /usr/home -- Greg Rivers
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1105132216340.62950>