Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Aug 2013 16:56:51 +0200
From:      =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= <lukasz@wasikowski.net>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        freebsd-fs@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: ZFS: can't read MOS of pool
Message-ID:  <51FBC8B3.4010304@wasikowski.net>
In-Reply-To: <51FBC6F1.9030408@gmail.com>
References:  <51ED5B69.8050200@wasikowski.net> <51FBC24B.5030609@gmail.com> <51FBC4DC.4090506@wasikowski.net> <51FBC6F1.9030408@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51FBC8B3.4010304>