Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2010 13:36:29 -0700
From:      Artem Belevich <fbsdlist@src.cx>
To:        Rumen Telbizov <telbizov@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Degraded zpool cannot detach old/bad drive
Message-ID:  <AANLkTikJp=1An8G%2BzTBbXBPyq8--Kq=dNN=_A3TkmsjE@mail.gmail.com>
In-Reply-To: <AANLkTimD_f1pZHy7cq4jA%2BSZwdQRmotndSiukpNvwi6Y@mail.gmail.com>
References:  <AANLkTi=EWfVyZjKEYe=c0x6QvsdUcHGo2-iqGr4OaVG7@mail.gmail.com> <AANLkTinjfpnHGMvzJ5Ly8_WFXGvQmQ4D0-_TgbVBi=cf@mail.gmail.com> <AANLkTi=h6ZJtbRHeUOpKX17uOD5_XyYmu01ZTTCCKw=_@mail.gmail.com> <AANLkTikPqgoxuYp7D88Dp0t5LvjXQeO3mCXdFw6onEZN@mail.gmail.com> <AANLkTimMM82=rqMQQfZZYTcaM_CU%2B01xPeZUGAik8H3v@mail.gmail.com> <AANLkTinKpMLeJOd_V7uxyAFqcStoGwV9PfTJDLDPq3By@mail.gmail.com> <AANLkTiktrL7LHkh3HLGqZeZx7ve6arBrs8ZE57NwtfN1@mail.gmail.com> <AANLkTinc1yQrwVsf%2Bk9LW5J50twbtcQ-d1SV_rny06Su@mail.gmail.com> <AANLkTimD_f1pZHy7cq4jA%2BSZwdQRmotndSiukpNvwi6Y@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, Oct 29, 2010 at 11:34 AM, Rumen Telbizov <telbizov@gmail.com> 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.
>       children[0]
>              type='disk'
>              id=0
>              guid=1641394056824955485
>              path='/dev/mfid33p1'
>              phys_path='/pci@0,0/pci8086,3b42@1c/pci15d9,c480@0/sd@1,0:a'
>              whole_disk=0
>              DTL=55

Yes, phys_path does look like something that came from solaris.

> Compared to a disk from a partner server which is fine:
>       children[0]
>              type='disk'
>              id=0
>              guid=5513814503830705577
>              path='/dev/gpt/disk-e1:s6'
>              whole_disk=0

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikJp=1An8G%2BzTBbXBPyq8--Kq=dNN=_A3TkmsjE>