• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

1&1 RootServer var-partition full

HMnet

Basic Pleskian
Hi @all,

I have a little problem with my 1&1 rootserver:

The partition that cointais i.e. mails and mysql /var is nearly full.

Filesystem Size Used Avail Use% Mounted on
/dev/sda1 940M 108M 785M 13% /
tmpfs 990M 0 990M 0% /dev/shm
/dev/sda5 4.7G 1.7G 3.1G 35% /usr
/dev/sda6 4.7G 4.3G 419M 92% /var
/dev/sda7 19G 424K 19G 1% /home
/dev/sda8 156G 57G 100G 37% /srv
none 990M 36K 990M 1% /tmp

Last night anyone sent a huge mail and the space of /var ran aginst zero, so the server dies. :-(

Now I have to solve the problem.

Can I symlink the maildir like this:
ln -s /srv/mailnames /var/qmail/mailnames

THX for your help,
HMnet
 
Same for me on Suse !

Seems like /var isn't mounted on the right partition only 4.7 Go, argh !!

How can we solve this?

Thanks,
Jérémy
 
Hi!

I solved the problem with symlinks.

I moved these directorys to /srv an the I made symlinks from the original directories to it:

/var/lib/psa/dumps
/var/log
/usr/local/psa/var/log
/var/qmail/mailnames

So my var-partition has 3,3GB free.

Yours,
HMnet :cool:
 
hi,

why not move the affected folders (mysql databases, mail dir, ...) to a bigger partition?
 
That sounds great, but how can I do this without unmounting my partitions ?

I can't turn off any websites I'm hosting...

Any advice?

Jérémy
 
You don't have to umount something.

In case of mysql you only have to
- stop the mysqld
- create a new folder for all your mysql databases, e.g. /srv/bigplace/mysql
- move all subfolders of /var/lib/mysql/ to that new location (you'll see: folder names = db names)
- edit mysql config file /etc/my.cnf (in the [mysqld] section add a line "datadir=/srv/bigplace/mysql")
- if you are using InnoDB, you have to set innodb_data_home_dir too, normally not necessary
- start mysqld

This takes 3 minutes + time of moving the folders and files.

Similar you have to do that with other services.
 
Back
Top