Install FreeBSD 10 on gmirror/gstripe/simple UFS partitions (GPT or MBR)

Option 1. Create mirrored/striped/simple UFS filesystems (MBR)

by ross at 05:20:04 on December 30, 2011

Create filesystems

# kldload geom_mirror
# kldload geom_stripe

Filesystems are formatted using newfs utility, -L is the label, filesystem will be available as /dev/ufs/label, and -U turns Soft Updates on.

Mirrored UFS partitions

# gmirror label root /dev/ada1s1a /dev/ada2s1a
# newfs -L root /dev/mirror/root
# mount /dev/mirror/root /mnt

# gmirror label var /dev/ada1s1d /dev/ada2s1d
# newfs -U -L var /dev/mirror/var
# mount /dev/mirror/var /mnt/var

# gmirror label usr /dev/ada1s1e /dev/ada2s1e
# newfs -U -L usr /dev/mirror/usr
# mount /dev/mirror/usr /mnt/usr

# gmirror label home /dev/ada1s1g /dev/ada2s1g
# newfs -U -L home /dev/mirror/home
# mount /dev/mirror/home /mnt/usr/home

Striped UFS partitions

# gstripe label ports /dev/ada1s1f /dev/ada2s1f
# newfs -U -L ports /dev/stripe/ports
# mount /dev/stripe/ports /mnt/usr/ports

Simple UFS partitions

# newfs -U -L share /dev/ada1s1h
# mkdir /share
# mount /dev/ufs/share /mnt/share

 

Type exit and installation will proceed.

 

Comments