From owner-freebsd-stable@FreeBSD.ORG Mon Nov 8 15:55:36 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B39F16A4CE for ; Mon, 8 Nov 2004 15:55:36 +0000 (GMT) Received: from viefep17-int.chello.at (viefep17-int.chello.at [213.46.255.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1024743D5E for ; Mon, 8 Nov 2004 15:55:35 +0000 (GMT) (envelope-from tom@kmem.org) Received: from shuttle.kmem.org ([213.245.108.8]) by viefep17-int.chello.at SMTP <20041108155533.BTWN16038.viefep17-int.chello.at@shuttle.kmem.org> for ; Mon, 8 Nov 2004 16:55:33 +0100 Received: (qmail 15732 invoked by uid 6003); 8 Nov 2004 15:55:32 -0000 Received: from tom@kmem.org by j2.kmem.org by uid 89 with qmail-scanner-1.22-st-qms (clamdscan: 0.73. spamassassin: 2.63. Clear:RC:1(192.168.1.13):. Processed in 0.928638 secs); 08 Nov 2004 15:55:32 -0000 X-Antivirus-MYDOMAIN-Mail-From: tom@kmem.org via j2.kmem.org X-Antivirus-MYDOMAIN: 1.22-st-qms (Clear:RC:1(192.168.1.13):. Processed in 0.928638 secs Process 15727) Received: from j2.kmem.org (HELO webmail.kmem.org) (192.168.1.13) by shuttle.kmem.org with SMTP; 8 Nov 2004 15:55:31 -0000 Received: from 66.232.128.11 (SquirrelMail authenticated user tom@kmem.org) by j2.kmem.org with HTTP; Mon, 8 Nov 2004 15:55:31 -0000 (GMT) Message-ID: <3254.66.232.128.11.1099929331.squirrel@j2.kmem.org> Date: Mon, 8 Nov 2004 15:55:31 -0000 (GMT) From: "Tom Dymond" To: freebsd-stable@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: Jail and df problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: tom@kmem.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2004 15:55:36 -0000 Hi, I'm running several jails on this box and df doesnt seem to report the filesystems that are mounted within the jail. When using : fbsd5# sysctl security.jail.getfsstatroot_only=1 i see : 22:37|admin@j1:~> df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/md0s1a 495726 148894 307174 33% /usr/local/jails/j1 when setting it to 0 fbsd5# sysctl security.jail.getfsstatroot_only=0 i see fbsd5# df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 253678 56490 176894 24% / devfs 1 1 0 100% /dev /dev/ad0s1e 253678 932 232452 0% /tmp /dev/ad0s1f 29282666 1891884 25048170 7% /usr /dev/ad0s1d 253678 32750 200634 14% /var procfs 4 4 0 100% /proc /dev/ad0s2e 30460626 2 28023774 0% /usr/local/data /dev/ad0s3d 5077038 420388 4250488 9% /usr/local/jails/d1 /dev/ad0s3e 5077038 4 4670872 0% /usr/local/jails/d2 /dev/ad0s3f 5077038 4 4670872 0% /usr/local/jails/d3 /dev/ad0s3g 5077038 4 4670872 0% /usr/local/jails/d4 /dev/ad0s3h 10152148 2 9339976 0% /usr/local/jails/d5 /dev/ad0s4d 24876810 2049060 20837606 9% /usr/local/mdisks /dev/md0s1a 495726 148894 307174 33% /usr/local/jails/j1 /dev/md0s1d 126702 296 116270 0% /usr/local/jails/j1/var /dev/md0s1e 364974 24 335754 0% /usr/local/jails/j1/home devfs 1 1 0 100% /usr/local/jails/j1/dev fdescfs 1 1 0 100% /usr/local/jails/j1/dev/fd procfs 4 4 0 100% /usr/local/jails/j1/proc ... but shouldnt i see from within the jail this : /dev/md0s1a 495726 148894 307174 33% /usr/local/jails/j1 /dev/md0s1d 126702 296 116270 0% /usr/local/jails/j1/var /dev/md0s1e 364974 24 335754 0% /usr/local/jails/j1/home devfs 1 1 0 100% /usr/local/jails/j1/dev fdescfs 1 1 0 100% /usr/local/jails/j1/dev/fd procfs 4 4 0 100% /usr/local/jails/j1/proc because otherwise it's not easy for the jail administrator to know how much space is left on his /var. If there any way to accomplish this on this 5.3-STABLE system ? Previously, on my 4.x systems i was using a kernel module provided by Pawel Jakub Dawidek on his website and it worked wonderfully. Many thanks, Tom