-1

I am getting error unable to connect with mysql. when I googled I found It's because of size. It's showing /tmp 100% used. so can I completely remove all files from/tmp folder ?

#df -m /tmp

 Filesystem     1M-blocks  Used Available Use% Mounted on

 /dev/xvda1         40184 38508         0 100% /

I have following files

stderr (44.3 KB)

file7bJPfk (0B)

root@cloud-server-02:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       40G   38G     0 100% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            988M   12K  988M   1% /dev
tmpfs           200M  408K  200M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            999M     0  999M   0% /run/shm
none            100M     0  100M   0% /run/user

although I have removed 1GB of data still is shows 100% use

closed as off-topic by mdpc, fukawi2, Massimo, Jenny D, MadHatter May 8 '15 at 13:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – mdpc, Jenny D, MadHatter
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Your / file system is full, /tmp is only a subdir of that. – Sven May 7 '15 at 8:29
  • thanks @Sven although i have deleted 500MB data from 4)Gb server still it shows 100% when i do df -h? – kamlesh.bar May 7 '15 at 8:54
3

Stop you critical services and cleanup folder. The tmp directory is cleared by default at every boot. During deletion you may face with files which are in use, you can skip them.

  • 1
    Let me clearify something....Clearing of /tmp area is NOT automatic nor default as this depends on how the system is put configured. If /tmp is configured in the swap space this is basically an artifact of rebooting, but the startup scripting does not do this. If /tmp is resident on a standard filesystem, then the files/directories persist between reboots. – mdpc May 7 '15 at 8:29
  • 1
    By default files in tmp deletes at every boot. Check /etc/default/rcS – Maxiko May 7 '15 at 9:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.