NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
viperhansa
Sep 12, 2016Virtuoso
How do i clean md0 ?
Hi guys.. Just in case my /dev/md0 is growing more, how can i clean it up? /dev/md0 4.0G 1.1G 2.7G 28% I know there is no imminent danger but just wanna know.. :-) // Hans
- Oct 01, 2016
You could use the du command e.g.
# du -csh /var/log/*
28% full is pretty normal so I don't think you have anything to worry about.
viperhansa
Oct 01, 2016Virtuoso
Yeah! that's one approach! :smileytongue: i like your sense of humor mdgm!
Any tips how since i don't want to mess up anything?
Any step by step guide?
Regards
Hans
mdgm-ntgr
Oct 01, 2016NETGEAR Employee Retired
You could use the du command e.g.
# du -csh /var/log/*
28% full is pretty normal so I don't think you have anything to worry about.
- StephenBOct 01, 2016Guru - Experienced User
If you don't have apps installed, then the main place to look is /var (and maybe /tmp)
If you do have apps installed (or have installed other packages yourself), then you need to know where they put their data, and consider moving it off the OS partition to the data volume somehow. Sometimes that can be done through configuration, sometimes you can do it with soft links.
- viperhansaOct 06, 2016Virtuoso
mdgm wrote:You could use the du command e.g.
# du -csh /var/log/*
28% full is pretty normal so I don't think you have anything to worry about.
That gave me:
4.0K /var/log/alternatives.log 4.9M /var/log/apache2 80K /var/log/apt 8.0K /var/log/btmp 292K /var/log/ctscand.log 372K /var/log/ctscand.log.old 304K /var/log/dpkg.log 8.0K /var/log/faillog 268K /var/log/frontview 0 /var/log/fsck 32M /var/log/journal 12K /var/log/lastlog 4.0K /var/log/LeafP2P.log 0 /var/log/mysql 0 /var/log/mysql.err 0 /var/log/mysql.log 0 /var/log/news 12K /var/log/proftpd.log 1.3M /var/log/readynasd 808K /var/log/samba 300K /var/log/wtmp 41M total
What do i do with it? :-)
- StephenBOct 06, 2016Guru - Experienced User
If you had any run-away log files, you then truncate them (if you want to analyze them later, copy them to the data volume first).
echo > /var/log/logfilename.log
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!