/dev/loop0 is 100 full no free space
Hello Everyone If you are getting this error ” Error writing file ‘/tmp/MYGtS5ZY’ (Errcode: 28 – No space left on device)” because we don’t have enough space to create temp files needed by MySQL on the server so request you to please do the needful to allocate some space for tmp files of MySql or delete previous tmp files so that our query can execute smoothly.
Current Disk Usage Information
Device | Size | Used | Available | Percent Used | Mount Point | |
100% | /dev/loop0 | 2.3G | 2.2G | 0 | 100% | /tmp |
45* | /dev/vda1 | 60G | 25G | 36G | 41% | / |
IO Statistics
Device | Trans./Sec | Blocks Read/sec | Blocks Written/Sec | Total Blocks Read | Total Blocks Written |
vda | 29.52 | 185.93 | 1910.38 | 4973342 | 51100360 |
scd0 | 0.00 | 0.00 | 0.00 | 36 | 0 |
100% utilization of /dev/loop
If you are facing OOM (Out Of Memory errors) and start looking into memory utilization in your system using various commands like “df -a”, then you will notice locations like /dev/loop0, /dev/loop1 and so on have 100% memory utilization that is no free space is left.
Current Disk Usage – Image | Current Disk Usage |
---|---|
![]() | Filesystem Size Used Avail Use% Mounted on devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 8.7M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/vda1 60G 25G 36G 41% / /dev/loop0 2.3G 2.2G 0 100% /tmp |
What is /dev/loop?
/dev/loop is a virtual / loop device which is basically a file in Linux system which acts as a block device. It is used for mounting disk images like Snap. /dev/loop is read only so the size is fixed once created and cannot be modified.
There are many instances of /dev/loop:
- /dev/loop0
- /dev/loop1
- /dev/loop2
- /dev/loop3