-ryou-
Goto Top

FreeBSD 8.2 bootet nicht nach installation mit ZFS

Hallo Kollegen und Kolleginnen,

Ich hab folgendes Problem. Ich bin gerade dabei ein Test-System (FreeBSD 8.2 mit ZFS-Fielsystem) in Virtualbox auf zu setzen. Nach der Installation beim Neu Starten bekomme ich immer die Fehlermeldung.
" ZFS: i/o error - all block copies unavailable".
" ZFS: can'T read MOS object directory"
"Can't find root filesystem - giving up"

Auch wenn ich nach den Fehler google finde ich nichts was mir wirklich weiter hilft. Hat jemand eine Idee an was es liegen kann?
Diese Howto hab ich als Leitpfad benützt: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ1
hab Sie aber ein wenig angepasst. Ihr die Dokumentation von meiner Installation.

<----FreeBSD 8.2 Install manuel---->


Installer
--> Germany
--> Germany ISO
--> Fixit
--> CDROM/DVD


<----Fixit Konsole---->


Erstellen von GPT Disk
Fixit# gpart create -s gpt da0
Fixit# gpart create -s gpt da1
Fixit# gpart create -s gpt da2



Erstellen von GPT Partitionen
Fixit# gpart add -b 34 -s 64k -t freebsd-boot da0
Fixit# gpart add -b 162 -s 41942845 -t freebsd-zfs -l sys1 da0
Fixit# gpart add -b 34 -s 64k -t freebsd-boot da1
Fixit# gpart add -b 162 -s 41942845 -t freebsd-zfs -l sys2 da1
Fixit# gpart add -b 34 -s 64k -t freebsd-boot da2
Fixit# gpart add -b 162 -s 41942845 -t freebsd-zfs -l sys3 da2



Installieren von MBR & GPT boot loader
Fixit# gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 da0
Fixit# gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 da1
Fixit# gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 da2


Laden von ZFS Kernel module
Fixit# kldload /mnt2/boot/kernel/opensolaris.ko
Fixit# kldload /mnt2/boot/kernel/zfs.ko



Erstellen von ZFS Pool zroot
Fixit# mkdir /boot/zfs
Fixit# zpool create zroot raidz1 /dev/gpt/sys1 /dev/gpt/sys2 /dev/gpt/sys3
Fixit# zpool set bootfs=zroot zroot



<----Installation von FreeBSD auf dem ZFS-Feilsystem---->


Erstellen von ZFS Partitionen
Fixit# zfs set checksum=fletcher4 zroot
Fixit# zfs set compression=lzjb zroot
Fixit# zfs create -o checksum=off -o exec=on -o setuid=off zroot/tmp
Fixit# chmod 1777 /zroot/tmp
Fixit# zfs create -o checksum=off -o setuid=off -o mountpoint=/usr/ports zroot/ports
Fixit# zfs create -o checksum=off -o exec=on -o setuid=off -o mountpoint=/var/tmp zroot/var_tmp
Fixit# chmod 1777 /var/tmp



Installieren FreeBSD auf zroot
Fixit# cd /dist/8.2-*
Fixit# export DESTDIR=/zroot
Fixit# for dir in base manpages; do (cd $dir ; ./install.sh; cd ..) ; done
Fixit# cd kernels ; ./install.sh generic
Fixit# cd /zroot/boot ; cp -Rlp GENERIC/* /zroot/boot/kernel/



Grundkonfiguration
Fixit# echo 'zfs_enable="YES"' > /zroot/etc/rc.conf
Fixit# echo 'hostname="vbox-zfs"' >> /etc/rc.conf
Fixit# echo 'zfs_load="YES"' > /boot/loader.conf
Fixit# echo 'vfs.root.mountfrom="zfs:zroot"' >> /boot/loader.conf
Fixit# chroot /zroot
<----chroot benötigt!---->
Fixit# passwd root
Fixit# tzsetup
Fixit# cd /etc/mail
Fixit# make aliases
Fixit# exit


System bootfähigmachen
Fixit# zpool export zroot
Fixit# zpool import zroot
Fixit# cp /boot/zfs/zpool.cache /zroot/boot/zfs/
Fixit# touch /zroot/etc/fstab
Fixit# export LD_LIBRARY_PATH=/mnt2/lib
Fixit# zfs unmount -a
Fixit# zfs set mountpoint=/tmp zroot/tmp
Fixit# zfs set mountpoint=legacy zroot
Fixit# exit

Content-Key: 164868

Url: https://administrator.de/contentid/164868

Printed on: April 18, 2024 at 08:04 o'clock

Member: ckworld
ckworld Apr 19, 2011 at 12:18:52 (UTC)
Goto Top
Hast du für die Virtualbox die IO-APIC aktiviert?
Member: -Ryou-
-Ryou- Apr 19, 2011 at 12:28:21 (UTC)
Goto Top
Ja das und die Hardware-Virtualisierung wie die erweiterte Einstellungen bei Prozessor.
Member: -Ryou-
-Ryou- Apr 20, 2011 at 08:16:08 (UTC)
Goto Top
Hab es jetzt um den Teil erweitert.

Fixit# echo 'vfs.root.mountfrom.options="rw"' >> /boot/loader.conf

Aber das System bootet immer noch nicht.