T
T
thatguy12020-02-03 09:42:24
linux
thatguy1, 2020-02-03 09:42:24

Where do gigabytes go in the VPS file system?

There is an AWS VPS on Debian.

df -hsays that we allegedly have another 3.3 gigabytes, but in fact there is nowhere to write to the disk.

Filesystem      Size  Used Avail Use% Mounted on
udev            487M     0  487M   0% /dev
tmpfs           100M   13M   87M  13% /run
/dev/xvda1      7.9G  4.2G  3.3G  57% /
tmpfs           498M     0  498M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           498M     0  498M   0% /sys/fs/cgroup
tmpfs           100M     0  100M   0% /run/user/1000


df -i
Filesystem     Inodes  IUsed  IFree IUse% Mounted on
udev           124560    274 124286    1% /dev
tmpfs          127306    883 126423    1% /run
/dev/xvda1     524288 186145 338143   36% /
tmpfs          127306      1 127305    1% /dev/shm
tmpfs          127306      3 127303    1% /run/lock
tmpfs          127306     15 127291    1% /sys/fs/cgroup
tmpfs          127306     10 127296    1% /run/user/1000


Divided files seem to be null lsof +L1:
COMMAND     PID     USER   FD   TYPE DEVICE SIZE/OFF NLINK   NODE NAME
mysqld     1532    mysql    7u   REG  202,1        0     0 291403 /tmp/ibShayyu (deleted)
mysqld     1532    mysql    8u   REG  202,1        0     0 291404 /tmp/ib5KTqDP (deleted)
mysqld     1532    mysql    9u   REG  202,1        0     0 291405 /tmp/ib9gNjIa (deleted)
mysqld     1532    mysql   10u   REG  202,1        0     0 291406 /tmp/ibqte9UQ (deleted)
mysqld     1532    mysql   14u   REG  202,1        0     0 291407 /tmp/ibg2733b (deleted)
php-fpm7.  7525 www-data    3u   REG  202,1        0     0 280015 /tmp/.ZendSem.TquN32 (deleted)
php-fpm7. 13915    admin    3u   REG  202,1        0     0 280015 /tmp/.ZendSem.TquN32 (deleted)
php-fpm7. 13918    admin    3u   REG  202,1        0     0 280015 /tmp/.ZendSem.TquN32 (deleted)
php-fpm7. 14295    admin    3u   REG  202,1        0     0 280015 /tmp/.ZendSem.TquN32 (deleted)
php-fpm7. 22167     root    3u   REG  202,1        0     0 280015 /tmp/.ZendSem.TquN32 (deleted)
php-fpm7. 22171 www-data    3u   REG  202,1        0     0 280015 /tmp/.ZendSem.TquN32 (deleted)
php-fpm7. 22172 www-data    3u   REG  202,1        0     0 280015 /tmp/.ZendSem.TquN32 (deleted)


Question: how to squeeze those 3 gigabytes? Where are they? What else to check?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Ruslan Fedoseev, 2020-02-03
@martin74ua

df -i
what will it say?

V
Vitaly Karasik, 2020-02-03
@vitaly_il1

- how did you try to write and what error did you get?
- there is something interesting in the system. log?
- check open mysqld files - probably a problem with logroration

K
Karpion, 2020-02-03
@Karpion

Where does it follow " there is nowhere to write to the disk "?
In principle, many filesystems reserve space that only root can use. But it is not taken into account when calculating free space - i.e. it says "100% busy", although there is still room for megabytes. And " 57% " - something is not enough, it is usually not less than 80%.
Where do you write? The path to the file?
Maybe the quotas for the user are set?

A
alex1478, 2020-02-03
@alex1478

It looks like you have some remote file(s) that, despite being deleted, are still open by some process.

R
Roman Sokolov, 2020-02-03
@jimquery

Google tune2fs reserved blocks
But by default 5% is reserved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question