From owner-freebsd-current@FreeBSD.ORG Thu Aug 19 01:09:00 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32AAB1065695 for ; Thu, 19 Aug 2010 01:09:00 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id CF5218FC13 for ; Thu, 19 Aug 2010 01:08:59 +0000 (UTC) Received: by qyk8 with SMTP id 8so727801qyk.13 for ; Wed, 18 Aug 2010 18:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=2YA9ebtLifCp1B7Ag1VTqfTxjs5+CtJ+R+zOhvDb/C8=; b=K6MTbivVE29oODGJkAyx7osgOj6ElUWSPP3fMFn4jifAQyc3M3P1hRBcqzqFO7UDY2 vZSn5cNi5Dg9Pm/+5cswjyMtzXvsSbd//aqaFYm3rEW3fJbafrUffVrv7zjzZec81O+o 2EzZ1tgc/f6fEgPw8Bk2nRz5kJZ1OWy8zgd08= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=lFAZGSHGvGVHj1mYpHEhgTQ+3D61fpbcdm+G3s4KXLdIgwGkyjoNe+YV1gwBycbSma 1QSXFAkSLqQzqvOPay3zVnfGF4dG5tS6BJz2hvAodLtU0Xt1px2CWkzy9RGQWc5lCoAi yd8zXfSVVkt+yCnQxhwQ6U8ForCIrh/4+ross= Received: by 10.224.37.19 with SMTP id v19mr6001082qad.15.1282180138942; Wed, 18 Aug 2010 18:08:58 -0700 (PDT) Received: from centel.dataix.local (adsl-99-190-84-182.dsl.klmzmi.sbcglobal.net [99.190.84.182]) by mx.google.com with ESMTPS id t4sm1022172qcs.28.2010.08.18.18.08.57 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Aug 2010 18:08:58 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4C6C8428.70508@DataIX.net> Date: Wed, 18 Aug 2010 21:08:56 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100806 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Andriy Gapon References: <4C6B987F.5050703@kernel32.de> <4C6BF9B0.9070900@icyb.net.ua> <4C6C2F7A.5060908@kernel32.de> <4C6C38A3.7080900@icyb.net.ua> In-Reply-To: <4C6C38A3.7080900@icyb.net.ua> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Marian Hettwer Subject: Re: 8.1-release + zfs v15 df(1) hangs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Aug 2010 01:09:00 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/18/2010 15:46, Andriy Gapon wrote: > on 18/08/2010 22:07 Marian Hettwer said the following: >> I'll try and reproduce that tomorrow. I would say, a hanging nfs mount >> shouldn't lead to a hanging around df(1). > > See df -n. > Going with this & making an addition. I usually add this to my periodic.conf: daily_status_disks_df_flags="-h -i -t ufs,zfs" Adding '-c' for a system that has ZFS produces results that are not correct for a total, but stating it more for reference. It might make sense to patch df(1) so it looks at the begging portion of the file-system up to the first '/' and get the value for free and used from that but this is tricky when refreserved, quota and other properties come into play and is a little beyond what df is meant for. But that subject is for another thread. I do wonder if it would make sense to just split the daily_status_disks* into daily_status_{FILESYSTEM} to look like this daily_status_ufs_df_flags etc... and keep daily_status_disks_df to be defined as daily_status_disks_df="ufs zfs xfs" Ignore random babbling meant to spur thought. ;) Regards, - -- jhell,v -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMbIQnAAoJEJBXh4mJ2FR+1lkH/3UbwkUE0L7AbivsIc1bjZA6 R+6lVv80xquXrgxZiMZWAhd40fqaduztM9hWzicL2yEVIsg+lp1WE4IRo2pyUdFs ZTDsa3RcDpXeTt2NmUdMHefd0RC0aRrrAmf1JGifUs2/UNHpT/5PP1fIl783P71J z8VFNcGcCmCSUcSdg8I14LDoFAqfbA0DkpTDyYrQVcHmNEp7aBgvJBNF+9/3y4R9 wC6+CbPVy93L3yOmxIfEM88oHtq4zfMRLcNreMAx+bQntzM7bA2xJrXV8Zkt5Jok RFqE7TScKyE89YulkosSFMs1OK0SwTFDHZdAIO4mM4V9mVcaaZ8iWTiGrlZRxoQ= =Kf91 -----END PGP SIGNATURE-----