From owner-freebsd-questions@freebsd.org Sun Oct 25 11:11:24 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 965B28142 for ; Sun, 25 Oct 2015 11:11:24 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CF1918C4 for ; Sun, 25 Oct 2015 11:11:24 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.2/8.15.2) with ESMTPSA id t9PBBIbk014176 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Sun, 25 Oct 2015 11:11:18 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.10.3 smtp.infracaninophile.co.uk t9PBBIbk014176 Authentication-Results: smtp.infracaninophile.co.uk/t9PBBIbk014176; dkim=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host liminal.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3636:3bff:fed4:b0d6] claimed to be liminal.local Subject: Re: cd /.zfs/snapshot hangs (tmux put to uninterruptible sleep) To: freebsd-questions@freebsd.org References: <562CB2C2.6090402@kulturflatrate.net> From: Matthew Seaman X-Enigmail-Draft-Status: N1110 Message-ID: <562CB8CF.7010504@FreeBSD.org> Date: Sun, 25 Oct 2015 11:11:11 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <562CB2C2.6090402@kulturflatrate.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o5QeGTMkaKSdCJweirv41Ii1CgQesCXGM" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk 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:11:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --o5QeGTMkaKSdCJweirv41Ii1CgQesCXGM Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 25/10/2015 10:45, Niklaas Baudet von Gersdorff wrote: > When I cd into /.zfs/.snapshot the shell hangs. I must confess, there > are a lot of snapshots because I never thought this may cause a problem= =2E > Maybe it does now. >=20 > $ zfs list -t snapshot | wc -l > 1316 >=20 > These are hourly, daily, weekly backups. I keep them for some time but > delete old ones. They accumulate because I have several jails with a > independent datasets on the system. (In case someone wonders why there > are that much.) >=20 > Nonetheless, there are not that much snapshots on the tank/root dataset= > that is mounted to /. >=20 > $ zfs list -t snapshot | grep tank/root | wc -l > 174 >=20 > So a `cd /.zfs/snapshot` should only list 174. >=20 > 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. 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 > Related to this problem: I ran the command in a tmux session that is no= w > freezed. >=20 >> $ ps -lJ 0 | grep 'tmux: server' >> 1001 21018 1 0 20 0 42396 19432 zfs Ds - 0:55.= 71 tmux: server (/tmp/tmux-1001/default) ( >> 1001 86447 85718 0 20 0 18808 2236 piperd S+ 20 0:00.= 00 grep tmux: server >=20 > `kill -9 21018` doesn't kill the process. I cannot return to tmux with > `tmux a` either. >=20 > Any help is very much appreciated. 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. Cheers, Matthew --o5QeGTMkaKSdCJweirv41Ii1CgQesCXGM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQJ8BAEBCgBmBQJWLLjWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT5aoQAJP5Niav0IFejNyDt+oGdXqR h5yfBC9/hEjww/eqrDlpAloZtNLYsZCJp4X/sYb8hXidvzkkYuMOpnYCG8ia93Za Bf6fkl8GjFkl3wfYf+EnU05BHZWK5ZHkPJVPEoHU7YmMJBs70YMtWkw3CjzyRYZZ BNI2ixjVet8Ir+ZdMfgWEIAxRVaubSEdPChTWs3MVPvnkqQVzXxqXrsGW/jC6waf NeBIMwgopmWxZXqt01wxVxbL/Pb5IN8dU5OBwqSuVV8E1Trqo2TsoVDnsphd2RVf +oWuIvUg7V/xrixXPqlj7Z4NWKYZlNlxzLjsVcd1MiKS4ssIO5Z2mGA2ZQF/B44/ gtJ9AO2UV8QtQ2c7cNXboHrhXQ6YxsUw5MCFBdKmX2UGMEUSdUsheVHhiAi4JtRP 5KBEaa1E6a18oL5ces8IaRWpdrzEIeuEAkmLMiCIK6MIcScqTFIXABgm3gfyXqjZ zS8Y/Acuj39jUgR/5X1rDxS6IxJXdBCpswg/hJtISH+yUMduVGgZtM/rx6zcngeW BDrvFffNbzSDkVfKgGRzI+cZXSYEB9Xvx92ira7FtPjTeYm0Q3H5GwIJ3znYj7/B eMRe+htHlRrJqBqn8GDRNsWMy/paj3p+T9AgrGbS3GbnnKUX5dRuU/7y1pOdYvzo 4eIDoUwNxth6NIqqngnN =GRJU -----END PGP SIGNATURE----- --o5QeGTMkaKSdCJweirv41Ii1CgQesCXGM--