From owner-freebsd-questions@FreeBSD.ORG Thu May 4 02:13:15 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FE7416A400 for ; Thu, 4 May 2006 02:13:15 +0000 (UTC) (envelope-from dmehler26@woh.rr.com) Received: from ms-smtp-02.ohiordc.rr.com (ms-smtp-02.ohiordc.rr.com [65.24.5.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id AAE8243D49 for ; Thu, 4 May 2006 02:13:14 +0000 (GMT) (envelope-from dmehler26@woh.rr.com) Received: from satellite (cpe-65-31-41-159.woh.res.rr.com [65.31.41.159]) by ms-smtp-02.ohiordc.rr.com (8.13.6/8.13.6) with SMTP id k442D9oB026813; Wed, 3 May 2006 22:13:10 -0400 (EDT) Message-ID: <015d01c66f1e$cb4b0070$0200a8c0@satellite> From: "Dave" To: Date: Wed, 3 May 2006 22:02:26 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: gmirror not synchronizing drives, second drive unbootable, fbsd 6.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dave List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2006 02:13:15 -0000 Hello, I've got a 6.0 box running gmirror as raid1. It uses gm0s1 and the two identical 40-gb ide drives are ad0 and ad1. I'm getting an error from smartd in smartmontools, installed from ports, about 5 unrecoverable sectors in drive ad0. I then noticed in my dmesg output that ad0 wasn't coming up, ad1 was. I then did a gmirror list and got only ad1 in the output, my raid array was in state dirty. So i tried to synchronize the two drives and was told unrecoverable error. I am now starting to think ad0 is going bad. I powered down the box and unplugged ad1 from the system and booted ad0 only. It booted, but the data was not up to date at all, i could tell from the perl version and some other packages i've since uninstalled. I then powered down and unplugged ad0 and reconnected ad1 and booted. I don't get any error, just a blinking cursor, which tells me that ad1 is actually being booted off ad0. Plug them both back in and ad1 is once again booting. This tells me that there might not be an mbr on the second drive, so ad0 has to boot it when it can't boot itself. What i'm wondering are: 1. Is there a way without destroying my setup to put an mbr on ad1, i do not want to loose data, so that unplugging ad0 and ad1 will boot 2. I'd like to confirm that ad0 is indeed going bad, and if it is replace it. 3. Once the status of these drives is verified i'd like to replace it with another 40 and sync up, can i do this without partitioning, just issue the gmirror command and will it copy partitions, slices, and data over to the blank drive Thanks a lot. Dave.