Simple question regarding GPT and UFS for data only
Greg Rivers
gcr+freebsd-geom at tharned.org
Sat May 14 03:55:18 UTC 2011
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
More information about the freebsd-geom
mailing list