Questions about GEOM and MIRROR

Samuel Tardieu sam at rfc1149.net
Mon Dec 13 11:20:35 PST 2004


Hi.

I just added two disks (ad4 & ad6, SATA 160Go) to my FreeBSD box. I want to
use them in the following configuration:

  - ad4s1 & ad6s1: geom mirror of 80Go containing all my precious data (/,
    /usr, /var, /home)

  - ad4s2b: swap

  - ad4s2x, ad6s2x: non-important data

On the mirror (ad4s1+ad6s1), I created partitions for /, /tmp, /usr,
and /var.

Is there any pitfall in doing so? Do I have to be careful to keep extra space
somewhere? (such as one sector at the end of ad4s1/ad6s1)

I can't seem to place bootcode at the beginning of the mirror:

# bsdlabel /dev/mirror/precious
# /dev/mirror/precious:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   524288       16    4.2BSD     2048 16384 32776 
  c: 167766731        0    unused        0     0         # "raw" part, don't edit
  d:  2097152   524304    4.2BSD     2048 16384 28552 
  e:   524288  2621456    4.2BSD     2048 16384 32776 
  f: 164620971  3145744    4.2BSD     2048 16384 28552 

# bsdlabel -B /dev/mirror/precious
bsdlabel: Geom not found

What does this error mean?

Thanks in advance.

  Sam



More information about the freebsd-stable mailing list