From owner-freebsd-questions@FreeBSD.ORG Fri Feb 10 16:31:29 2012 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 AF1AB106564A for ; Fri, 10 Feb 2012 16:31:29 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 74BA78FC08 for ; Fri, 10 Feb 2012 16:31:29 +0000 (UTC) Received: by iaeo4 with SMTP id o4so668209iae.13 for ; Fri, 10 Feb 2012 08:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ee8JHvBK4H3BL0wirrhyGs+h12nkUNYt95kn1hTMLP8=; b=qO3qtNKzxqbqSk8zLWezN3gFrXjjheTFQ0vJesz8qyCH+XZOY/GB0o7OR2angaixtW 7jomaW7nhcke11DCsKLa+7bS+Se46M9URM0v7CafCo5FfhWoMQRyvqN6ls/MAHv0a9R/ VNTP3m/69U1M0HalveX++usemehqQlC/eZxkk= Received: by 10.43.52.129 with SMTP id vm1mr10184626icb.15.1328891489111; Fri, 10 Feb 2012 08:31:29 -0800 (PST) Received: from [192.168.1.3] (c-98-212-197-29.hsd1.il.comcast.net. [98.212.197.29]) by mx.google.com with ESMTPS id ch2sm9881275igb.4.2012.02.10.08.31.27 (version=SSLv3 cipher=OTHER); Fri, 10 Feb 2012 08:31:28 -0800 (PST) Message-ID: <4F35465E.2020409@gmail.com> Date: Fri, 10 Feb 2012 10:31:26 -0600 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F35187D.4090902@webtent.org> In-Reply-To: <4F35187D.4090902@webtent.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Resetting RAID1 drive as Non-RAID 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, 10 Feb 2012 16:31:29 -0000 On 2/10/2012 7:15 AM, Robert Fitzpatrick wrote: > I have a FreeBSD 9.0 server with an Intel RAID card that has two array > mirrors of which one has failed. The remote host was not responding and > had it reset to find in the RAID utility one of the drives had failed > one of the RAID 1 arrays. Perhaps I shouldn't have, but I told the > utility to use the drive again and it added back to the array with the > 'Rebuild' message on the array, which means to rebuild the array within > the OS. I went into the system as single user mode and did a 'fsck -y' > on all the /etc/fstab mounts... > >> backup# cat /etc/fstab >> # Device Mountpoint FStype Options >> Dump Pass# >> /dev/ar0s1b none swap sw 0 0 >> /dev/ar0s1a / ufs rw 1 1 >> /dev/ar0s1f /home ufs rw 2 2 >> /dev/ar0s1d /usr ufs rw 2 2 >> /dev/ar0s1e /var ufs rw 2 2 >> #/dev/ar1s1d /data ufs >> rw,userquota,groupquota 2 2 >> /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > The drive that failed is in the ar1 array. I can mount /data in single > user mode and see all files fine, but it continues to report INCORRECT > BLOCK COUNT messages and UNEXPECTED SOFT UPDATE INCONSISTENCY errors as > well as allocated frags marked free and reports CLEAN no matter how many > times I run fsck on the drive. I can mount the /data partition in > normal mode, but will receive errors about 'lock order reversal' when > doing umount on the drive or it will lock the system after several > minutes with panic error if left mounted. > > Assuming my problem is that the drive needs to be replaced, now that the > drive is in the array again, the utility no longer indicates which drive > is bad. I believe I remember which it was, but not 100% sure. Is there a > way to determine which physical drive is bad using FreeBSD? If able to > reset to Non-RAID, would that allow FreeBSD to mount the DEGRADED array > and continue to access to the data or does the drive need to be pulled > in order to possibly satisfy FreeBSD to allow me to mount RAID-1 array > DEGRADED? In the end, I am hoping to mount this array with the one drive > until I can get the replacement drive installed. Thanks for any help, I > realize some of this is related to the Intel RAID, just wanted to see if > someone was familiar with how to recover from such a situation. > > _______________________________________________ > 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" Using smartctl might be able to tell you which drive had a problem. It's not a guarantee though. Try the simple method, open up the case, unplug one drive and boot. If it works, you pulled the right drive. If it doesn't, try the other instead. If neither drive works right, attempt to update your backup asap.