Hier der kurze Ablauf:
# gmirror label -vb round-robin gm0 <DEVICE_0>
# gmirror load
# gmirror insert gm0 <DEVICE_1>
# fdisk -BI /dev/mirror/gm0
# bsdlabel -wB /dev/mirror/gm0s1
# bsdlabel -e /dev/mirror/gm0s1
# /dev/mirror/gm0: 8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 40G 16 4.2BSD 0 0
b: 4G * swap 0 0
c: * * unused 0 0
e: * * 4.2BSD 0 0
# newfs -O2 -U /dev/mirror/gm0s1a
# mount /dev/mirror/gm0s1a /mnt
# sysinstall
custom
options
install root: /mnt
distributions
minimal
commit
# rm -Rf /mnt/boot/kernel
# cp -Rp /mnt/boot/GENERIC /mnt/boot/kernel
/mnt/etc/rc.conf
defaultrouter="<IP des Routers/Gateways>"
hostname="<hostname.domain>"
ifconfig_<NETZWERK-INTERFACE>="inet <IP> netmask <NETMASK>"
keymap="german.iso"
sshd_enable="YES"
/mnt/etc/fstab
# Device Mountpoint FStype Options Dump Pass
/dev/mirror/gm0s1b none swap sw 0 0
/dev/mirror/gm0s1a / ufs rw 1 1
/mnt/boot/loader.conf
geom_mirror_load="YES"
# reboot
Das war es schon.
[zurück]