Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2010 04:39:31 +1100
From:      Jean-Yves Avenard <jyavenard@gmail.com>
To:        jhell <jhell@dataix.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: New ZFSv28 patchset for 8-STABLE: Kernel Panic
Message-ID:  <AANLkTim4MNpSMD8tV1FRpg=9OTE7-QAUMgLmy4amZXtG@mail.gmail.com>
In-Reply-To: <AANLkTim43e=jX5XLEmus_=DEHEj7yXg=TnuLwi8oX%2BDw@mail.gmail.com>
References:  <AANLkTinxvU_QuAd6SG1hig7-YeC8tCdwAmwgL1AXfHNN@mail.gmail.com> <AANLkTimNv1%2BfL2KUrxLoTO2oQ=ziOO6raWT5TMZJkH4f@mail.gmail.com> <4D181E51.30401@DataIX.net> <AANLkTim43e=jX5XLEmus_=DEHEj7yXg=TnuLwi8oX%2BDw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29 December 2010 03:15, Jean-Yves Avenard <jyavenard@gmail.com> wrote:

> # zpool import
> load: 0.00 =A0cmd: zpool 405 [spa_namespace_lock] 15.11r 0.00u 0.03s 0% 2=
556k
> load: 0.00 =A0cmd: zpool 405 [spa_namespace_lock] 15.94r 0.00u 0.03s 0% 2=
556k
> load: 0.00 =A0cmd: zpool 405 [spa_namespace_lock] 16.57r 0.00u 0.03s 0% 2=
556k
> load: 0.00 =A0cmd: zpool 405 [spa_namespace_lock] 16.95r 0.00u 0.03s 0% 2=
556k
> load: 0.00 =A0cmd: zpool 405 [spa_namespace_lock] 32.19r 0.00u 0.03s 0% 2=
556k
> load: 0.00 =A0cmd: zpool 405 [spa_namespace_lock] 32.72r 0.00u 0.03s 0% 2=
556k
> load: 0.00 =A0cmd: zpool 405 [spa_namespace_lock] 40.13r 0.00u 0.03s 0% 2=
556k
>
> ah ah !
> it's not the separate log that make zpool crash, it's the cache !
>
> Having the cache in prevent from importing the pool again....
>
> rebooting: same deal... can't access the pool any longer !
>
> Hopefully this is enough hint for someone to track done the bug ...
>

More details as I was crazy enough to try various things.

The problem of zpool being stuck in spa_namespace_lock, only occurs if
you are using both the cache and the log at the same time.
Use one or the other : then there's no issue

But the instant you add both log and cache to the pool, it becomes unusable=
.

Now, I haven't tried using cache and log from a different disk. The
motherboard on the server has 8 SATA ports, and I have no free port to
add another disk. So my only option to have both a log and cache
device in my zfs pool, is to use two slices on the same disk.

Hope this helps..
Jean-Yves



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim4MNpSMD8tV1FRpg=9OTE7-QAUMgLmy4amZXtG>