From owner-freebsd-questions@freebsd.org Sun Oct 25 11:47:16 2015 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 9D1258867 for ; Sun, 25 Oct 2015 11:47:16 +0000 (UTC) (envelope-from niklaas@kulturflatrate.net) Received: from mail2.kulturflatrate.net (mail.financecomm.com [178.63.105.5]) by mx1.freebsd.org (Postfix) with ESMTP id 3577E1798; Sun, 25 Oct 2015 11:47:14 +0000 (UTC) (envelope-from niklaas@kulturflatrate.net) Received: from [10.0.0.38] (mail.kulturflatrate.net [IPv6:2a01:488:66:1000:2ea3:77dd:0:1]) (Authenticated sender: niklaas@kulturflatrate.net) by mail2.kulturflatrate.net (Postfix) with ESMTPSA id D3166FEA7; Sun, 25 Oct 2015 12:47:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kulturflatrate.net; s=default; t=1445773632; bh=IxMfR8rHdxts3JMnuayODvfqm2C3yo+bP9AI3s7b7F0=; h=Subject:To:References:From:Date:In-Reply-To; b=LjS3T6OwTgXspQ7n8iUofbKINvskgULTjB/xeeTRRf9E9LsdrQz22O7GuGlRLys5a wGDf1VWwOBsG9Oq5C+Y2vI7ogNqOMZQ5lpWp9O2cRVIJe4QzSvzc1SSzFoYXoHMSR5 DsrGu/p7eiiqpYL7ZyqSiE/e6T4OdbgRknJZNr4I= Subject: Re: cd /.zfs/snapshot hangs (tmux put to uninterruptible sleep) To: Matthew Seaman , freebsd-questions@freebsd.org References: <562CB2C2.6090402@kulturflatrate.net> <562CB8CF.7010504@FreeBSD.org> From: Niklaas Baudet von Gersdorff X-Enigmail-Draft-Status: N1110 Message-ID: <562CC1DD.9060207@kulturflatrate.net> Date: Sun, 25 Oct 2015 12:49:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <562CB8CF.7010504@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Oct 2015 11:47:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 25/10/15 12:11, Matthew Seaman wrote: > On 25/10/2015 10:45, Niklaas Baudet von Gersdorff wrote: >> Why am I not able to see the output of `cd /.zfs/snapshot`? Did I >> reach the limit of possible snapshots? > > I don't think it's the number of snapshots that's causing the > problem, but that you've tried to create a snapshot that breaks a > limit on the path length of a mount point. See for instance: > > https://lists.freebsd.org/pipermail/freebsd-fs/2010-March/007964.html > > Even though that report is five years old, the same limits still > apply today. Thanks for the link. Yeah, that might be. Do I understand correctly (from the link above) that the maximal length of a name is 88? See: > /* * filesystem statistics */ [...] #define MNAMELEN 88 > /* size of on/from name bufs */ [...] struct statfs { [...] char > f_mntfromname[MNAMELEN];/* mounted filesystem */ char > f_mntonname[MNAMELEN]; /* directory on which mounted */ }; Isn't this a bug? Shouldn't the request just fail instead of putting the process into D? > When you run into the limit, it is not that the snapshot automount > simply fails: it leaves the system in a less than ideal state, and > you have to force unmount the path where the the snapshot would > have been mounted. > > umount -f /.zfs/snapshot/some-directory Unfortunately, `mount` doesn't reveal any mounts in /.zfs . > Unfortunately when a process gets into state 'D' there doesn't seem > to be anything that can be done, short of rebooting the machine, to > get rid of it. If anyone knows any different I'd be glad to hear > of it. Uff. Because I do snapshotting regularly with a script in cron I've got now several processes in D. Even zfskern. Probably I should restart the machine... > $ sudo ps ax | grep zfs 3 - DL 24:03.30 [zfskern] 84869 - > D 0:00.00 ls /.zfs/snapshot/ 84873 - D 0:00.00 ls > /.zfs/snapshot/ 85382 - D 0:00.00 ls /.zfs/snapshot/ > 86137 - D 0:00.00 ls /.zfs/snapshot/ 86708 - D > 0:00.00 ls /.zfs/snapshot/ 87391 - D 0:00.00 ls > /.zfs/snapshot/ 87396 - D 0:00.00 ls /.zfs/snapshot/ > 89474 - D 0:00.00 ls /.zfs/snapshot/ 84979 17- D+ > 0:00.00 ls -ls /.zfs/snapshot 90618 24 S+ 0:00.00 grep zfs - -- Niklaas -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWLMHTAAoJEG2fODeJrIU/ZdYP/1rA7Ot7b5PbuYfuD92Nylkv WPebYkgNwd7l/mBQ4ERHTczYslp3LNFF/0PLD3akjgN98Qi4AzTeYam0P5OOL0Km mkvIS3pIhsdBjtGCQEoZrBefqQzscRsaKBjPCNVzy1Z/mH6+SFADNOBrv/B6JTlY ux3T8cJVdHroGmnUoIKkFHxfuxJLbex0JCmZEOTWqq+bw8Yv7wSSD+zj1ZN4k3Gh TFTFUaxUV+edaP8ZZbgmOspty7HMn4+w0F601c8kDrusHK1fTmByC3ymXM/S7WiV azcz+LdHCjeeaAwNSKgNntJicd8IxHEuw4TS9+HbqNHCsK8WABndrJ5tYa7hhNtG 1nkW4XQXBsFg9C7POOkSWjUOQ8hEOmPMyKFcs8FD4YlC9D2Vd9FPnsEHoXdWfUzb nUHmGVKFyZDvuTkA0CYTAzaOfxUXa1XIeQ/S3/dvGahJOOBMzJiu02CRPxSPEJ0t AcEgDoPcWSFfGrqUlq5M/qIzKi5r1HMBHk7E/6B3L7iAuOyHy0+tD6PbuEYPMU+k ibT0T04hub8TuuNqlGXAx+/uCP0CPLASj6MES5FLLBiBu+tGIcmCXJx/vULCWO07 mZM2VGNVNm4TZfrZO+5ioTnNkNyNe0UY2FLC0qmXeGgEFxdo9urJmZVSrDJ8bea3 Q1XcKc6bRLBxAVAjTRgm =eXiM -----END PGP SIGNATURE-----