DragonFly BSD
DragonFly users List (threaded) for 2012-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: fails to mount root


From: Antonio Huete Jimenez <ahuete.devel@xxxxxxxxx>
Date: Tue, 14 Aug 2012 16:28:07 +0200

--14dae9cdc383807cd604c73a9e8b
Content-Type: text/plain; charset=ISO-8859-1

Folks,

Patch to skip redo recovery is here:
http://leaf.dragonflybsd.org/~tuxillo/archive/patches/hammer_skipredo02.patch

I've built an i386 kernel + modules with that patch, and it can be
downloaded from here:
http://leaf.dragonflybsd.org/~tuxillo/archive/temp/kernel_skip_redo.tar.bz2

Pierre, patch above adds a tunable that can be used to skip redo recovery
during a normal hammer mount. You need to set vfs.hammer.skip_redo to what
you actually need in your /boot/loader.conf. Possible values are:

0 - Run redo recovery normally and fail to mount if
    the operation fails (default).
1 - Run redo recovery, but don't fail to mount if the
    operation fails.
2 - Completely skip redo recovery (only for severe error
    conditions and/or debugging.

You may want to start setting it to 1 and if it doesn't mount, then set it
to 2.
Let us know how it goes.

Cheers,
Antonio Huete

2012/8/14 Pierre Abbat <phma@phma.optus.nu>

> On Monday 13 August 2012 20:46:19 Matthew Dillon wrote:
> >     Hmm.  Well, that's clearly a software bug but I'm not sure what
> >     is causing the lock to be lost.  The debugger backtrace isn't
> >     consistent.  I would love to get a kernel core out of this but
> >     it's too early in the boot sequence.
> >
> >     Antonio will have a patch for a boot-time tunable that will bypass
> >     the hammer2 recovery code tomorrow sometime.
>
> OK, thanks. Could you or he compile the kernel and put it somewhere where I
> can download it? I can't compile the kernel until I can mount root on that
> box. It's a 32-bit Pentium with multiple cores; I'm using the generic
> build.
>
> I just got it to mount the encrypted partition :) There's a program I was
> working on shortly before it rebooted, and the latest code is there, and
> only
> there.
>
> Pierre
> --
> gau do li'i co'e kei do
>

--14dae9cdc383807cd604c73a9e8b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Folks,<div><br></div><div>Patch to skip redo recovery is here:=A0<a href=3D=
"http://leaf.dragonflybsd.org/~tuxillo/archive/patches/hammer_skipredo02.pa=
tch">http://leaf.dragonflybsd.org/~tuxillo/archive/patches/hammer_skipredo0=
2.patch</a></div>
<div><br></div><div>I&#39;ve built an i386 kernel + modules with that patch=
, and it can be downloaded from here: <a href=3D"http://leaf.dragonflybsd.o=
rg/~tuxillo/archive/temp/kernel_skip_redo.tar.bz2">http://leaf.dragonflybsd=
.org/~tuxillo/archive/temp/kernel_skip_redo.tar.bz2</a></div>
<div><br></div><div>Pierre, patch above adds a tunable that can be used to =
skip redo recovery during a normal hammer mount. You need to set vfs.hammer=
.skip_redo to what you actually need in your /boot/loader.conf. Possible va=
lues are:</div>
<div><br></div><div><div>0 - Run redo recovery normally and fail to mount i=
f</div><div>=A0 =A0 the operation fails (default).</div><div>1 - Run redo r=
ecovery, but don&#39;t fail to mount if the</div><div>=A0 =A0 operation fai=
ls.</div>
<div>2 - Completely skip redo recovery (only for severe error</div><div>=A0=
 =A0 conditions and/or debugging.</div></div><div><br></div><div>You may wa=
nt to start setting it to 1 and if it doesn&#39;t mount, then set it to 2.<=
/div>
<div>Let us know how it goes.</div><div><br></div><div>Cheers,</div><div>An=
tonio Huete</div><div><br><div class=3D"gmail_quote">2012/8/14 Pierre Abbat=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:phma@phma.optus.nu"; target=3D"_bla=
nk">phma@phma.optus.nu</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div>On Monday 13 August 2012 20:46:19 Matthew Dillon wrote:<br>
&gt; =A0 =A0 Hmm. =A0Well, that&#39;s clearly a software bug but I&#39;m no=
t sure what<br>
&gt; =A0 =A0 is causing the lock to be lost. =A0The debugger backtrace isn&=
#39;t<br>
&gt; =A0 =A0 consistent. =A0I would love to get a kernel core out of this b=
ut<br>
&gt; =A0 =A0 it&#39;s too early in the boot sequence.<br>
&gt;<br>
&gt; =A0 =A0 Antonio will have a patch for a boot-time tunable that will by=
pass<br>
&gt; =A0 =A0 the hammer2 recovery code tomorrow sometime.<br>
<br>
</div>OK, thanks. Could you or he compile the kernel and put it somewhere w=
here I<br>
can download it? I can&#39;t compile the kernel until I can mount root on t=
hat<br>
box. It&#39;s a 32-bit Pentium with multiple cores; I&#39;m using the gener=
ic build.<br>
<br>
I just got it to mount the encrypted partition :) There&#39;s a program I w=
as<br>
working on shortly before it rebooted, and the latest code is there, and on=
ly<br>
there.<br>
<span><font color=3D"#888888"><br>
Pierre<br>
--<br>
gau do li&#39;i co&#39;e kei do<br>
</font></span></blockquote></div><br></div>

--14dae9cdc383807cd604c73a9e8b--



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]