Running services are filling up disk space. I reboot it frees up disk space. How can I find files created by programs in disk space but not visible with the "du -ch /.[!.]* /disk1" command.
$ df -Th
/dev/mapper/ubuntu--vg-ubuntu--lv ext4 15G 9.5G 3.9G 71% /
/dev/xvdb1 ext4 361G 333G 11G 97% /disk1
$ du -sh /disk1
203G /disk1/
Ubuntu 18.04.3 LTS The server is a virtual on xenserver. Two virtual disks named root and disk1 are attached. /disk1 size is 366GB but the file size is 205GB. The remaining 161GB space appears to be full, only 10GB of free space is available. More than one apache and special services running on this disk are working by showing this disk. But after a while the disk space gets full.
man lsof
. Usesudo lsof
to list all open files, and their sizes. – waltinator Oct 13 '21 at 17:14df
until the file is closed, but can’t be reported bydu
. It is often quite temporary. (Excepted when you update your system : all loaded old shared objects and programs remain on the disk, but are no visible todu
since they are replaced by a new one.) – Frédéric Loyer Oct 13 '21 at 17:29