From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 12:01:37 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74C6E106564A for ; Tue, 5 Oct 2010 12:01:37 +0000 (UTC) (envelope-from matt.thyer@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4BB1F8FC13 for ; Tue, 5 Oct 2010 12:01:37 +0000 (UTC) Received: by pzk1 with SMTP id 1so1014825pzk.13 for ; Tue, 05 Oct 2010 05:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=hpKCFwnpeFEcGAQwBZQI7/v/N/52OjTiNm0GJJHVazc=; b=bZgZEiQlYqvo+bPy+GYZv31PsHSTzOn9QGtV91KGuKIAgh7y1tJjGmtJBFXrWscf4j Bcgf0n3moFfompjigWWvfJVmXuAyyb7zWMkoALcTSDkhvCCGLOzIeRJqXosUYKq63USf N73Bq2iyXAsonZma7A8d6nycc+iEruLmQynGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WapE7SenKFcl+IFpzAkqdNMD9UwzR73thgGzoqUhjPyk8NFmeJ566L6ZdpaBATdjcA 3O5lib/vl9vMYuVvtoVhKIB6iOZWBEX046qnUem1DVxlUNZLtvFUKi5t6o56FgQ78PWK ynR5s5Fv6RvoARbVhPdw1HG6tf2In7kzbuHtk= MIME-Version: 1.0 Received: by 10.114.25.5 with SMTP id 5mr13472057way.137.1286278536834; Tue, 05 Oct 2010 04:35:36 -0700 (PDT) Received: by 10.220.191.139 with HTTP; Tue, 5 Oct 2010 04:35:36 -0700 (PDT) Date: Tue, 5 Oct 2010 22:05:36 +1030 Message-ID: From: Matt Thyer To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Is /boot updated by "make installkernel" or by "make installworld" ? 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: Tue, 05 Oct 2010 12:01:37 -0000 Background I'm running a ZFS FreeBSD-STABLE system on Western Digital 2TB EARS models green drives. These are the so called "Advanced Format Drives" that use a 4KiB block size internally but lie about this to the operating system and claim to use 512 byte blocks. This causes all sorts of performance issues so after some experimentation I ended up creating my ZFS pool directly on gnop 4KiB block size devices on top of the raw disks themselves. To avoid having to run a separate boot disk, I've used a work around of a 1GB USB stick which contains just /boot with the /boot/kernel directory containing only "kernel", "opensolaris.ko", "zfs.ko" & "aio.ko" (for samba 3.4 using async I/O). This requires only 14MB on the USB stick and boots nicely with the USB /boot/loader.conf telling the kernel to mount root from the ZFS pool. P.S. Don't forget to use DOS "wdidle3" to increase the 8 second head parking timeout up to 5 minutes with these drives. Now how to update the system ? My update world script follows the recommended procedure in the source Makefiles for updating the system and does an install kernel before rebooting into single user mode to install the new world (via an /etc/rc.d/ script). So my question relates to when I should update my USB stick's /boot directory. I'm assuming that the /boot directory should be owned by the kernel and could be updated by a "make installkernel" (which is what I do after building the world but before my reboot into single user to install the world). Is my assumption correct ? i.e. does a "make installkernel" replace the contents of "/boot" ? or is "/boot" updated by a "make installworld" ? Matt.