From owner-freebsd-fs@FreeBSD.ORG Sun Jun 13 12:41:10 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84F611065670 for ; Sun, 13 Jun 2010 12:41:10 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [76.96.27.243]) by mx1.freebsd.org (Postfix) with ESMTP id 679758FC21 for ; Sun, 13 Jun 2010 12:41:09 +0000 (UTC) Received: from omta11.emeryville.ca.mail.comcast.net ([76.96.30.36]) by qmta13.emeryville.ca.mail.comcast.net with comcast id VQez1e0050mlR8UADQh9xA; Sun, 13 Jun 2010 12:41:09 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta11.emeryville.ca.mail.comcast.net with comcast id VQh71e0063S48mS8XQh85K; Sun, 13 Jun 2010 12:41:08 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 9B14C9B418; Sun, 13 Jun 2010 05:41:07 -0700 (PDT) Date: Sun, 13 Jun 2010 05:41:07 -0700 From: Jeremy Chadwick To: hiroshi@soupacific.com Message-ID: <20100613124107.GA77002@icarus.home.lan> References: <4C1372E0.1000903@soupacific.com> <20100612142311.GF2253@garage.freebsd.pl> <4C139F9C.2090305@soupacific.com> <86iq5oc82y.fsf@kopusha.home.net> <4C14215D.9090304@soupacific.com> <20100613003635.GA60012@icarus.home.lan> <20100613074921.GB1320@garage.freebsd.pl> <4C149A5C.3070401@soupacific.com> <20100613102401.GE1320@garage.freebsd.pl> <4C14C066.7050505@soupacific.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C14C066.7050505@soupacific.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs@freebsd.org, Pawel Jakub Dawidek Subject: Re: FreeBSD 8.1 and HAST X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jun 2010 12:41:10 -0000 On Sun, Jun 13, 2010 at 08:26:30PM +0900, hiroshi@soupacific.com wrote: > > > > >>Jun 13 16:25:37 sv01A hastd: [zfshast] (primary) Header contains no 'seq' field. > > > >This is the most important bit from the primary node. > > > >The header either does not contain 'seq' field or this field is 0. It > >can only be 0 if you have old kernel. With recent kernel geom_gate.ko > >was modified to start seq at 1, so this should not happen. > > > >Can verify that your kernel is in sync with your userland? > > > > I did csup, builworld buildkernel and instalkernel . > geom_gate.ko and uanme -a are same date! This is not verifying that the kernel and userland are in sync. geom_gate.ko is installed via "installkernel". You should never just buildkernel/installkernel/reboot; you should do everything, including world. The procedure to follow is described in /usr/src/Makefile. I've included it below, just for posterity. # 1. `cd /usr/src' (or to the directory containing your source tree). # 2. `make buildworld' # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # [steps 3. & 4. can be combined by using the "kernel" target] # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `make delete-old' # 9. `mergemaster' (you may wish to use -U or -ai). # 10. `reboot' # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) Please do not skip/avoid the reboot-into-single-user-mode step. If you don't have physical access the machine or OOB (out-of-band, e.g. serial console, IPMI, LOM, etc.) access, you can "live dangerously" by doing the installworld step after installkernel then rebooting. But be aware there are situations where some files in /libexec or /usr/libexec may not get updated, which can be immediately devastating. I've seen this happen on a couple of occasions. Considered yourself warned. :-) -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |