df(1) showing different statistics for different users
Michael Neumann
mneumann at ntecs.de
Mon Aug 20 11:59:46 PDT 2018
On Mon, Aug 20, 2018 at 10:42:38AM -0700, Matthew Dillon wrote:
> Yes. Root gets more headroom than non-root users, because system demons
> tend to implode if they run out of disk space and we don't want regular
> users to mess up root that way.
Makes sense. Thanks!
Regards,
Michael
>
> -Matt
>
> On Mon, Aug 20, 2018 at 10:15 AM, Michael Neumann <mneumann at ntecs.de> wrote:
>
> > Hi,
> >
> > When I run "df" as root it shows a capacity of 93%, while as
> > unpriviledged user, it shows 98%:
> >
> > # df -k /dev/serno/S3EWNCAHC00357M-1.s1e at DATA
> > Filesystem 1K-blocks Used Avail
> > Capacity Mounted on
> > /dev/serno/S3EWNCAHC00357M-1.s1e at DATA 20357120 19002752 1354368
> > 93% /build
> >
> > > df -k /dev/serno/S3EWNCAHC00357M-1.s1e at DATA
> > Filesystem 1K-blocks Used Avail
> > Capacity Mounted on
> > /dev/serno/S3EWNCAHC00357M-1.s1e at DATA 19339264 19002752 336512
> > 98% /build
> >
> > I did run "hammer2 cleanup" before, as I got a lot of these errors on
> > the console:
> >
> > hammer2_alloc_indirect: error 00000020 No Space on Device
> > xop_strategy_write: error 32 loff=0000000000610000
> >
> > Before running hammer2 cleanup, I checked disk usage with "df",
> > and it showed me 97% capacity, so I was very confused why these
> > messages occured.
> >
> > Is it a feature to show less free capacity when logged in as
> > unpriviledged user?
> >
> > Regards,
> >
> > Michael
> >
--
NTECS Consulting
Michael Neumann
www.ntecs.de
More information about the Users
mailing list