From owner-freebsd-fs@freebsd.org Thu Nov 19 09:41:14 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25B43A32CC5 for ; Thu, 19 Nov 2015 09:41:14 +0000 (UTC) (envelope-from rs@bytecamp.net) Received: from mxout01.bytecamp.net (mxout01.bytecamp.net [212.204.60.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAB9213B0 for ; Thu, 19 Nov 2015 09:41:13 +0000 (UTC) (envelope-from rs@bytecamp.net) Received: by mxout01.bytecamp.net (Postfix, from userid 1001) id 31F1E30FD48; Thu, 19 Nov 2015 10:41:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bytecamp.net; h=to:from:subject:message-id:date:mime-version:content-type:content-transfer-encoding; s=20140709; bh=nXtC0Kl58fIOqbfR3FpJJ7zj6lk=; b=E8cgVe8WfEpX8jO26qyuj8r0Yto5hEv5LofSBwyG/+CxK8rwnivIeDl+9O6HM628EM8GAXN2i3wFnQ1aMHthXEOEyY/buO9wSfWoWhhoUVmj1ef386jQWKiJT0NbFerpNfEEMZireOzh+1/g8yVrN7tw1+zoijgoHv878tD0+S4= Received: from mail.bytecamp.net (mailstore.bytecamp.net [212.204.60.20]) by mxout01.bytecamp.net (Postfix) with ESMTP id 03C1530FD41 for ; Thu, 19 Nov 2015 10:41:04 +0100 (CET) Received: (qmail 60619 invoked by uid 89); 19 Nov 2015 10:41:04 +0100 Received: from stella.bytecamp.net (HELO ?212.204.60.37?) (rs%bytecamp.net@212.204.60.37) by mail.bytecamp.net with AES128-SHA encrypted SMTP; 19 Nov 2015 10:41:04 +0100 To: freebsd-fs@freebsd.org From: Robert Schulze Subject: filesystem deadlock, process in vodead state X-Enigmail-Draft-Status: N1110 Organization: bytecamp GmbH Message-ID: <564D9930.1080509@bytecamp.net> Date: Thu, 19 Nov 2015 10:41:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2015 09:41:14 -0000 Hi, on an SSD-only mirrored pool which was idle for about 30 days, I noticed a stuck chksetuid run from periodic. The "find" process is stuck on vodead state. I found out which directory is affected via procstat -f and tried to ls it, now this ls is stuck in above state, too (no surprise). procstat -kk output is: 1816 102485 find - mi_switch+0xe1 sleepq_wait+0x3a _sleep+0x287 vnode_create_vobject+0x100 zfs_freebsd_open+0xf5 VOP_OPEN_APV+0xa1 vn_open_vnode+0x234 vn_open_cred+0x33e kern_openat+0x26f amd64_syscall+0x33a Xfast_syscall+0xfb 71376 102400 ls - mi_switch+0xe1 sleepq_wait+0x3a _sleep+0x287 vnode_create_vobject+0x100 zfs_freebsd_open+0xf5 VOP_OPEN_APV+0xa1 vn_open_vnode+0x234 vn_open_cred+0x33e kern_openat+0x26f amd64_syscall+0x33a Xfast_syscall+0xfb The processes are not killable. So what is this state and how to fix the deadlocked filesystem? I'm able to give any debugging information, just give me some pointers. # uname: FreeBSD 10.2-RELEASE-p5 #1 r289218 # zpool status pool: home state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM home ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/mirror0-a ONLINE 0 0 0 gpt/mirror0-b ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 gpt/mirror1-a ONLINE 0 0 0 gpt/mirror1-b ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 gpt/mirror2-a ONLINE 0 0 0 gpt/mirror2-b ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 gpt/mirror3-a ONLINE 0 0 0 gpt/mirror3-b ONLINE 0 0 0 errors: No known data errors with kind regards, Robert Schulze