Hardisk Ubuntu Full

Sempat juga saya bingung ketika mau menginstall – tepatnya mengupgrade ubuntu lucid ke maverick, ketika syestem ubuntu melakukan cheking pada free space hardisk dan dia menemukan hardisk ubuntu server tersebut full, aneh dan langka baru kali ini saya melihat hal mengejutkan seperti ini.

Beberapa cara saya cari tahu untuk mengosongkan dan memberi space yang lapang terhadap hardisk ubuntu server yang saya fungsikan sebagai proxy, kecurigaan terhadap banyak kernel terinstall ternyata tidak membuahkan hasil setelah saya chek dengan perintah

dpkg --get-selections | grep 2.6.32

yang terinstall hanya paket

linux-image-2.6.32-37-generic-pae install

dan hasil perintah df -h menunjukkan ke ngerian, directory / terlihat

root@mega:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 53G 50G 95M 100% /
none 876M 236K 876M 1% /dev
none 880M 0 880M 0% /dev/shm
none 880M 68K 880M 1% /var/run
none 880M 0 880M 0% /var/lock
none 880M 0 880M 0% /lib/init/rw
none 53G 50G 95M 100% /var/lib/ureadahead/debugfs
/dev/sda1 94G 146M 93G 1% /cache

Terlihat memang masih ada sisa 3G jika di bandingkan dengan yang di gunakannya namun persentasenya sudah menunjuukan 100% pada /dev/sda5

beberapa perintah untuk pengechekan harus di lakukan, directory mana yang memenuhi system ini.

du -sh /* sepertinya memberikan sedikit angin segar karena perintah ini menunjukkan pada saya bahwa directory /var memakan space sebesar 50GB (gila….benar!!!)

root@mega:/var/lib/ureadahead# du -sh /*
7.7M /bin
27M /boot
112M /cache
0 /cdrom
236K /dev
5.8M /etc
68K /home
0 /initrd.img
0 /initrd.img.old
223M /lib
16K /lost+found
12K /media
4.0K /mnt
4.0K /opt
0 /proc
32K /root
7.0M /sbin
4.0K /selinux
4.0K /srv
0 /sys
7.8M /tmp
454M /usr
50G /var
0 /vmlinuz
0 /vmlinuz.old

Directory /var patut di tandai, namun di manakah yang memakan hardisk tersebut, keliling beberapa saat di google, lalu melakukan perintah seperti di wejengan web sebelah, saya coba cheking bagian /var/log

root@mega:~# du -ch /var/log
8.0K /var/log/dist-upgrade/20120115-1351
168K /var/log/dist-upgrade
12K /var/log/fsck
4.0K /var/log/news
4.0K /var/log/apparmor
49G /var/log/squid
340K /var/log/installer/cdebconf
1.1M /var/log/installer
8.0K /var/log/apache2
4.0K /var/log/landscape
272K /var/log/apt
96K /var/log/ConsoleKit
49G /var/log
49G total

hmmmm… ternyata /var/log yang memakan hardisk :D , tinggal di eksekusi nih untuk mengatasinya.

untuk lebih amannya saya coba hapus dulu /var/log/squid dengan masuk kedalamnya dan melakukan perintah rm -f di directory /var/log/squid

Dan hasilnya,

root@mega:/var/log/squid# rm -rf *
root@mega:/var/log/squid# du -ch /var/log
8.0K /var/log/dist-upgrade/20120115-1351
168K /var/log/dist-upgrade
12K /var/log/fsck
4.0K /var/log/news
4.0K /var/log/apparmor
4.0K /var/log/squid
340K /var/log/installer/cdebconf
1.1M /var/log/installer
8.0K /var/log/apache2
4.0K /var/log/landscape
272K /var/log/apt
96K /var/log/ConsoleKit
6.2M /var/log
6.2M total

Haahhh lebih plong total /var/log sekarang 6,2MB. Kalau ini baru terlihat wajarkan :D

root@mega:/var/log/squid# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 53G 1.1G 50G 3% /
none 876M 236K 876M 1% /dev
none 880M 0 880M 0% /dev/shm
none 880M 68K 880M 1% /var/run
none 880M 0 880M 0% /var/lock
none 880M 0 880M 0% /lib/init/rw
none 53G 1.1G 50G 3% /var/lib/ureadahead/debugfs
/dev/sda1 94G 146M 93G 1% /cache

tapi masalah tidak berakhir saya harus mencari penyelesaian kenapa /var/log menggila sperti ini.

Saya curiga di configurasi squid lho.. yukkk kita intip :D .

Tagged with: , , , , ,
Posted in conf, linux, trik, ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

487 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Hardisk Ubuntu Full
Reviewed by admin on
Rating: 4.5