Control Web Panel

WebPanel => Installation => Topic started by: blue-yu on July 14, 2020, 09:22:22 AM

Title: Disk space allocation
Post by: blue-yu on July 14, 2020, 09:22:22 AM
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?
Title: Re: Disk space allocation
Post by: cinique on July 14, 2020, 10:53:36 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.  ::)
Title: Re: Disk space allocation
Post by: blue-yu on July 14, 2020, 11:49:51 AM
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?
Title: Re: Disk space allocation
Post by: cinique on July 14, 2020, 01:56:32 PM
 :'(

Quote
Automatic 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...
Code: [Select]
mv /var/spool/mail /home/
ln -s /home/mail /var/spool/mail
Might work (untested).
Title: Re: Disk space allocation
Post by: blue-yu on July 14, 2020, 05:34:22 PM
Thanks.

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

So i assume that command would be:

Code: [Select]
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?