Results 1 to 8 of 8

Thread: /dev/md1 full

  1. #1

    /dev/md1 full

    my site is down. It couldn't connect to MySQL DB, so I checked in Terminal and did a df

    the result is:

    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 20317384 19341420 0 100% /
    devtmpfs 4038764 200 4038564 1% /dev
    tmpfs 4048600 0 4048600 0% /dev/shm
    /dev/md1 20317384 19341420 0 100% /
    /dev/md3 948224680 19758540 880678420 3% /home

    As you can see, MD1 is full. How can I make space here?

    It's using ZPanel / Joomla 2.5x and I can access the site through SFTP and Terminal.

    thanks!

  2. #2
    Join Date
    Mar 2003
    Location
    WebHostingTalk
    Posts
    16,964
    You need to check the partition and see what is eating up. Usually these are logs.
    Specially 4 You
    .
    JoneSolutions.Com ( Jones.Solutions ) is on the net 24/7 providing stable and reliable web hosting solutions and services since 2001

  3. #3
    If the log files are eating up the space, you can just crop the file keeping the last 100 or 1000 lines.

  4. #4
    Join Date
    May 2006
    Location
    Italy
    Posts
    848
    Quote Originally Posted by supportbureau View Post
    If the log files are eating up the space, you can just crop the file keeping the last 100 or 1000 lines.
    Be careful if the logs we are talking about are mysql binglogs (as that usually happens)... don't "crop" but use the official mysql commands to trim them...
    Marco Padovan
    HiperZ.com - providing premium gameservers and fulfilling any kind of hosting needs in Europe/USA.
    DDoS protections & general consultancy / linux servers management specialists
    We provide custom system administration help - Bitcoin Accepted

  5. #5
    Your / partition is full. It seems that mySQL data are also stored in the same partition. You will not be able to start MySQL service until you free the space in / partition. It seems that server was configured with default partition settings. You have lots of space in /home but / partition has only 20 GB.
    || Web Hosting Blog - Web Hosting security & latest web hosting industry Announcements
    || Web Hosting Discussion - A Web Hosting community

  6. #6
    Join Date
    Mar 2005
    Location
    Ten1/0/2
    Posts
    2,509
    root cause - Bad decision made when server was deployed on how the filesystem was set up.

    Yep, disk is full, need to free up space.

    There are a lot of posts about this exact same issue if you search

    http://www.webhostingtalk.com/showthread.php?t=1300690 might get you started...
    CPanel Shared and Reseller Hosting, OpenVZ VPS Hosting. West Coast (LA) Servers and Nodes
    Running Linux since 1.0.8 Kernel!
    Providing Internet Services since 1995 and Hosting Since 2004

  7. #7
    you can change mysql directory

    Stop MySQL using the following command:

    sudo /etc/init.d/mysql stop
    Copy the existing data directory (default located in /var/lib/mysql) using the following command:

    sudo cp -R -p /var/lib/mysql /newpath
    edit the MySQL configuration file with the following command:

    gedit /etc/mysql/my.cnf
    Look for the entry for datadir, and change the path (which should be /var/lib/mysql) to the new data directory.

    In the terminal, enter the command:

    sudo gedit /etc/apparmor.d/usr.sbin.mysqld
    Look for lines beginning with /var/lib/mysql. Change /var/lib/mysql in the lines with the new path.

    Save and close the file.
    Restart the AppArmor profiles with the command:

    sudo /etc/init.d/apparmor reload
    Restart MySQL with the command:

    sudo /etc/init.d/mysql restart
    Now login to MySQL, and you can access the same databases you had before.

  8. #8
    First you need to check for log files size. If that doesn't help, best option would be move your mysql data directory to another partition which is having more space.

Similar Threads

  1. /dev/md1 full
    By narl in forum Hosting Security and Technology
    Replies: 10
    Last Post: 04-23-2013, 04:51 AM
  2. /dev/simfs is full
    By sg552 in forum VPS Hosting
    Replies: 4
    Last Post: 09-23-2012, 10:52 AM
  3. /dev/mapper/vg is getting full???HELP
    By burnwire in forum Hosting Security and Technology
    Replies: 6
    Last Post: 07-28-2012, 03:09 AM
  4. /dev/sda6 (/usr) is 89% full
    By themuggle in forum Hosting Security and Technology
    Replies: 8
    Last Post: 07-01-2009, 02:59 PM
  5. /dev/hda /dev/hdb /dev/hdc /dev/hdd
    By pmak0 in forum Hosting Security and Technology
    Replies: 5
    Last Post: 01-16-2004, 04:13 AM

Tags for this Thread

Posting Permissions

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