From owner-freebsd-stable@FreeBSD.ORG Fri Oct 29 21:19:06 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 877DC1065670 for ; Fri, 29 Oct 2010 21:19:06 +0000 (UTC) (envelope-from telbizov@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 35C968FC0A for ; Fri, 29 Oct 2010 21:19:05 +0000 (UTC) Received: by qyk2 with SMTP id 2so2469512qyk.13 for ; Fri, 29 Oct 2010 14:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=mAh5UqY9H2tLWcIqmZXWlT3J3KeLPkro22E65LnhqTI=; b=JaT8nbrt4DteWzO+3TLp+hWGk/edqxVKltrh0ylas4BoQmIVj3ajSrEV6fJqmBUrQi APitAXAR+buv8tjLJg/MXb8ANZVQC+p3NWgSBrQPYP65XuP2psxQZbVFqKimtDEs4P7M 6URs/g9ZGWmv6YTO556VvHgJi8vfHJYvgqzqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FDmKG1N4yLx6fKkt+9jO5UPlqiTvKN/bME5y9YgjXHCbv836RsaGVwaJgZIJPeuApE VO71zbx2hwHP+grMC+/lgjqdV27JiTgpP2k2u6xuQ7TAdTu96q7drGi/+KM/K8qjekG+ iENbsjroOTD155WFGv7J6Xw905XP2Ab4Rf9LA= MIME-Version: 1.0 Received: by 10.224.29.3 with SMTP id o3mr601837qac.334.1288387145383; Fri, 29 Oct 2010 14:19:05 -0700 (PDT) Received: by 10.229.110.12 with HTTP; Fri, 29 Oct 2010 14:19:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 29 Oct 2010 14:19:05 -0700 Message-ID: From: Rumen Telbizov To: Artem Belevich Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 21:19:06 -0000 Artem, > If you have old copy of /boot/zfs/zpool.cache you could try use "zpool > import -c old-cache-file". > Unfortunately I don't :( I'll make a habit of creating a copy from now on! > > 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. > You're right. zpool export tank seems to remove the cache file so import has nothing to consult so doesn't make any difference. I guess my only chance at this point would be to somehow manually edit the zpool configuration, via the zpool.cache file or not, and substitute mfid with gpt/disk?! Is there a way to do this? Thanks, -- Rumen Telbizov http://telbizov.com