From owner-freebsd-current@FreeBSD.ORG Mon Sep 7 14:29:15 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3146B1065696 for ; Mon, 7 Sep 2009 14:29:15 +0000 (UTC) (envelope-from oliver@namp.de) Received: from grisu.qmail-ldap.de (grisu.qmail-ldap.de [78.46.218.233]) by mx1.freebsd.org (Postfix) with ESMTP id 337F38FC12 for ; Mon, 7 Sep 2009 14:29:13 +0000 (UTC) Received: (qmail 63882 invoked from network); 7 Sep 2009 14:33:04 -0000 Received: from unknown (HELO mail.kuehlbox.de) (oliver@namp.de@[78.46.218.233]) (envelope-sender ) by grisu.qmail-ldap.de (qmail-ldap-1.03) with SMTP for ; 7 Sep 2009 14:33:02 -0000 Received: from: grisu.qmail-ldap.de ([78.46.218.233]) by HSF smtp proxy MIME-Version: 1.0 X-Priority: Normal X-Mailer: AtMail 1.03 Message-ID: <19600.1252333979@namp.de> To: "Bernhard Schmidt" X-Origin: 195.180.14.14 X-Atmail-Account: oliver@namp.de Date: Mon, 7 Sep 2009 16:32:59 +0200 From: Oliver Fakler X-Mailman-Approved-At: Mon, 07 Sep 2009 14:52:44 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-current@freebsd.org Subject: Re: boot from raidz X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: oliver@namp.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2009 14:29:15 -0000 On Mon 07/09/09 13:40 , Bernhard Schmidt wrote: Am 07.09.2009 um 11:13 schrieb Oliver Fakler: > > BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; } > > On Mon 07/09/09 10:07 , Bernhard Schmidt =20 > wrote: > > > Am 06.09.2009 um 21:45 schrieb Oliver Fakler: > > > > > > > Hi all, > > > > i installed a 8.0 beta 3 amd64 based testsystem. > > > > i tried with a root on a raidz, but i have a problem after the first > > reboot, there is a error message: > > > > can't load kernel > > I found something that boot root from raidz is not supported, but > > maybe there is a solution?? > > Hope some can help me > > > There are patches from Doug Rabson which add support for booting from > raidz/raidz2. > > http://lists.freebsd.org/pipermail/freebsd-fs/2008-December/005498.html [2]" target=3D"_blank">http://lists.freebsd.org/pipermail/freebsd-fs/2008-Decemb= er/005498.html > " target=3D"_blank">http://lists.freebsd.org/pipermail/freebsd-fs/2008-Decemb= er/005498.html [3]" target=3D"_blank">http://lists.freebsd.org/pipermail/freebsd-fs/2008-Decemb= er/005498.html Seems that patch made it already into the tree (r192194). > > > I tried it, but after a make obj && make depend the make failed with =20 > different errors like undeclared and has no member named. > > I used patch raidzboot-14052009.diff started patching from /usr/src/=20 > sys/ , i'm not sure if this was the right way. > > I'm also not sure if the way of installation was the right one, =20 > here's the way i go: > > > gpart create -s GPT da0 > gpart add -b 34 -s 128 -t freebsd-boot da0 > gpart add -b 162 -s 5242880 -t freebsd-swap da0 > gpart add -b 5243042 -s 11534141 -t freebsd-zfs da0 > gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 da0 > gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 da1 > gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 da2 > Can you try zfsboot instead of gptzfsboot? http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2009-05/msg00689.htm= l [4]" target=3D"_blank">http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/20= 09-05/msg00689.html at the end of the mail. > > > kldload /mnt2/boot/kernel/opensolaris.ko > kldload /mnt2/boot/kernel/zfs.ko > > zpool create tank raidz da0p3 da1p1 d2p1 > > zfs create tank/tmp > zfs create tank/usr > zfs create tank/var > > cd /dist/8.0-BETA3/base > export DESTDIR=3D/tank > ./install.sh > You are about to extract the base distribution into /tank - are you =20 > SURE > you want to do this over your installed system (y/n)? y > cd ../kernels > ./install.sh generic > cd /tank/boot > cp -Rp GENERIC/* kernel/ > > cd /dist/8.0-BETA3/src > ./install.sh all > Extracting sources into /usr/src... > Extracting source component: base > Extracting source component: bin > Extracting source component: cddl > Extracting source component: contrib > Extracting source component: crypto > Extracting source component: etc > Extracting source component: games > Extracting source component: gnu > Extracting source component: include > Extracting source component: krb5 > Extracting source component: lib > Extracting source component: libexec > Extracting source component: release > Extracting source component: rescue > Extracting source component: sbin > Extracting source component: secure > Extracting source component: share > Extracting source component: sys > Extracting source component: tools > Extracting source component: ubin > Extracting source component: usbin > Done extracting sources. > Done extracting sources. > cd ../manpages > ./install.sh > > echo 'zfs_enable=3D"YES"' > /tank/etc/rc.conf > echo 'LOADER_ZFS_SUPPORT=3D"YES"' > /tank/etc/src.conf > echo 'zfs_load=3D"YES"' > /tank/boot/loader.conf > echo 'vfs.root.mountfrom=3D"zfs:tank"' >> /tank/boot/loader.conf > echo ´/dev/da0p2 none swap sw 0 0´>> /tank/etc/fstab > > mkdir /boot/zfs > zpool export tank && zpool import tank > cp /boot/zfs/zpool.cache /tank/boot/zfs/ > > chroot /tank > mount -t devfs devfs /dev > unset DESTDIR > cd /usr/src/sys/boot/ > make obj > make depend > make > cd i386/loader > make install > umount /dev > touch /etc/fstab > exit > > export LD_LIBRARY_PATH=3D/mnt2/lib > zfs set mountpoint=3Dlegacy tank > zfs set mountpoint=3D/tmp tank/tmp > zfs set mountpoint=3D/var tank/var > zfs set mountpoint=3D/usr tank/usr > zpool set bootfs=3Dtank tank > Seems correct at first glance. -- Bernhard testet with zfsboot instead of gptzfsboot but it was not successfull :-( Links: ------ [2] http://mail.kuehlbox.de/parse.php?redirect=3D