From owner-freebsd-fs@FreeBSD.ORG Fri Aug 2 14:56:57 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AC961438; Fri, 2 Aug 2013 14:56:57 +0000 (UTC) (envelope-from lukasz@wasikowski.net) Received: from mail.wasikowski.net (mail.wasikowski.net [IPv6:2001:6a0:1cb::b]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5037B2AED; Fri, 2 Aug 2013 14:56:57 +0000 (UTC) Received: from mail.wasikowski.net (mail.wasikowski.net [IPv6:2001:6a0:1cb::b]) by mail.wasikowski.net (Postfix) with ESMTP id C857628B4; Fri, 2 Aug 2013 16:56:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at wasikowski.net Received: from mail.wasikowski.net ([91.204.91.44]) by mail.wasikowski.net (scan.wasikowski.net [91.204.91.44]) (amavisd-new, port 10026) with ESMTP id SFfjPrAVN6Mz; Fri, 2 Aug 2013 16:56:55 +0200 (CEST) Received: from [192.168.138.150] (83-144-115-210.static.chello.pl [83.144.115.210]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.wasikowski.net (Postfix) with ESMTPSA id 629D828B1; Fri, 2 Aug 2013 16:56:55 +0200 (CEST) Message-ID: <51FBC8B3.4010304@wasikowski.net> Date: Fri, 02 Aug 2013 16:56:51 +0200 From: =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Volodymyr Kostyrko Subject: Re: ZFS: can't read MOS of pool References: <51ED5B69.8050200@wasikowski.net> <51FBC24B.5030609@gmail.com> <51FBC4DC.4090506@wasikowski.net> <51FBC6F1.9030408@gmail.com> In-Reply-To: <51FBC6F1.9030408@gmail.com> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-fs@freebsd.org, freebsd-stable@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Aug 2013 14:56:57 -0000 W dniu 2013-08-02 16:49, Volodymyr Kostyrko pisze: > 02.08.2013 17:40, Łukasz Wąsikowski wrote: >>>> Any hints how to go from here? >>> >>> First, how did you update bootcode? `ls -la /boot` also wood help. >>> >>> Second, what is your /etc/make.conf and /etc/src.conf? >> >> I'm updating bootcode with: >> >> gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 >> >> /etc/src.conf doesn't exist (I'm using GENERIC kernel on this VM) >> /etc/make.conf - http://pastebin.com/QapEWzfJ >> > > Looks good. > > Can you also try what Trond suggests about boot order? You can also list > your boot fs in /boot/loader.conf like I listed ROOTFS in /boot/loader.conf, didn't helped. I'm using this boot order on 20+ boxes and never had any issues with it, but I'll check it as I don't have better idea what to do next. > vfs.root.mountfrom=zfs:klawisz/ROOTFS. Or you can just add this at > loader prompt. > > There's also a ${SRC}/tools/tools/zfsboottest script that can tell you > something about booting from your pool. This tools doesn't compile on 9.2-BETA2 r253884 # cd /usr/src/tools/tools/zfsboottest/ && make Warning: Object directory not changed from original /usr/src/tools/tools/zfsboottest ln -sf /usr/src/tools/tools/zfsboottest/../../../sys/i386/include machine cc -O1 -I/usr/src/tools/tools/zfsboottest/../../../sys/boot/zfs -I/usr/src/tools/tools/zfsboottest/../../../sys/cddl/boot/zfs -I. -fdiagnostics-show-option -W -Wextra -Wno-sign-compare -Wno-unused-parameter -Werror -std=gnu99 -fstack-protector -c zfsboottest.c cc1: warnings being treated as errors In file included from /usr/src/tools/tools/zfsboottest/../../../sys/cddl/boot/zfs/zfssubr.c:122, from /usr/src/tools/tools/zfsboottest/../../../sys/boot/zfs/zfsimpl.c:38, from zfsboottest.c:55: /usr/src/tools/tools/zfsboottest/../../../sys/cddl/boot/zfs/lz4.c: In function 'lz4_decompress': /usr/src/tools/tools/zfsboottest/../../../sys/cddl/boot/zfs/lz4.c:45: warning: implicit declaration of function 'htonl' In file included from zfsboottest.c:55: /usr/src/tools/tools/zfsboottest/../../../sys/boot/zfs/zfsimpl.c: In function 'spa_status': /usr/src/tools/tools/zfsboottest/../../../sys/boot/zfs/zfsimpl.c:817: error: 'ZFS_MAXNAMELEN' undeclared (first use in this function) /usr/src/tools/tools/zfsboottest/../../../sys/boot/zfs/zfsimpl.c:817: error: (Each undeclared identifier is reported only once /usr/src/tools/tools/zfsboottest/../../../sys/boot/zfs/zfsimpl.c:817: error: for each function it appears in.) *** [zfsboottest.o] Error code 1 Stop in /usr/src/tools/tools/zfsboottest. -- best regards, Lukasz Wasikowski