Cannot write: No space left on device conundrum

6 posts / 0 new
Last post
#1 Wed, 05/23/2012 - 13:16
gerhardnel

Cannot write: No space left on device conundrum

Hello guys,

I'm a Virtualmin Pro user. I'm having the following issue:

From around Monday (2 days ago) 16:00 we stopped receiving emails to one of the virtual servers/domains (other domains and emails are fine).

Mails are sent just fine, just not received.

Then I noticed, It was struggling to create a "sent" items folder (using imap, via outlook) saying disk quota has been reached.

Some points:

  • I DO NOT have ANY disk quotas set up, anywhere...
  • certain other activities on this /home/site location returns " Cannot write: No space left on device"
  • here's the output of df -h :
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_gundo-lv_root
                       50G   38G  9.0G  81% /
tmpfs                 1.9G     0  1.9G   0% /dev/shm
/dev/sda1             485M   63M  397M  14% /boot
/dev/mapper/vg_gundo-lv_home
                      633G  2.8G  598G   1% /home
  • any attempt to try and restore from a previous backup also fails with that "" Cannot write: No space left on device" error

Any idea, my fine fellows, what on earth I am missing ?

Much appreciated

Wed, 05/23/2012 - 14:32
andreychek

Howdy,

What output do you see if you run the command "mount"?

Also, what do you see if you run this command:

quota -v USERNAME
quota -g USERNAME

If a quota had at some point been enabled for that user, the above should show it.

It certainly looks like your disk has plenty of space, so reviewing your mount options and checking out the quotas would be a good next step.

-Eric

Wed, 05/23/2012 - 16:27
gerhardnel

Heya Eric, thank you for feedback.

So checkit out:

quota -v USERO Disk quotas for user USERO (uid 500): Filesystem blocks quota limit grace files quota limit grace /dev/mapper/vg_gundo-lv_home 1391020 0 0 116811 0 0

quota -g USERO Disk quotas for group USERO (gid 501): Filesystem blocks quota limit grace files quota limit grace /dev/mapper/vg_gundo-lv_home 1428108* 1048576 1048576 5days 117861 0 0

so from your notes there, looking at the "-g" switch, it's showing... that I did have a quota, at some stage??

EDIT: sorry, mean that the "group" has a quota? How the heck do I change it please?

Wed, 05/23/2012 - 17:05
andreychek

Howdy,

Take a peek in Edit Virtual Server -> Quotas and Limits -- is there anything listed for total server quota and server admin quota?

If so, you could either raise them, or set them to unlimited.

-Eric

Wed, 05/23/2012 - 18:06
gerhardnel

You Sir are a scholar and a gent. If you are around London Town anytime, I owe you a pint :)

Yes, I did find the GROUP (frak!) quotas, which were indeed limited. Once removed, mail started flowing again.

Now, the question is: where would all the mail have gone that didn't get delivered, over the last 32 hours? I don't have any in the mail queue on my end, any insight?

PS: thank you again.

Wed, 05/23/2012 - 22:08
andreychek

Super, I'm glad it's working now!

As far as your question about your mail over the last 2 days... I hate to be the bearer of bad news, but it all would have bounced.

If you take peek in your mail logs (/var/log/maillog or /var/log/mail.log), you'll see messages to that account bouncing. However, you could use those same logs to get an idea of who all emailed you.

-Eric