From owner-freebsd-questions@FreeBSD.ORG Wed Sep 30 12:40:42 2009 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 A4CD71065676 for ; Wed, 30 Sep 2009 12:40:42 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id 1F3D58FC0C for ; Wed, 30 Sep 2009 12:40:41 +0000 (UTC) Received: by bwz27 with SMTP id 27so4585629bwz.43 for ; Wed, 30 Sep 2009 05:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=T2Z197JYojR9oZjqwRjkalacnOJZir/nrFsjt9bj5Xg=; b=gJWrMsuYxnGX9B58OllRl+WKMQwAH2h055MOeFxtDISuuriWTTxIVWMDavijj5MfAb vviLNZx6H9SNiiIE/fY6RS+6DOgWw4UDTJ1njRPfT68E8Wf8H1Gu0mlWUEww4fkKTPDO ieiXc6PvrQjG8xokSq9ADTRzCubXX4hG+IGLg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=hAfYZ41J35sp8DjeOS8HUltF9E57tzMeWPnflD4JeEeY5kHjxOYJHRZn60jpdfgryu Mk5F2r4S1hlVFdt7pmVs4rGh0JoUPiGLRrbMwuT/En27BaH6gB3NZ4916Qj//vPUJ6nz DPIMYaXNl74pZiaEJ9ga79WPSbNwAjfoyLXFA= MIME-Version: 1.0 Received: by 10.239.154.10 with SMTP id b10mr519105hbc.198.1254314441019; Wed, 30 Sep 2009 05:40:41 -0700 (PDT) In-Reply-To: <4AC326DA.1070005@chamonix.reportlab.co.uk> References: <4AC07E69.30800@chamonix.reportlab.co.uk> <6201873e0909280710n2a5fc7beo99706e1b87080f73@mail.gmail.com> <4AC0D9CF.6000309@chamonix.reportlab.co.uk> <6201873e0909281056m1660351arc38c5faa975fef02@mail.gmail.com> <4AC326DA.1070005@chamonix.reportlab.co.uk> Date: Wed, 30 Sep 2009 13:40:40 +0100 Message-ID: From: krad To: Robin Becker Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Adam Vande More , freebsd-questions@freebsd.org Subject: Re: fix remote degraded gmirror 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: Wed, 30 Sep 2009 12:40:42 -0000 2009/9/30 Robin Becker > ......... > >> >> a simple >> >> dd if=/dev/zero of=/dev/adX bs=1M count=1 >> >> would fix that if nothing else >> >> if there's was no existing label, there is nothing to do except gmirror >> man >> instructions. Gmirror is block level mirroring which why no other steps >> are >> needed. >> >> well now I really need advice, the data centre guy successfully inserted > another disk in the right place and it appears to be the same model. > However, smartctl -a /dev/ad4 seems to show a number of errors and many of > the indicators are prefail or old_age. > > In addition the disk doesn't have exactly the same length so when I tried > to insert gmirror complains that it is too small. > > What are my options? > -- > Robin Becker > > _______________________________________________ > 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" > 1st thing sure up what you have. create another mirror, partition, newfs it up and rsync the the contents of the active drive over to it. Keep the rsync every 10 minutes or so depeneding on how much data you have and what impact it has on system resources You then have two options boot off the new drive, destroy the gmirror on the old drive and add it to the new mirror on the old drive or buy another new drive, Make sure its bigger this time. Add it to the box and add it the the old gmirror you can then leave the 1st new drive in there potentially and have it as a hot back