- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: How do i clean md0 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How do i clean md0 ?
First step is to find what's using up the space.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How do i clean md0 ?
Yeah! that's one approach! 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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How do i clean md0 ?
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How do i clean md0 ?
@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? 🙂
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How do i clean md0 ?
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