From owner-freebsd-questions@FreeBSD.ORG Fri Jan 22 18:30:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3280C106566C for ; Fri, 22 Jan 2010 18:30:36 +0000 (UTC) (envelope-from nvidican@m2.vidican.com) Received: from mail-iw0-f177.google.com (mail-iw0-f177.google.com [209.85.223.177]) by mx1.freebsd.org (Postfix) with ESMTP id 032668FC1F for ; Fri, 22 Jan 2010 18:30:35 +0000 (UTC) Received: by iwn7 with SMTP id 7so1194099iwn.7 for ; Fri, 22 Jan 2010 10:30:35 -0800 (PST) MIME-Version: 1.0 Sender: nvidican@m2.vidican.com Received: by 10.231.146.129 with SMTP id h1mr420474ibv.71.1264185035546; Fri, 22 Jan 2010 10:30:35 -0800 (PST) X-Originating-IP: [136.2.1.101] In-Reply-To: <4B59E61B.3090504@nlcc.us> References: <4B59E61B.3090504@nlcc.us> Date: Fri, 22 Jan 2010 13:30:35 -0500 X-Google-Sender-Auth: fda0a5c48e91b642 Message-ID: <795fc2b81001221030n321c994cv9fd3c76b981fead0@mail.gmail.com> From: Nathan Vidican To: Billy Newsom Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: How to troubleshoot a frozen boot sequence X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 18:30:36 -0000 To me, it sounds like you have two issues to deal with here: #1 - booting off of the twed0 disk, what is your systems' BIOS currently set to boot from, from the way you describe it's almost as if the system is booting from ad0 - in which case yes, you will have to put a valid boot config onto twed0 #2 - you could add the flag 'noauto' to ad0 from within fstab - this will allow the system to boot without mounting the disk (alleviating the dreaded single-user-mode). Use a startup script in /usr/local/etc/rc.d to then mount the disk if available on bootup. I've done similar setups to this before where we were using external USB drives for backup and weren't 100% sure they'd always be connected in the case a server might be rebooted - worst case, you'll end up with it not mounted, but the system will still be up at least. -- Nathan Vidican nathan@vidican.com On Fri, Jan 22, 2010 at 12:53 PM, Billy Newsom wrote: > I am doing a test run on a production server. It has 2 hard drives. > > ad0 (mounted on /disk250 in a single slice plus SWAP) > twed0 (mounted on / /var /usr and a SWAP) > > The twed0 is a hardware mirror and my main drive. > ad0 is just for backups. > > What the issue is, and you probably know where I'm heading. The boot > process freezes if I remove the ad0 (to test a drive failure condition) > > It freezes after saying: > BTX boot loader.... etc. > > FreeBSD/i386 bootstrap loader 1.1 > It spins for a second, then stops... unless I have ad0 in the computer. > /boot/kernel/kernel text=0x7b03a0 data=0xcdee0 / > > And it never gets to the boot menu. > > So: > > 1. Should I put a new boot0config on the twed0 drive? If so do I boot from > a CD to do that? > > I need to potentially do something also to my disk labels and my fstab so > that I don't boot to single user mode if drive ad0 fails. I haven't done > this exact type of thing before, so I am looking for a little help. > > my fstab: > /dev/ad0s1b none swap sw 0 0 > /dev/twed0s1b none swap sw 0 0 > /dev/twed0s1a / ufs rw 1 1 > /dev/ad0s1d /disk250 ufs rw 2 2 > /dev/twed0s1e /tmp ufs rw 2 2 > /dev/twed0s1f /usr ufs rw 2 2 > /dev/twed0s1d /var ufs rw 2 2 > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > > I tried to read the MBR from the twed0 drive, and the program couldn't read > it. The one from the ad0 drive is readable and I saved a copy of it. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >