From owner-freebsd-fs@FreeBSD.ORG Thu May 13 11:36:33 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 6F7A8106566C for ; Thu, 13 May 2010 11:36:33 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id 183C88FC15 for ; Thu, 13 May 2010 11:36:32 +0000 (UTC) Received: from mb01.admin.lan.kkip.pl ([10.66.3.254]) by mainframe.kkip.pl with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1OCWiF-000NBq-Gi for freebsd-fs@freebsd.org; Thu, 13 May 2010 13:36:30 +0200 Message-ID: <4BEBE437.9020404@kkip.pl> Date: Thu, 13 May 2010 13:36:23 +0200 From: Bartosz Stec User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-fs References: <201004291220.o3TCK3Bo029643@freefall.freebsd.org> <4BE09F5D.2080100@gmail.com> <4BEB9327.6040405@icyb.net.ua> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-User: admin@kkip.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.1 X-Spam-Score-Int: -80 X-Exim-Version: 4.71 (build at 02-Feb-2010 20:10:28) X-Date: 2010-05-13 13:36:30 X-Connected-IP: 10.66.3.254:1804 X-Message-Linecount: 61 X-Body-Linecount: 47 X-Message-Size: 2984 X-Body-Size: 2209 X-Received-Count: 1 X-Recipient-Count: 1 X-Local-Recipient-Count: 1 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Subject: Re: bin/144214: zfsboot fails on gang block after upgrade to zfs v14 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: Thu, 13 May 2010 11:36:33 -0000 W dniu 2010-05-13 08:44, Volodymyr Kostyrko pisze: > 2010/5/13 Andriy Gapon: > >> This is what I am confused about. >> What do you mean by the same 'boot code'? >> I originally asked if you have the *latest* bootcode installed, but you seem to >> be giving contradicting answers... >> >> You detailed your magic workaround of re-writing data, but you haven't mentioned >> how you updated your boot code. >> Could you please report the actual commands that you use to update the boot >> blocks? Just so we are sure that the problem is indeed present in the latest code. >> >> I am watching this thread from some time and maybe it's worth to mention that my raidz pool was hit by this bug also on CURRENT on april 30. I did make buildword; make buildkernel; make installkernel; reboot and I didn't realized that at this moment zpool was 98% full (about 300-400MB free space left). Loader catched gang block while trying to loading kernel and after a moment it give up, informing that it can't find from what device is booting from. So at this moment my system was in non-bootable state, with installed kernel but without new world installed. Zpool however was fine, I didn't have any problems accesing it from fixit environment. So what I did at first time was installing world and updating bootblocks from freshly builded /boot using fixit dvd. Of course it left my zpool with even less free space. After reboot loader text show itself for about half a second and after that I could only watch blank screen. I also tried some other things from fixit environment: installing bootcode from 8.0-release (it failed because zpool v13 vs v14 mismatch), revert back from snapshot from time before new world and kernel was build (gang block again), and finally I fixed issue by deleting all snapshots and deleted as max files as possible (so I had about 5GB free space left) and then: cp -pR /boot /boot2 ; mv /boot /boot.bak ; mv /boot2 /boot ; reboot As my system was bootable again, I have csupped new sources, rebuilded world and kernel, updated bootcodes and everything was fine. It seems that bug can be catched only with almost full zpool. -- Bartosz Stec