Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2018 14:47:01 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Alexander Leidinger <Alexander@leidinger.net>, freebsd-fs@freebsd.org
Subject:   Re: solaris assert triggered after panic in ZFS at mount time
Message-ID:  <cb63fc18-ee11-28db-ed40-5fb817400378@FreeBSD.org>
In-Reply-To: <20180713131227.Horde.S0gjPFGdZFb-68KklzQBXig@webmail.leidinger.net>
References:  <20180713131227.Horde.S0gjPFGdZFb-68KklzQBXig@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13/07/2018 14:12, Alexander Leidinger wrote:
> Hi,
> 
> This is with r336194.
> 
> I have a dataset which panics the machine at mount time (during reboot after a
> panic):
> ---snip---
> panic: solaris assert: dmu_object_claim(zfsvfs->z_os, obj,
> DMU_OT_PLAIN_FILE_CONTENTS, 0, obj_type, bonuslen, tx) == 0 (0x11 == 0x0), file:
> /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c, line: 819

Hmm, 0x11 == 17 == EEXIST.
So, this looks like a possible race in ZIL code.  The intent log contains a
record to create a file with certain ID, but that file already exists on disk.
I don't know what to recommend.  Maybe try to import discarding one transaction
group...  If you can afford losing data from that TXG.

> cpuid = 2
> time = 1531477050
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe009ab62a00
> vpanic() at vpanic+0x1a3/frame 0xfffffe009ab62a60
> panic() at panic+0x43/frame 0xfffffe009ab62ac0
> assfail3() at assfail3+0x2c/frame 0xfffffe009ab62ae0
> zfs_mknode() at zfs_mknode+0x1a1/frame 0xfffffe009ab62f30
> zfs_freebsd_create() at zfs_freebsd_create+0x56f/frame 0xfffffe009ab63000
> VOP_CREATE_APV() at VOP_CREATE_APV+0xd3/frame 0xfffffe009ab63030
> zfs_replay_create() at zfs_replay_create+0x60b/frame 0xfffffe009ab63250
> zil_replay_log_record() at zil_replay_log_record+0x215/frame 0xfffffe009ab633a0
> zil_parse() at zil_parse+0x2b5/frame 0xfffffe009ab635a0
> zil_replay() at zil_replay+0xec/frame 0xfffffe009ab63600
> zfsvfs_setup() at zfsvfs_setup+0xb5/frame 0xfffffe009ab63630
> zfs_mount() at zfs_mount+0x72f/frame 0xfffffe009ab637c0
> vfs_domount() at vfs_domount+0x734/frame 0xfffffe009ab639e0
> vfs_donmount() at vfs_donmount+0x807/frame 0xfffffe009ab63a90
> sys_nmount() at sys_nmount+0x50/frame 0xfffffe009ab63ac0
> amd64_syscall() at amd64_syscall+0x263/frame 0xfffffe009ab63bf0
> fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe009ab63bf0
> --- syscall (378, FreeBSD ELF64, sys_nmount), rip = 0x800369b3a, rsp =
> 0x7fffffffca98, rbp = 0x7fffffffcb10 ---



-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb63fc18-ee11-28db-ed40-5fb817400378>