Author Topic: Disk space allocation  (Read 4802 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Disk space allocation
« 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?

Re: Disk space allocation
« Reply #1 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.  ::)

Offline
*
Re: Disk space allocation
« Reply #2 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?

Re: Disk space allocation
« Reply #3 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).
« Last Edit: July 14, 2020, 01:58:14 PM by cynique »

Offline
*
Re: Disk space allocation
« Reply #4 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?
« Last Edit: July 14, 2020, 05:39:42 PM by blue-yu »