egerlach / logmerge

Automatically exported from code.google.com/p/logmerge
0 stars 0 forks source link

No space left on device - tempfile not working? #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I get errors like:

sort: write failed: /tmp/sort64KaOi: No space left on device

when running logmerge.  --tempfile doesn't seem to make any difference.  I have 
/tmp mounted on tmpfs.

Original issue reported on code.google.com by emailgr...@gmail.com on 11 Mar 2013 at 12:01

GoogleCodeExporter commented 9 years ago
It is known issue. Unfortunately I cannot fix it immediately but I am going to 
do it it the future. 

Seems you have tried to sort i) a lot of files and/or ii) huge files and/or 
iii) your /tmp doesn't have enough space to perform sorting. One or all of them 
could be the root of issue. 

Try call the script providing a path to another place of temp dir. Ex.:
TMP=/another/tmp/dir logmerge [options]

Another way is to append -T option to the sort command. 

Original comment by Ildar.Sh...@gmail.com on 12 Mar 2013 at 4:30

GoogleCodeExporter commented 9 years ago
I'm trying to merge apache and nginx log files over a 2-day period on a 
moderately busy website.

Appending TMP=/root doesn't seem to have any effect as I still get a "No space 
left on device" error referencing /tmp:

sort: write failed: /tmp/sortMmQBZ0: No space left on device

How can I append -T to the sort command?

Original comment by emailgr...@gmail.com on 14 Jul 2013 at 11:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
emailgrant, try this one

find
eval processList $m_sort | cleanup

replace with
eval processList $m_sort -T "/new/path/to/tmp" | cleanup

Original comment by Ildar.Sh...@gmail.com on 24 Jul 2013 at 8:07