How to clear the server disk when it reaches 100%

Source: Internet
Author: User
Server disk ran to 100%, how to clear Java code [root @ QA_Server81mapper] # df-lFilesystem1K-blocksUsedAvailableUse % Mountedon/dev/mapper/VolGroup00-rootvol... the server disk ran to 100%, how to clear Java code [root @ QA_Server81 mapper] # df-l Filesystem 1K-blocks Used Available Use % Mounted on/dev/mapper/VolGroup00-rootvol 29741864 24001000 4205684 86% // dev/mapper/VolGroup00-varvol 49580256 35801976 11219100 77%/var/dev/mapper/VolGroup00-optvol 163087624 129386352 25288892 84%/opt/dev/mapper/VolGroup00-homevol 19838052 8878840 9935212 48%/home/dev/sda1 4956284 148336 4552116 4%/boot tmpfs 4082508 0 4082508 0%/dev/shm use the command [root @ QA_Server81 mapper] # du-sh/* | sort-nr 300 M/mnt 296 K/tmppre_plugin_assign_detail. SQL 292 M/tmp 144 K /dev 135 M/lib 124G/opt 116 M/etc 92 K/hs_err_pid10402.log 48 K/1. json 37 M/sbin 34G/var 23 M/lib64 16 K/lost + found 16G/root 12 K/t_1.xml 8.5 M/bin 8.3G/home 8.0 K/srv 8.0 k/selinux 8.0 K/media 7.1 M/boot 7.0G/usr 4.0 K/wew. the xml 4.0 K/wew. tpl 4.0 K/test. sh 4.0 K/test1.log 4.0 K/t_1.tpl 4.0 K/fgd. the xml 4.0 K/fgd. tpl 4.0 K/6.tar.gz 4.0 K/2012 1.9 M/tmp. SQL 0/sys 0/proc 0/net 0/misc 0/eee view the largest occupied Directory [root @ QA_Server81 opt] # du-sh/opt/* | sort-nr 848 k/opt/lehecai_soccer_ftp 269 M/opt/dell 136 K/opt/lsi 106G/opt/deploy 44 M/opt/jprofiler6 38 M/opt/syslog-ng 36 K/ opt/script 16 K/opt/lost + found 8.8G/opt/download 4.7G/opt/App 1.9G/opt/sphinx 1.9G/opt/mfs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.