Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2019 20:43:42 +0200
From:      Christos Chatzaras <chris@cretaforce.gr>
To:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: df shows wrong usage for tmpfs
Message-ID:  <8B8FBF20-B24E-4848-B0EB-AFAE5080BFBD@cretaforce.gr>
In-Reply-To: <A1F977FB-3B39-4602-9164-EED729CEAA7B@cretaforce.gr>
References:  <A1F977FB-3B39-4602-9164-EED729CEAA7B@cretaforce.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
Finally was related to jails:

/home/www            496G     44G    412G    10%    =
/home/jail/php56/home/www
/tmp                  15G     33M     14G     0%    /home/jail/php56/tmp
/tmpfs               8.0G    108M    7.9G     1%    =
/home/jail/php56/tmpfs
devfs                1.0K    1.0K      0B   100%    /home/jail/php56/dev
/home/www            496G     44G    412G    10%    =
/home/jail/php71/home/www
/tmp                  15G     33M     14G     0%    /home/jail/php71/tmp
/tmpfs               8.0G    108M    7.9G     1%    =
/home/jail/php71/tmpfs
devfs                1.0K    1.0K      0B   100%    /home/jail/php71/dev

I restart them and df shows correct result.


> On 20 Feb 2019, at 20:31, Christos Chatzaras <chris@cretaforce.gr> =
wrote:
>=20
> Any idea why df shows wrong usage? I restart nginx and mysql and even =
when these services are stopped it still shows wrong usage.
>=20
> df -h /tmpfs | grep tmpfs
> tmpfs         8.0G    1.1G    6.9G    13%    /tmpfs
>=20
> du -sh /tmpfs
> 44M    /tmpfs
>=20
> fstat -f /tmpfs
> USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W
> www      nginx       8662    5 /tmpfs      224 -rw-r--r--       0  w
> www      nginx       2706    5 /tmpfs      224 -rw-r--r--       0  w
> www      nginx       2706  126 /tmpfs     1466 -rw-------   51809  r
> www      nginx       2706  133 /tmpfs     2869 -rw-------     641  r
> root     nginx      99550    5 /tmpfs      224 -rw-r--r--       0  w
> mysql    mysqld     68713    5 -             5 -rw-------       0 rw
> mysql    mysqld     68713    6 -             6 -rw-------       0 rw
> mysql    mysqld     68713    7 -             7 -rw-------       0 rw
> mysql    mysqld     68713    8 -             8 -rw-------       0 rw
> mysql    mysqld     68713   12 -             9 -rw-------       0 rw
> mysql    mysqld     68713   14 /tmpfs       10 -rw-r-----    3109  w
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8B8FBF20-B24E-4848-B0EB-AFAE5080BFBD>