From owner-freebsd-geom@FreeBSD.ORG Mon Jun 6 14:18:20 2005 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E043416A41C for ; Mon, 6 Jun 2005 14:18:20 +0000 (GMT) (envelope-from kgunders@teamcool.net) Received: from koyukuk.teamcool.net (koyukuk.teamcool.net [209.161.34.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79F9443D49 for ; Mon, 6 Jun 2005 14:18:20 +0000 (GMT) (envelope-from kgunders@teamcool.net) Received: from koyukuk.teamcool.net (localhost [127.0.0.1]) by koyukuk.teamcool.net (TeamCool Rocks) with ESMTP id 7FAF0F7F9 for ; Mon, 6 Jun 2005 08:18:19 -0600 (MDT) Received: from cochise.teamcool.net (unknown [192.168.1.57]) by koyukuk.teamcool.net (TeamCool Rocks) with ESMTP id 4AC31F7F7 for ; Mon, 6 Jun 2005 08:18:19 -0600 (MDT) Date: Mon, 6 Jun 2005 08:21:55 -0600 From: Ken Gunderson To: freebsd-geom@freebsd.org Message-Id: <20050606082155.449dfbe8.kgunders@teamcool.net> In-Reply-To: <88B5DDE8C1A06741B754B910DE2DEFBB49A915@HERMES.swistgroup.com> References: <88B5DDE8C1A06741B754B910DE2DEFBB49A915@HERMES.swistgroup.com> Organization: Teamcool Networks X-Mailer: Sylpheed version 1.9.12 (GTK+ 2.6.7; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: Gmirror - need information and help X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2005 14:18:21 -0000 On Mon, 6 Jun 2005 12:39:30 +0200 "Conrad Burger" wrote: > Hi all > > Hope someone can help me with the following problem(s). > > The scenario: 2 system and 5 disks. Freebsd 5.3-p5 > > I created a 3 member gmirror mirror on system1. > Removed one member(disk) from system1. (Shut the system and removed disk) > Then inserted the disk in system2 and booted the system. > > Now the problem is: on system1 I have a "2 member gmirror" and on system2 I have > a "1 member gmirror. And I can't add more members to the gmirror on system2. > > System1's gmirror is in a degraded state. How do I "tell" gmirror to remove the > "removed disk" from its configuration and change its state to COMPLETE? > > What do I need to do to be able to add a member to System2's gmirror? > > Below are the output of how I tried to add another member to system2's gmirror > and the output of "gmirror list" on both systems. > > Please help, I have been struggling with this problem for the last week. The > systems need to go into production! "man gmirror" should give you most of what you need.... Basically you need to tell system1 to "forget" about the provider you removed and you need to clear the metadata on that disk. The metadata is written at the end of the disk. diskinfo -v should tell you how many sectors you need to skip, e.g.: dd if=/dev/zero of=/dev/whatever bs=512 count=100 skip=99 less than the number of sectors diskinfo -v returns. Or maybe just put the disk backinto system1 and do a "gmirror clear" this time before you remove it...;-) -- Best regards, Ken Gunderson Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon?