Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

my mysql failed because, apparently, my volume is filled. All 8 gb of it. I only have put mongodb, nodejs, apache, mysql and in the www folder, wordpress and phpmyadmin.

My question is, what happened and how do I fix it?

Here is what df -h gave me:

Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda1            7.9G  7.9G     0 100% /
tmpfs                 298M     0  298M   0% /dev/shm
share|improve this question

closed as off-topic by Falcon Momot, ceejayoz, MadHatter, cole, Tim Brigham Nov 25 '13 at 18:50

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – Falcon Momot, Tim Brigham
  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – ceejayoz, MadHatter, cole
If this question can be reworded to fit the rules in the help center, please edit the question.

sudo du -hs /* will help you start narrowing down what's causing it. – ceejayoz Nov 24 '13 at 23:26
thank you, this will help greatly – Discipol Nov 24 '13 at 23:34
@ceejayoz how do I do this within a directory? I want to narrow down directories – Discipol Nov 24 '13 at 23:38
sudo du -hs /directory/* – ceejayoz Nov 25 '13 at 1:14
look at my answer..... you can narrow down further even by executing "du -xk / |sort -n" – nandoP Nov 25 '13 at 7:21
up vote 0 down vote accepted

i personally like "du -xk / |sort -n" as that will list the largest/top used directories on and only the root partition.

that said, root partition is not for storing data. being you are on aws, it is very easy to simply mount another volume whereever you need it


1) ec2-create-volume
2) ec2-attach-volume
3) fixup /etc/fstab
4) mount /path/to/mountpoint

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.