From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 09:14:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC56F106564A for ; Fri, 27 Feb 2009 09:14:03 +0000 (UTC) (envelope-from amoran@forsythia.net) Received: from celebrian.forsythia.net (celebrian.forsythia.net [64.142.54.200]) by mx1.freebsd.org (Postfix) with ESMTP id 9F4B58FC0C for ; Fri, 27 Feb 2009 09:14:03 +0000 (UTC) (envelope-from amoran@forsythia.net) Received: from [10.200.0.197] (cerberus.forsythia.net [64.142.54.201]) by celebrian.forsythia.net (8.14.3/8.14.3) with ESMTP id n1R8qqu2001630 for ; Fri, 27 Feb 2009 00:53:06 -0800 (PST) (envelope-from amoran@forsythia.net) Message-Id: <09777BF1-B122-4A5A-B467-F748868B9F10@forsythia.net> From: Andrew Moran To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 27 Feb 2009 00:52:47 -0800 X-Mailer: Apple Mail (2.930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Updating 7.1 kernel using zfs root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2009 09:14:04 -0000 Hey guys, I'm currently running on FreeBSD 7.1 AMD64 using a ZFS filesystem, but my /boot folder is linked to a UFS filesytem (/bootdir). I set it up following the instructions here: http://www.ish.com.au/solutions/articles/freebsdzfs In a nut shell: Install a minimal FreeBSd 7.1 from CDs onto a UFS partition, boot into single user mode, create your ZFS partitions, and copy stuff over onto ZFS, and link back to the UFS boot's folder for / boot. So: celebrian# ls -ld /boot lrwxr-xr-x 1 root wheel 12 Feb 25 19:52 /boot -> bootdir/boot celebrian# df Filesystem 1K-blocks Used Avail Capacity Mounted on tonk/root 572796032 817920 571978112 0% / devfs 1 1 0 100% /dev /dev/ad10s1a 1012974 560070 371868 60% /bootdir tonk/home 699041408 127063296 571978112 18% /home tonk/tmp 571979264 1152 571978112 0% /tmp tonk/usr 575095040 3116928 571978112 1% /usr tonk/usr/local 572981248 1003136 571978112 0% /usr/local tonk/var 572786432 808320 571978112 0% /var celebrian# All is working now except when trying to recompile the kernel. I csup the latest 7.1 kernel (cvs tag RELENG_7), and I do the whole buildworld, buildkernel, installkernel, shutdown, installworld dance.. everything builds and installs fine. I do see it installs into /boot/ kernel (which is really /bootdir/boot/kernel) and moves aside the old kernel. When I reboot, it kernel panics pretty quickly (it spits out a whole bunch of weird stuff including strange symbols) shortly after the boot loader. Fortunately, I'm able to boot into the kernel.old kernel (the one from the CDs) just fine. Is there some extra step I need to do in this kind of setup to update the kernel that I'm missing? Any clues would be appreciated. --Andy