Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2010 21:41:22 +0300
From:      Andrey V. Elsukov <bu7cher@yandex.ru>
To:        Paul Wootton <paul@fletchermoorland.co.uk>
Cc:        marcel@freebsd.org, pjd@freebsd.org, current@freebsd.org
Subject:   Re: Can not boot after r203503. Unable to open /dev/ada(1/2)p3 for writing
Message-ID:  <18511267209682@webmail126.yandex.ru>
In-Reply-To: <4B87DEEA.5070808@fletchermoorland.co.uk>
References:  <4B87DEEA.5070808@fletchermoorland.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
26.02.10, 14:47, "Paul Wootton" <paul@fletchermoorland.co.uk>:
>  I have an unusual problem. Last night I tried updating from my old-ish 
>  kernel/world to an up to date version. I had been using 202500-ish 
>  successfully. I can build and install the newer world and kernel fine, 
>  but when I reboot I get the following
>  
>  Trying to mount root from zfs:raid250/root
>  ZFS WARNING: Unable to open /dev/ada1p3 for writing (error=1). ZFS 
>  WARNING: Unable to open /dev/ada2p3 for writing (error=1). ROOT MOUNT ERROR.
>  If you have invalid mount options, reboot, and first try the following 
>  from the loader prompt:
>      set vfs.root.mountfrom.options=rw
>  and then remove the invalid options from /etc/fstab
>  loader variables:
>      vfs.root.mountfrom=zfs:raid250/root
>      vfs.root.mountfrom.options=rw

I had the same problem recently. I have ZFS-only 9.0-CURRENT-amd64.
First time when i had this problem was after I added linux_load="YES" in
/boot/loader.conf. :-) 
It was only change i made. So, i rebooted again and unload linux from 
boot prompt. And system boots fine. I tried again with linux.ko and it failed to
boot. After that i synced source tree and rebuild kernel. And after that it failed
to boot with and without linux. :-)
So, after that i booted from another disk and only thing that i did was:
# zpool import -R /mnt z
# gpart modify -l ZFS -i 3 ad4 (previous label was "zfs")
After that i can boot with and without linux.ko again. And I can't reproduce this bug again.

-- 
WBR, Andrey V. Elsukov



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