Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2006 13:43:06 -0800
From:      Brent Hostetler <brenthostetler@gmail.com>
To:        Eric Anderson <anderson@centtech.com>
Cc:        pjd@freebsd.org, freebsd-geom@freebsd.org
Subject:   Re: Problems setting up gmirror of live system
Message-ID:  <aadbc3580601081343s7392ae52o680c30acf1f4c282@mail.gmail.com>
In-Reply-To: <43BE6E41.1060509@centtech.com>
References:  <aadbc3580601031530i2458cca7r622b55a6b1d6036@mail.gmail.com> <20060104201149.GC17950@garage.freebsd.pl> <aadbc3580601052207r1f505f8bj6563f3887656dd13@mail.gmail.com> <43BE6E41.1060509@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/6/06, Eric Anderson <anderson@centtech.com> wrote:
> Brent Hostetler wrote:
>
> >How do I resolve this issue? Is this just on config file issue or
> >something with MBR?
> >
> >Since when done, the machine will be using the onboard ide, two ide
> >pci cards and a serial ide pci card will I be having issues with the
> >drive order getting screwy???
> >
> >
>
>
> You might just have to reload the mbr.  Read man boot0cfg for more detail=
s..
>
> Eric

Well,

I have discovered that I am very confused on how FreeBSD handles its
boot stages... Now I have managed to hose the drive to the point that
it will not boot with drives on either controller.

I did did a boot0cfg -B on both drives and then moved them to the new
controller and rebooted. I get to the first two stages fine:

     >> FreeBSD/i386 BOOT
     Default: 0:ad(0,a)/boot/loader
     boot:

I can issue the following:

boot: 0:ad(0,a)/boot/?

and see the listing of the files including loader.

However, once the loader tries to go my machine hangs with the following:

BTX loader 1.00 BTX version 1.01
Consoles: internal video/keyboard
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 640kb/490432kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(root@x64.samsco.home, Thu Nov 3 07:33:10 UTC 2005)
-

And the machine goes no further...

At this point I have pulled one of the mirrored disks so hopefuly in
the process of learning whats going on I keep one valid drive.

I can boot with fixit CDROM and mount the drive and see all the data
is fine and dandy, just cant boot.. Seems there is a config issue with
the loader??

Any help would be appreciated! Im pulling my hair out reading the man
pages trying to figure this out...

Thanks,
Brent

-----
Misc Info.

Fixit# fdisk -s ad0
/dev/ad0: 4961616 cyl 1 hd 63 sec
Part            Start            Size Type Flags
    1:                63   83885697 0xa5 0x80
    2:     83886201 228695607 0xa5 0x00

Fixit#  boot0cfg -v ad0
#      flag     start chs    type         end chs         offset     =20
      size
1     0x80     0:  1: 1       0xa5       275: 15:63           63       8388=
5697
2     0x00  276   7: 1      0xa5       852L 15:63   83886201    228695607

version=3D1.0  drive=3D0x80  mask=3D0xf  ticks=3D182
options=3Dpacket,update,nosetdrv
default_selection=3DF1 (Slice 1)

Fixit# mount /dev/ad0s1a /mnt
Fixit# cd /mnt/boot
Fixit# ls
beastie.4th      boot2             kernel/        loader.rc     screen.4th
boot                cdboot           loader*        mbr            support.=
4th
boot0              defaults/         loader.4th    modules/
boot0sio          device.hints    loader.conf  pxeboot
boot1               frames.4th     loader.help  reboot.core
Fixit# cat loader.conf
geom_mirror_load=3D"YES"



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