Michael Jay Lissner
  • Home
  • About Site
  • Contact
  • Projects & Papers
  • Tags
  • Archives

How to Recover a Broken Drupal Install Resulting from a Full Hard Drive

This is amazingly, the second time I’ve filled my server’s hard drive, and the results are becoming predictable. One moment, things are working fine, the next, cron alerts you with something like this:

Table [tablename] is marked as crashed and last (automatic?) repair failed query

This is a bad warning to get, and running df on the server confirms that indeed my hard drive is full. Fixing this is a matter of doing some minor MySQL hacking to clean up all the tables:

mysql -u'drupalusername' -p
> use drupal_DB_name;
> check table tablename;
> repair table tablename;

Then, simply iterate this for each broken table reported by cron.php, and you will soon have a repaired DB. Whew.

I love getting feedback and comments. Make my day by making a comment.

Comments
comments powered by Disqus

  • « Berkman Broadband Study
  • In consideration of Apple »

Published

Apr 26, 2010

Category

Tech

Tags

  • drupal 11
  • hard drive 1
  • mysql 1

Contact

This is Reader-Editable

Edit this post on Github

Get Weekly Updates

  • Unless mentioned otherwise, all material on this site is licensed under a Creative Commons copyright or the GNU Affero GPL. Privacy Policy.
  • Powered by Pelican. Theme: Elegant by Talha Mansoor