From owner-freebsd-stable@FreeBSD.ORG Fri Oct 29 07:26:57 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67DD8106566B for ; Fri, 29 Oct 2010 07:26:57 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 12B8E8FC0C for ; Fri, 29 Oct 2010 07:26:56 +0000 (UTC) Received: by qyk7 with SMTP id 7so5711593qyk.13 for ; Fri, 29 Oct 2010 00:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=dEwZmtD0FozCJ4MphGUewgj/I6bJl28dwGAsZMzo/DI=; b=tm42dhfEQeNZYvwjRKn6wowdKNnhePlIvsLE+2cOO/IdK64FL/UH1B/Q/N4yjTnGIt Dij5xE1g0LDTQI0v9s425OXLdjTqOU//Ku1xYxd7XJG32ijxqHXl4PxnDsBNjEoKLVA/ bonxuAkCvpYpGV7CFwDGMDJ8oXTDPSApd1hBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=k3L7AzYNau0GdgYLLXUPtMHdrAKOyTgZbnRLoakZkbYqQGKAspeFYQ7xzRTsLXnwg2 zHQhyhb1VwRsfhDJ84EJXPgvjdCi52DI4DsOcQa5V3XmyAeIOGW2EZmdqtWXsUL/sK+q MzGqdB8VJ8E0b3OEzaFNEJ0YjQhkp+Uvm5sb4= MIME-Version: 1.0 Received: by 10.229.250.193 with SMTP id mp1mr11390903qcb.129.1288337216211; Fri, 29 Oct 2010 00:26:56 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.220.180.2 with HTTP; Fri, 29 Oct 2010 00:26:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 Oct 2010 00:26:56 -0700 X-Google-Sender-Auth: uXqqmI6ZOxYqxlAid5uFL1lMTfk Message-ID: From: Artem Belevich To: Rumen Telbizov Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org Subject: Re: Degraded zpool cannot detach old/bad drive X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2010 07:26:57 -0000 On Thu, Oct 28, 2010 at 10:51 PM, Rumen Telbizov wrote: > Hi Artem, everyone, > > Thanks for your quick response. Unfortunately I already did try this > approach. > Applying -d /dev/gpt only limits the pool to the bare three remaining disks > which turns > pool completely unusable (no mfid devices). Maybe those labels are removed > shortly > they are being tried to be imported/accessed? In one of the previous emails you've clearly listed many devices in /dev/gpt and said that they've disappeared after pool import. Did you do "zpool import -d /dev/gpt" while /dev/gpt entries were present? > What I don't understand is what exactly makes those gpt labels disappear > when the pool is imported and otherwise are just fine?! This is the way GEOM works. If something (ZFS in this case) uses raw device, derived GEOM entities disappear. Try exporting the pool. Your /dev/gpt entries should be back. Now try to import with -d option and see if it works. You may try bringing the labels back the hard way by detaching raw drive and then re-attaching it via the label, but resilvering one drive at a time will take a while. --Artem