Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jul 2005 14:25:48 +0200
From:      Bernd Walter <ticso@cicely12.cicely.de>
To:        Angus MacGyver <macgyver@calibre-solutions.co.uk>
Cc:        Pawel Jakub Dawidek <pjd@freebsd.org>, freebsd-alpha@freebsd.org
Subject:   Re: Vinum + AXP + 5.4..
Message-ID:  <20050727122547.GF22170@cicely12.cicely.de>
In-Reply-To: <1122446849.5860.25.camel@yavin4.calibre-solutions.co.uk>
References:  <1121674263.5897.5.camel@falcon.calibre-solutions.co.uk> <20050718100353.GH53035@cicely12.cicely.de> <1121681574.5897.7.camel@falcon.calibre-solutions.co.uk> <1122398630.5860.7.camel@yavin4.calibre-solutions.co.uk> <20050726201815.GI46538@darkness.comp.waw.pl> <1122411849.5860.12.camel@yavin4.calibre-solutions.co.uk> <20050726212616.GL46538@darkness.comp.waw.pl> <1122446849.5860.25.camel@yavin4.calibre-solutions.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 27, 2005 at 07:47:29AM +0100, Angus MacGyver wrote:
> On Tue, 2005-07-26 at 23:26 +0200, Pawel Jakub Dawidek wrote:
> > On Tue, Jul 26, 2005 at 10:04:09PM +0100, Angus MacGyver wrote:
> > +> > Could you paste output of:
> > +> > 
> > +> > 	# gmirror status md0
> > +> > 
> > +> > ?
> > +> 
> > +> Of course...
> > +> 
> > +> corsec# gmirror status md0
> > +>       Name    Status  Components
> > +> mirror/md0  COMPLETE  da0a
> > +> corsec#
> > +> 
> > +> (and for good measure md1)
> > +> 
> > +> corsec# gmirror status md1
> > +>       Name    Status  Components
> > +> mirror/md1  COMPLETE  da0b
> > +>                       da1b
> > +> 
> > +> 
> > +> Now, what I haven't yet done, is to insert what is the second disk into
> > +> the mirror, but i have all data on md0 when I mount it....
> > +> 
> > +> Why haven't i done it? 
> > +> Simple paranoia I guess... 
> > +> I wanna proove I can boot off the mirror md0 before I blow away data on
> > +> da0a and insert that into the mirror....
> > +> Failure to confirm I can boot off /dev/mirror/md0 could easily mean i
> > +> have a system that doesn't boot, and that ain't good to man nor beast...
> > 
> > Do you have /dev/mirror/md0 as a root partition in fstab on md0 and da0a?
> > 
> 
> whoa...
> just re-read what i put yesterday..
> 
> "before I blow away data on da0a "
> 
> I meant to say blow the data away on da1a, i.e. the / that is currently
> mounted, when it should be /dev/mirror/md0 according to fstab.
> 
> My fstab only has refereence to / as /dev/mirror/md0 and nothing else.
> 
> /dev/mirror/md0         /               ufs     rw      1   1
> 
> 
> I obviously installed the system onto the second disk to start with, and
> issue boot dka1 to boot onto the second disk from SRM (not made anything
> permanent yet in SRM)

The loader should read in /etc/fstab and pass the root_path to
the kernel.
Since SRM offers only one disk to loading software loader there is
no doubt that it reads from the same disk you to SRM to boot from.
There are two points required for this to work.
First, you need the kernel to initialize the geom drives, which means
that your kernel needs support for it, either compiled in, or using
a preloaded module.
This point seems to work acording your logs.
Second, the loader needs to have the right value - you can try
redefining the value on the loader prompt by setting
vfs.root.mountfrom=/dev/mirror/md0 or boot_askname=YES.
Don't know how it reads a wrong fstab entry, but something goes wrong
at this point.
You don't have build a kernel with a compiled in root_dev, don't you?

-- 
B.Walter                   BWCT                http://www.bwct.de
bernd@bwct.de                                  info@bwct.de




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