Unable to login to virtualmin due to insufficient space

Last night i noticed a warning similar to "could not save ... device insufficient space"

I am able to login to ssh and sftp to the server machine as root!

It all happenned soon after I set up 2 backups (full and incremental) at the same time!

http is also working fine.

Appreciate any help resolve this issue...

I used the default partitions provided by CentOS 6 while setting up the server.

Status: 
Active

Comments

Howdy -- is your server's hard disk low on space?

You can determine that by running this command:

df -h

bislinks's picture
Submitted by bislinks on Sun, 02/23/2014 - 11:53 Pro Licensee

df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_ns03-lv_root 11G 11G 0 100% / tmpfs 1.9G 0 1.9G 0% /dev/shm /dev/sda1 485M 92M 368M 20% /boot /dev/mapper/vg_ns03-lv_home 132G 25G 101G 20% /home

I think/assume the root partition is out of space.

If I delete some files/dirs in /root, will that affect the system?

Okay, it looks like you / filesystem is indeed full. You would need to free up some space on that drive.

It only has 10GB, so if you setup your server's backups to go there

You can delete files within the /root directory.

However, you also mentioned setting up some backups -- if your backups are using the / filesystem, there may not be enough space there to back up the entire /home partition, which is 132GB.

bislinks's picture
Submitted by bislinks on Sun, 02/23/2014 - 12:26 Pro Licensee

I believe i should delete the backup (created by virtualmin backup of virtual servers). Where do I go and do this as I cannot access virtualmin on 10000. That too, i was backing up to a USB connected Storage/HDD.

I did not do a backup of /home directory ever...

Do the backups created by Virtualmin use / filesystem? if so, where are they stored so that I can delete them for now?

bislinks's picture
Submitted by bislinks on Sun, 02/23/2014 - 12:47 Pro Licensee

I deleted some backups and that freed up about 6gb in /.

But am still unable to log in to virtualmin which has SSL enabled.

If there is a problem with SSL, how do i disable SSL for virtualmin from ssh?

bislinks's picture
Submitted by bislinks on Sun, 02/23/2014 - 13:17 Pro Licensee

Got it. Disabled SSL. Restarted Virtualmin. Virtualmin is up and running.

In conclusion, I cannot do any backup on this machine; am i correct?

How about backing up to an FTP server outside?

Here was the problem.

The backup to the local USB connected HDD was saving on the machine instead: I guess my mounting config was wrong.

You can do a backup to a partition that has enough free space - in your case e.g. a new directory under /home. It's doubtful though that storing a backup on the same partition that's being backed up makes a lot of sense. :)

So it'd be suggested to put the backup on a different machine, e.g. via SCP (configure a SSH target in Virtualmin) if you have another Linux machine.

Also note that, even if the final destination for the backup is on another machine or a place with enough space, Virtualmin is going to use "/tmp" by default for creating the backup. So you might run into space issues there, since you don't have a separate partition for /tmp. You can configure the location though that Virtualmin uses as temp directory; Eric should be able to tell you where you do that, I can't remember off the bat.

bislinks's picture
Submitted by bislinks on Sun, 02/23/2014 - 13:26 Pro Licensee

Thanks Locutus.

It's all because I used the default partition given by CentOS.

I usually would make just 2 partitions (/ and swap) which avoids space problem in a hdd with less than 200gb. But the last time, i did not follow my own insight/rule.