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|[EMAIL PROTECTED]:~> 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
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to