[PLUG] No space left on device

alan at clueserver.org alan at clueserver.org
Wed Oct 25 20:26:10 UTC 2017


> On Tue, 24 Oct 2017 10:18:47 -0700
> John Jason Jordan <johnxj at gmx.com> dijo:
>
>>I recently encountered this and it turns out that my / partition was,
>>indeed, full. At the last Clinic I added ~50GB of free space on the
>>drive to /, making now a total of 84GB. And now it is happening again.
>>Something in / has eaten the entire new space.
>>
>>Note that ~/ is on the same drive, but a different partition. According
>>to Thunar the ~/ partition is only 64% used, 138GB of free space.
>>The device is a 480GB SSD. Palimpsest shows both partitions and no
>>unallocated space.
>>
>>I used Thunar to check Properties on everything in / and found nothing
>>out of the ordinary. I need some command line tools to find the pig
>>that is using all my space. Also I need to find out what is causing the
>>pig to be so hungry. Suggestions?
>
> I found at least part of the problem. During remodeling work apparently
> the power plug to the Synology disk station was unplugged. Thus, when
> rsync tried to sync the Mediasonic USB drive to the Synology it failed.
> But at least a couple of times recently I ran the command manually
> (Instead of waiting for cron to do it at 2am), and I watched in the
> terminal as it did so. It copied a lot of movies from the USB, and then
> failed. Now I know why it failed.
>
> The part I don't know is where rsync put those files. They are
> somewhere in /media, because the du command listed /media as having
> 56GB.
>
> 	jjj at Devil-Bonobo:/$ cd /media
> 	jjj at Devil-Bonobo:/media$ ls -la
> 	total 16
> 	drwxr-xr-x   4 jjj  jjj  4096 Apr 16  2017 .
> 	drwxr-xr-x  25 root root 4096 Oct 24 21:46 ..
> 	drwxr-x---+  5 jjj  jjj  4096 Oct 24 20:59 jjj
> 	drwxr-x---+  2 root root 4096 Apr 16  2017 root
> 	jjj at Devil-Bonobo:/media$ cd jjj
> 	jjj at Devil-Bonobo:/media/jjj$ ls -la
> 	total 436
> 	drwxr-x---+    5 jjj jjj   4096 Oct 24 20:59 .
> 	drwxr-xr-x     4 jjj jjj   4096 Apr 16  2017 ..
> 	drwxrwxrwx     6 jjj jjj   4096 Oct 24 21:08 128GB
> 	drwxr-xr-x  2311 jjj jjj 270336 Oct 25 11:17 Movies
> 	drwxr-xr-x  2311 jjj jjj 159744 Oct 25 08:00 Synology
>
> According to ls there are 16 files in /media and 436 files
> in /media/jjj. Why do they not appear when I use 'ls -la'? I also tried
> as root, but got the same output. And for what it's worth, Thunar (Xfce
> GUI file manager) also does not display them.

It sounds like something has the file or directory open, but has also
deleted it. (So the process is still holding onto the file, but the system
does not show it since it is marked as deleted.) Sometimes programs will
do this as a way to secure the data from the rest of the OS.

Have you tried rebooting to see if the process and/or kernel will release
the space? I am not certain of lsof will show what process is hanging onto
it.

perl -pe 's/^\s+//g' *.py




More information about the PLUG mailing list