From owner-freebsd-stable@FreeBSD.ORG Fri Oct 29 20:36:30 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 A879C106564A for ; Fri, 29 Oct 2010 20:36:30 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 64CFC8FC16 for ; Fri, 29 Oct 2010 20:36:30 +0000 (UTC) Received: by iwn39 with SMTP id 39so4050478iwn.13 for ; Fri, 29 Oct 2010 13:36:29 -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:content-transfer-encoding; bh=2vef156h3a6p4GGmcVzBkbl/gUxBKW+PvVvXxgjeOnc=; b=TgYAinUZ3Hy949RL0hjXqUw91V8HfIRDVgZ12WuwTQoXrfqaW3zP3+uLMGmJQKLAZ1 AdSs5PO0GPtNK1ZYFqpxa0drnjQr+xXt8TjEICQn/j+Bjq90usFz0SIq+iZHHTtOfE/j aEhCy6mL+KutjYRt2ufWA4i7cNpG6ivWuYrG8= 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 :content-transfer-encoding; b=qF8/9V2G4MraMWyzrl3ralCRX4y7FFyUWHf6cCGqqaD470x2howpvAKXx0SADRPMrI ED432cKCtH7pdHTyS1NYGBmoCyi8CivOAu6KtvfIDUDK6mgeRKAIRg1ojc8FcqUaPBQI 25kF1RsHooHdI2RBp5BE5qefU1XSp6TF6I4Ic= MIME-Version: 1.0 Received: by 10.42.228.8 with SMTP id jc8mr4364449icb.86.1288384589782; Fri, 29 Oct 2010 13:36:29 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.220.180.2 with HTTP; Fri, 29 Oct 2010 13:36:29 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 Oct 2010 13:36:29 -0700 X-Google-Sender-Auth: fGsagLzbPZtIbgsvghtjpWsIH3c Message-ID: From: Artem Belevich To: Rumen Telbizov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 20:36:30 -0000 On Fri, Oct 29, 2010 at 11:34 AM, Rumen Telbizov wrote= : > The problem I think comes down to what I have written in the zpool.cache > file. > It stores the mfid path instead of the gpt/disk one. > =A0=A0 =A0 =A0children[0] > =A0=A0 =A0 =A0 =A0 =A0 =A0 type=3D'disk' > =A0=A0 =A0 =A0 =A0 =A0 =A0 id=3D0 > =A0=A0 =A0 =A0 =A0 =A0 =A0 guid=3D1641394056824955485 > =A0=A0 =A0 =A0 =A0 =A0 =A0 path=3D'/dev/mfid33p1' > =A0=A0 =A0 =A0 =A0 =A0 =A0 phys_path=3D'/pci@0,0/pci8086,3b42@1c/pci15d9,= c480@0/sd@1,0:a' > =A0=A0 =A0 =A0 =A0 =A0 =A0 whole_disk=3D0 > =A0=A0 =A0 =A0 =A0 =A0 =A0 DTL=3D55 Yes, phys_path does look like something that came from solaris. > Compared to a disk from a partner server which is fine: > =A0=A0 =A0 =A0children[0] > =A0=A0 =A0 =A0 =A0 =A0 =A0 type=3D'disk' > =A0=A0 =A0 =A0 =A0 =A0 =A0 id=3D0 > =A0=A0 =A0 =A0 =A0 =A0 =A0 guid=3D5513814503830705577 > =A0=A0 =A0 =A0 =A0 =A0 =A0 path=3D'/dev/gpt/disk-e1:s6' > =A0=A0 =A0 =A0 =A0 =A0 =A0 whole_disk=3D0 If you have old copy of /boot/zfs/zpool.cache you could try use "zpool import -c old-cache-file". I don't think zpool.cache is needed for import. Import should work without it just fine. Just remove /boot/zfs/zpool.cache (or move it somewhere else and then try importing with -d /dev/gpt again. --Artem