{"id":20721,"date":"2020-11-30T05:31:12","date_gmt":"2020-11-29T21:31:12","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&p=20721"},"modified":"2023-01-18T11:25:23","modified_gmt":"2023-01-18T03:25:23","slug":"server-hard-disk-full-a-quick-guide","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/server-hard-disk-full-a-quick-guide","title":{"rendered":"Server Hard Disk Full? A Quick Guide"},"content":{"rendered":"\t\t
Hi, if you are facing this problem:<\/p>
Server Hard Disk Full.<\/p>
For server administrators, it is essential to maintain your server upkeep in terms of the hard disk space. When the server hard disk full, there will be a serious downtime that will happen to your server.<\/p>
The most important sign when the hard disk is full, you will start getting complaints that email service is down and customers unable to login to WHM\/cPanel. Usually, you will get this error when trying to login:<\/p>
====================================<\/p>
Sorry for the inconvenience!<\/em><\/p> The filesystem mounted at \/home\/username on this server is running out of disk space.<\/em><\/p> cPanel operations have been temporarily suspended to prevent something bad from happening.<\/em><\/p> lease ask your system admin to remove any files, not in use on that partition.<\/em><\/p> ====================================<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Please bear in mind that when it comes to this situation, your ONLY choice is to urgently clear the hard disk space by remoting to the server using a telnet client application.<\/p> Once Inside<\/p> So once you are inside, go to \/ and run the command below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t This will display the overall hard disk usage of your server.\u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Next, type the command below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t You can then select the folder that has the biggest size and continue running the \u201cdu -sh *\u201d command until you are able to identify the files or folders.<\/p> To remove the files or folders, you can use the commands below:<\/p> ========================<\/p> 1.\u00a0rmdir<\/kbd><\/strong>\u00a0command \u2013 Deletes the specified empty directories.<\/em><\/p> 2.\u00a0rm<\/kbd><\/strong>\u00a0command \u2013 Delete the file including sub-directories. You can delete non-empty\u00a0<\/em><\/p> ========================<\/p> If you are having a problem executing the command above, you can execute this command instead \u201crm -rf foldername<\/strong>\u201d But please be careful while using this command since it will not ask for any confirmation before deleting.<\/p> Most common folders or files that you can check for removal:<\/p> ======================<\/p> \/backup\/<\/em><\/p> \/home\/backup\/<\/em><\/p> \/home\/username\/public_html\/error_log<\/em><\/p> \/var\/log\/<\/em><\/p> \/var\/lib\/mysql\/serverhostname.err<\/em><\/p> ======================<\/p> Have a nice day!<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\tHow To Solve Server Hard Disk Full Problem<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t