From owner-freebsd-fs@FreeBSD.ORG Fri Oct 7 07:52:35 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83C8D106566B for ; Fri, 7 Oct 2011 07:52:35 +0000 (UTC) (envelope-from srg.gavrilov@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4CD9C8FC13 for ; Fri, 7 Oct 2011 07:52:34 +0000 (UTC) Received: by iage36 with SMTP id e36so1836882iag.13 for ; Fri, 07 Oct 2011 00:52:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=x7GSoxDuAf0IHe6Tl44WgE2ViuDKAA2RDMkAt9ytkjM=; b=WUw/enVXltrWCZer1aMxBiPonTgcy0zud+3eaZz4g/KEjcrO6hpiTUIJKEZw9QG0jc V92GUZ7D3cSTlE6sMsuRdhgyFzdQo129u+T83mGzchlK48QTHqTB9H3qtnQGWqLdxEJG r0cXEblKN+Iufxwtt0ipFRh6fkkCRRxtfXGVc= MIME-Version: 1.0 Received: by 10.42.145.7 with SMTP id d7mr10577704icv.14.1317973953882; Fri, 07 Oct 2011 00:52:33 -0700 (PDT) Received: by 10.231.166.12 with HTTP; Fri, 7 Oct 2011 00:52:33 -0700 (PDT) In-Reply-To: References: Date: Fri, 7 Oct 2011 11:52:33 +0400 Message-ID: From: Sergey Gavrilov To: Xin LI Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS v28: mount dataset hangs X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2011 07:52:35 -0000 There are too many running processes right now. Will it be enough procstat for hanged process only? sudo zfs set mountpoint=/pool2/samba/NMO pool2/samba/NMO ps ax | grep zfs 29 ?? DL 88:26,87 [zfskern] 1273 ?? Is 0:00,00 /usr/sbin/mountd -r /etc/exports /etc/zfs/exports 11672 1 I+ 0:00,01 sudo zfs set mountpoint=/pool2/samba/NMO pool2/samba/NMO 11673 1 D+ 0:00,03 zfs set mountpoint=/pool2/samba/NMO pool2/samba/NMO 11817 2 S+ 0:00,00 grep zfs sudo procstat -kk 11673 PID TID COMM TDNAME KSTACK 11673 101295 zfs initial thread mi_switch+0x176 sleepq_wait+0x42 _cv_wait+0x129 txg_wait_synced+0x85 zil_replay_log_record+0xe1 zil_parse+0x3d8 zil_replay+0xe5 zfsvfs_setup+0x117 zfs_mount+0x52f vfs_donmount+0xdc5 nmount+0x63 amd64_syscall+0x1f4 Xfast_syscall+0xfc And else. I'd sent dataset to another pool and it had mounted and works well. 2011/10/7 Xin LI > On Fri, Oct 7, 2011 at 12:37 AM, Sergey Gavrilov > wrote: > > pool: pool2 > > state: ONLINE > > scan: scrub repaired 0 in 7h29m with 0 errors on Thu Oct 6 02:15:50 > 2011 > > config: > > > > NAME STATE READ WRITE CKSUM > > pool2 ONLINE 0 0 0 > > raidz2-0 ONLINE 0 0 0 > > da9 ONLINE 0 0 0 > > da10 ONLINE 0 0 0 > > da11 ONLINE 0 0 0 > > da12 ONLINE 0 0 0 > > da13 ONLINE 0 0 0 > > da14 ONLINE 0 0 0 > > da15 ONLINE 0 0 0 > > da16 ONLINE 0 0 0 > > > > errors: No known data errors > > Okay... can you also do 'procstat -kk -a' with root when zfs process > hangs with [tx->tx_sync_done_cv)]? > > Cheers, > -- > Xin LI https://www.delphij.net/ > FreeBSD - The Power to Serve! Live free or die > -- Best regards, Sergey Gavrilov