From owner-freebsd-questions@FreeBSD.ORG Sun Sep 2 03:14:07 2007 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 1EB4416A419 for ; Sun, 2 Sep 2007 03:14:07 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 9FBCE13C45A for ; Sun, 2 Sep 2007 03:14:06 +0000 (UTC) (envelope-from modulok@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so639113rvb for ; Sat, 01 Sep 2007 20:14:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=X5tu/JeY3IRYyP03yMQ0aFKyyAQ+nnedI+xxi/ktfCXHxA1YMI2VkipPUPS0I48lEjRrjS5JUzigAa/Q20JabcWH5O5yoCKmlZYia4c1luWtekUIK8PmBPvGAUIn15WndOJXizW5Wj7laGegBbn7DndPCBOvqdKX+S+/6yT0TVQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QiILyybkc7HYjHn9/w7O1lke7Ubw2GgCvGeisR2xNa2SjRzCL3K/pjmBhrMl/rwPACTBb25HAVSClsAfRtOVYmLlgk8zlAhhvdybbloF5WCkbGE/Ihq/8NAcR2NHyUGqBA5F4NReFqw1Cablq/2wjOPyqYR0nDyY4dgGQbWRLHA= Received: by 10.141.203.12 with SMTP id f12mr1396623rvq.1188702846459; Sat, 01 Sep 2007 20:14:06 -0700 (PDT) Received: by 10.140.170.12 with HTTP; Sat, 1 Sep 2007 20:14:05 -0700 (PDT) Message-ID: <64c038660709012014s2ce2751bl3c2618538411d220@mail.gmail.com> Date: Sat, 1 Sep 2007 21:14:05 -0600 From: Modulok To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: root on gmirror and disk failure... 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: Sun, 02 Sep 2007 03:14:07 -0000 BACKGROUND I'm experimenting with gmirror on the root partition on a test system running FreeBSD 6.1-RELEASE. I have two physical disks on the same IDE header (master and slave). This was setup following the tutorial in the handbook. The system boots and mounts root from /dev/mirror/gm0s1a as expected. The reported status of the mirror was active, complete, up and running with both disks synced. Everything is as it should be. PROBLEM When I simulate a disk failure on the slave drive (the first consumer in the mirror), by disconnecting the power input and booting the system, the following occurs: 1. The BIOS complains of a disk error, but otherwise continues to boot. 2. The master boot record is found and boot is executed. 3. boot complains, letting me know the default disk it boots from is gone and prompts for manual specification. This is fine and I specify the alternate disk to boot from. 4. loader(8) is found and presents its menu, it starts the automatic boot sequence with the default kernel. 5. It successfully finds the kernel and executes it. 6. The kernel output "Trying to mount root from ufs:/dev/mirror/gm0s1a", fails and I am prompted for the location of a root partition. I digress just a moment here as the system appears to hang, as keyboard input is not detected and at this point on the boot phase I have no other metric from which to judge whether it is actually hanged or not. The keyboard was detected prior to this failure, as reported in the kernel's output and the keyboard is known to work on this system. So that's weird, but it even if I could type in something, it wouldn't matter because it's looking in the correct location for root, it's just that location doesn't exist...moving right along. The provider, /dev/mirror/gm0, is not being created. This is significant for obvious reasons: no mirror means no provider which means no root. The module /boot/kernel/geom_mirror.ko is loaded, as I have manually loaded it via the loader(8) prompt and attempted the simulated failure again with identical results. It's the provider that isn't being created, for whatever reason. Suggestions? (Other than purchasing a hardware RAID card). -Modulok-