Can DA use multiple home partitions?

devonblzx

Verified User
Joined
Jan 20, 2007
Messages
22
I know in CPanel I saw a function that allows for you to use any partition with the prefix you set. So for example, I could have a /home, /home2, /home3, /home4, and so on and it would use the least used partition on the new accounts.

Does DirectAdmin have any feature like this? It would be nice for NFS mounts so you could easily add more storage to a server or even use for multiple hard drives without RAID/LVM.
 
Hello,

You can use multiple partitions.
DirectAdmin does not specify the home path during creation, that's specified by the useradd or pw program.

So if you want a different path to be used (eg, if /home is almost full), then for redhats, you'd edit /etc/default/useradd and set HOME=/home2 to change the default home to be /home2/username. I'm not sure what the exact way to change the default on the other OS's are, but it's the same basic idea.

Once DA is able to setup users on different homes, you'll need to also tell DA about them for quotas:
http://www.directadmin.com/features.php?id=611

John
 
Of course when figuring out how much space to leave in /home, remember that if you're using Dovecot/Maildir, DirectAdmin also saves incoming mail in their home directory.

Jeff
 
Thanks Jeff,

Does that mean even if I change their default home directory to /home2 it will still save their mail data in /home?
 
No; it'll save the email in their home directory. I've edited my post to make it more clear.

Jeff
 
Back
Top