Maildir/imap on a different drive

BlueCola

Verified User
Joined
Jan 12, 2012
Messages
75
Hi there,

Last couple of months, we are hosting more and more of our clients on our servers with SSD drives. The performance and loading times are much better. However, one disadvantage is that SSD drives are quite expensive. So if we could get more websites on a single disk, this would have a pretty big impact on our profits.

That made us think: at this moment all user data is stored on SSD drive with some of our clients which have huge mailboxes (over 10GB). There aren't really big (performance) advantages to host this data on SSD drives, as most people download their e-mail to their own e-mail client.

So, my question: is there a possibility to store only the public_html folder on drive 1 (SSD) and all the other data, such as e-mail on drive 2 (an HDD)? If we could manage to do that, we could store a lot more websites on the SSD drive's and use the slower - but satisfying - HDD drive's to store our clients e-mail.

If possible, how could we implement this solution? Where should we get started?

Looking forward to the responses!
BlueCola
 
You need to create a custom script in /usr/local/directadmin/scripts/custom called domain_create_post.sh

In this script you need to write some code to delete/move the original public_html (and private_html) folder, craete a new one on the second disk, link both and fix permission.

This script will be runned automatically everytime a domain is created.

Regards
 
Back
Top