Results 1 to 11 of 11

Thread: /dev/md1 full

  1. #1
    Join Date
    Mar 2003

    /dev/md1 full

    /dev/md1 is full on my server, is there anyway of cleaning it out? It's 20Gb in size, or maybe even give it more space?

  2. #2
    Join Date
    May 2009
    On a Speck!!!!!
    Paste the result of the following command hear.

    df -h

  3. #3
    Join Date
    Mar 2003
    Filesystem Size Used Avail Use% Mounted on
    /dev/md1 20G 19G 0 100% /
    /dev/md2 668G 23G 612G 4% /home
    none 2.0G 0 2.0G 0% /dev/shm
    /usr/tmpDSK 485M 11M 449M 3% /tmp

  4. #4
    Join Date
    Sep 2007


    Quote Originally Posted by narl View Post
    /dev/md1 is full on my server, is there anyway of cleaning it out? It's 20Gb in size, or maybe even give it more space?

    delete unnecessary files from /var/log/* you will have some space and if you not need documentation of softwares then you may delete /usr/share/doc

  5. #5
    Join Date
    Apr 2002
    Auckland - New Zealand
    Also a quick fix in this kind of situation, assuming the default 5% of the partition is reserved for root still

    # tune2fs -m 1 /dev/md1

    Buys you some time, by setting the reserved space to 1% of the disk, rather than 5%. Delete files and then reset back to 5% if you want to.

  6. #6
    Join Date
    Jun 2003
    World Wide Web
    use the following commands to confirm the disk space usage

    1) cd /

    du -sch * | grep M

    2) cd /var/log

    du -sch * | grep M

    3) cd /usr

    du -sch * | grep M

    If the log files are using disk space in this drive then you can crop the log files to a minimum size - the name says it all!
    Managed Cloud Servers
    Server Management and Monitoring
    24x7 outsourced customer support

  7. #7
    Join Date
    Mar 2009
    if its centos , first of all as root run: # yum clean all
    verify you have logrotate configured and working correctly

    another thing you can do ( in rescue mode ) resize your paritions. - i know it's risky so do it only if you REALY REALY know what you are doing, if you dont know , i would recommend seeking a tech guy to fix it up for you. - Managed Hosting Solutions 2004 - 2016

  8. #8
    Check the /var this is normally where all your logs get stored it may be that you don't have logrotate activiated for some reason. If it's a production system then backup logs to another machine then clean out old ones. Your /tmp should be cleaned out by tmpwatch.
    Support Facility | 24/7 web hosting technical support services
    Technical support | Server management | Data migration

    Technical Articles

  9. #9
    Join Date
    Jul 2009
    please show results of cd /

    du -sch

    Using this we can tell what to delete and what to not.

  10. #10
    Join Date
    Jun 2008
    You may start with /var/log as well as apache/mail logs
    Light travels faster thn sound.This is why some people look bright until you actually hear them speak

  11. #11
    Join Date
    Jan 2010
    These commands was extremelly helpfull to me when discovering big files/folders:

    du -a / | sort -n -r | head -n 15
    It shows 15 largest files in / recursivelly and sort according to size. Source of this command here.
    Thanks to this, you can discover largest files.
    This one is also good, shows largest directories:
    find . -type d -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
    source of this command: here

    df -h
    will tell you partitions space

Similar Threads

  1. Hiring (Full Time / Full Salary) Senior Linux/cPanel Administrator
    By phpcoder in forum Employment / Job Offers
    Replies: 0
    Last Post: 06-11-2009, 03:06 PM
  2. [OFFERED] Full-Range Full-Time Software Development Facilities
    By Al Polonski in forum Employment / Job Offers
    Replies: 0
    Last Post: 02-27-2007, 10:07 AM
  3. Replies: 0
    Last Post: 02-15-2007, 02:35 PM
  4. Replies: 14
    Last Post: 01-09-2005, 07:02 AM
  5. GNAX full time salaried tech positions (2) with full benefits
    By sailor in forum Employment / Job Offers
    Replies: 1
    Last Post: 08-21-2004, 03:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts