From owner-freebsd-questions@FreeBSD.ORG Sat May 3 16:10:00 2008 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 11F3E106564A for ; Sat, 3 May 2008 16:10:00 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id BABB28FC13 for ; Sat, 3 May 2008 16:09:59 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from TEDSDSK (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with SMTP id m43G9Z1e086583; Sat, 3 May 2008 09:09:59 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Roberto Nunnari" , Date: Sat, 3 May 2008 09:11:05 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Importance: Normal In-Reply-To: <48177873.8080600@supsi.ch> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.freebsd-corp-net-guide.com [65.75.192.90]); Sat, 03 May 2008 09:09:59 -0700 (PDT) Cc: Subject: RE: raid1 + degraded (take out one disk) + fatal trap 12 on next reboot 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: Sat, 03 May 2008 16:10:00 -0000 Roberto, You can't simulate a disk drive failure that way. If you really want to know what's going on, the issue is that your pointing the swap to ar0. If you must get this booted again you can try booting into single user mode and editing /etc/fstab and pointing the partitions to /dev/ad0 instead of /dev/ar0 and booting. But this is an emergency action and is not recommended. If you want to simulate a drive failure, WHILE THE SYSTEM IS RUNNING pull the SATA connector on one drive. The system should NOT trap, it should simply print a error to the console and show it's gone into degraded mode. If you then reboot, the system may or may not come back up. You have to understand the approach of RAID mirroring. Basically this is poor-man's data protection. The idea is that a disk usually fails in the middle of the day during the worst possible time. When it does you do NOT want the server to stop or crash. You want it to keep running until the evening when you can spend a couple hours getting the disk replaced. (or until the next day when you can buy a replacement drive) When you have the replacement disk ready to plug into the system, you are supposed to run a full backup of your data on the degraded array just in case the reinsertion goes badly. I have found the safest is to leave the server alone and get the replacement disk ready. Wiping it in another system with dd if=/dev/zero of=/dev/ad1 bs=50k is the best policy before reinsertion. Follow the steps in the man page for reinsertion. Keep in mind that they don't always work. If they don't then you will have to wipe both disks and regenerate the array and reinstall the OS. That is why you make a backup first when the system is off-duty. Ted > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Roberto Nunnari > Sent: Tuesday, April 29, 2008 12:35 PM > To: freebsd-questions@freebsd.org > Subject: Re: raid1 + degraded (take out one disk) + fatal trap 12 on > next reboot > > > Nobody on this, please? :) > > > Roberto Nunnari wrote: > > Hi all! > > > > I'm playing with new HW and FreeBSD 6.3 and 7.0. > > > > I set up raid 1 on two sata disks (fakeraid on ICH9R) > > and as long as I can see, it seams to work very well. > > > > Now I'm trying to simulate 1 disk failure (I just take > > out a disk and boot again). Doesn't matter which of the > > two disks I take out, the bios correctly shows the raid > > as degraded and bootable, loads the FreeBSD loader, who > > loads the kernel and starts the boot. > > But when the kernel comes to the drives (or the swap?) > > it fatal traps 12. The trap descriptions sais that > > current process is 0 (swapper). > > > > Reading that I commented out the swap partition from fstab, > > but that doesn't help. > > > > How can I get the system to finish the boot? > > > > Thank you and best regards. > > > > _______________________________________________ > 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" >