Answer the question
In order to leave comments, you need to log in
Where do gigabytes go in the VPS file system?
There is an AWS VPS on Debian.
df -h
says 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
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)
Answer the question
In order to leave comments, you need to log in
- 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
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?
It looks like you have some remote file(s) that, despite being deleted, are still open by some process.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question