From owner-freebsd-fs@FreeBSD.ORG Wed Feb 19 11:20:53 2014 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AC6C0CAC for ; Wed, 19 Feb 2014 11:20:53 +0000 (UTC) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E24F519FC for ; Wed, 19 Feb 2014 11:20:52 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA18273; Wed, 19 Feb 2014 13:20:44 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1WG5Cl-000KcR-PF; Wed, 19 Feb 2014 13:20:43 +0200 Message-ID: <53049354.3040700@FreeBSD.org> Date: Wed, 19 Feb 2014 13:19:48 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Kai Kockro , freebsd-fs@FreeBSD.org Subject: Re: ZFS directory not accessable References: <530487FD.10209@myphotobook.de> <53048D43.1010201@FreeBSD.org> <530490A8.70209@myphotobook.de> In-Reply-To: <530490A8.70209@myphotobook.de> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 11:20:53 -0000 on 19/02/2014 13:08 Kai Kockro said the following: > Hello Andriy, > > > ps -p 4883 > PID TT STAT TIME COMMAND > 4883 1- D+ 0:00,00 ls -G -f > > procstat -kk 4883 > PID TID COMM TDNAME KSTACK > 4883 100558 ls - mi_switch+0x194 > sleepq_wait+0x42 _sx_slock_hard+0x3b0 _sx_slock+0x3d > zap_get_leaf_byblk+0xbd zap_deref_leaf+0x68 fzap_cursor_retrieve+0xe7 > zap_cursor_retrieve+0x155 zfs_freebsd_readdir+0x2d8 VOP_READDIR_APV+0x78 > kern_getdirentries+0x212 sys_getdirentries+0x23 amd64_syscall+0x5ea > Xfast_syscall+0xf7 Can you please also obtain the following info? 1. Find out an inode number of the affected directory and its underlying ZFS filesystem, e.g. by using stat(1). Then execute `zdb -ddddddd `. 2. Run 'kgdb', issue 'tid 100558' command and 'bt' command. Examine the stack trace and try to get as much information as possible from frames with _sx_slock and zap_get_leaf_byblk calls. For pointers please print objects that they point to (e.g. 'print *ptr'). In particular I am interested in *sx, *zap, *l. > ps -p 5236 > PID TT STAT TIME COMMAND > 5236 3- D+ 0:00,00 ls -G -la > > procstat -kk 5236 > PID TID COMM TDNAME KSTACK > 5236 101104 ls - mi_switch+0x194 > sleepq_wait+0x42 __lockmgr_args+0x9a0 vop_stdlock+0x39 > VOP_LOCK1_APV+0x84 _vn_lock+0x47 vacl_get_acl+0x55 > sys___acl_get_link+0x10d amd64_syscall+0x5ea Xfast_syscall+0xf7 > > > > Best, > Kai > > Am 19.02.2014 11:53, schrieb Andriy Gapon: >> on 19/02/2014 12:31 Kai Kockro said the following: >>> Hello, >>> >>> i have an 9.2-STABLE r262153 installation on a T420s laptop. Its a ZROOT >>> on a INTEL SSDSA2BW160G3L drive. >>> >>> I have a folder ( skype profil ), which is not accessable anymore. I can >>> do ls, du and so on, but the states are in D+ after this. >>> >>> STRG + T shows: >>> >>> [user@host 11:01am] ~/.SkypeOLD/user_profil/>ls -f >>> load: 0.13 cmd: ls 4883 [] 2.76r 0.00u 0.00s 0% 2124k >>> load: 0.13 cmd: ls 4883 [] 3.50r 0.00u 0.00s 0% 2124k >>> load: 0.13 cmd: ls 4883 [] 3.92r 0.00u 0.00s 0% 2124k >>> load: 0.20 cmd: ls 4883 [] 4.13r 0.00u 0.00s 0% 2124k >>> load: 0.20 cmd: ls 4883 [] 4.31r 0.00u 0.00s 0% 2124k >>> >>> What can i do? Any debug infos needed? >> You can start with getting procstat -kk output for a stuck process. >> > -- Andriy Gapon