From owner-freebsd-questions@freebsd.org Wed Jan 25 00:19:24 2017 Return-Path: Delivered-To: freebsd-questions@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 E8479CBE106 for ; Wed, 25 Jan 2017 00:19:24 +0000 (UTC) (envelope-from chris@stankevitz.com) Received: from mango.stankevitz.com (mango.stankevitz.com [208.79.93.194]) by mx1.freebsd.org (Postfix) with ESMTP id DB7EE1DD for ; Wed, 25 Jan 2017 00:19:24 +0000 (UTC) (envelope-from chris@stankevitz.com) Received: from stink.local (209-203-101-124.static.twtelecom.net [209.203.101.124]) by mango.stankevitz.com (Postfix) with ESMTPSA id 267833CDAB for ; Tue, 24 Jan 2017 16:13:28 -0800 (PST) From: Chris Stankevitz Subject: ls -l /path/to/zfs hangs; ls -a is fine To: freebsd-questions@freebsd.org Message-ID: <67996364-28df-d882-25b2-9547c6752aec@stankevitz.com> Date: Tue, 24 Jan 2017 16:13:27 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 00:19:25 -0000 EDIT: the problem went away -- it is working now. But of course I'd love to hear your WAG or your idea about how to probe further if it happens again. I get the feeling that zfs was "busy doing something" and when it finished it was able to offer me a "ls -l". ===== Hi, 1. "ls -l" hangs for a particular ZFS filesystem. 2. CTRL-C brings me back to shell. 3. "ls -a" is okay 4. Other ZFS filesystems in the same pool are okay. 5. "zpool status" shows no trouble. 6. When I first noticed the problem, I was able to cd to a parent directory and then "ls -l child/". However, after a minute or so even that started to hang all the way down to the root of the FS. 7. I use samba/winbind/nsswich to give files owners that are not in /etc/passwd; however, I do not believe that is the direct source of the trouble because of (6) above: I was able to see these file owners for a little while. 8. I use net/unison-nox11 to sync this particular filesystem with another system. Unison is an application that copies files, modes, and owners between systems. The system is at a remote location so I hesitate to try to unmount and remount the filesystem -- or export and import the pool -- for fear that the entire system will hang requiring someone to pull the plug. (had to pull the plug once when I was using nullfs to remount a ZFS directory elsewhere -- apparently this is not supported and causes deadlocks). Please let me know if you have any tips that will allow me to determine what is wrong. Thank you, Chris