Re: gmirror failed with error 19.

From: Sascha Klauder <sascha_at_trimind.de>
Date: Fri, 28 Oct 2011 11:48:28 +0200
On Tue, 2011-10-25 12:27 -0700, Garrett Cooper wrote:
> On Tue, Oct 25, 2011 at 11:15 AM, Martin Wilke <miwi_at_freebsd.org> wrote:
> > I face the same error since upgrade from 8.2 to 9.0RC1, is there any way to fix that?
> errno == 19 => ENODEV -- so the question is, what device is missing?

 I've got bitten by this as well when trying a source up-
grade of a freshly installed 8.2-RELEASE system that had
gmirror configured after installation according to the 
procedure in the Handbook.

 The 9.0-RC1 kernel drops to the mountroot prompt when
booting with

 GEOM_MIRROR: Device mirror/gm0 launched (2/2).
 GEOM_PART: partition 1 has end offset beyond last LBA: 490350671 > 490350670
 GEOM_PART: integrity check failed (mirror/gm0, MBR)
 ...
 Trying to mount root from ufs:/dev/mirror/gm0s1a [rw]...
 mountroot: waiting for device /dev/mirror/gm0s1a ...
 Mounting from ufs:/dev/mirror/gm0s1a failed with error 19.

which can be circumvented by setting the loader tunable
kern.geom.part.check_integrity=0.  

 The only immediately obvious difference I could find is
that "gpart list" reports the last sector of the mirror/gm0
device different from the 8.2 kernel (490350670 vs 490350608).

"gpart list" output when running the 8.2-RELEASE kernel:
 http://arwen.shopkeeper.de/~sascha/gpart-82 
vs 9.0-RC1:
 http://arwen.shopkeeper.de/~sascha/gpart-90

Image of the MBR:
 http://arwen.shopkeeper.de/~sascha/ada0-mbr.bin

Cheers,
-sascha
Received on Fri Oct 28 2011 - 08:28:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC