Disk space allocation

Started by blue-yu, July 14, 2020, 09:22:22 AM

Previous topic - Next topic

blue-yu

Hi,

I have created VM with 500GB disk. Plan for this server is to host huge amount of emails. I have discovered that current disk allocation is:
root - 50GB
swap - 4GB
home - 445GB

Since emails are not located in home folder I have an issue that root folder is not big enough.

What did I do wrong?

cinique

Quote from: blue-yu on July 14, 2020, 09:22:22 AM
What did I do wrong?
You bought a big server to store emails and don't know how to configure/manage it!
This looks like a recipe for spamming.  ::)

blue-yu

I'm fast learner :) Partition is done during installation of Centos. Automatic partitioning did it this way. Is there a chance to change it somehow?

cinique

#3
 :'(

QuoteAutomatic partitioning
That's your first mistake: it can't predict your use case and is setup for a typical Windoze luser.  :-\

At the risk of helping a spammer...
mv /var/spool/mail /home/
ln -s /home/mail /var/spool/mail

Might work (untested).

blue-yu

#4
Thanks.

Mails are located in /var/vmail/...

So i assume that command would be:

mv /var/vmail /home/
ln -s /home/vmail /var/vmail


I will snap VM and in the case anything goes wrong I will revert it.

Should I stop mail services during MV?