PDA

View Full Version : Can DA use multiple home partitions?



devonblzx
12-15-2007, 03:23 PM
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.

DirectAdmin Support
12-21-2007, 10:57 PM
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

nobaloney
12-22-2007, 04:13 PM
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

devonblzx
12-27-2007, 10:46 AM
Thanks Jeff,

Does that mean even if I change their default home directory to /home2 it will still save their mail data in /home?

nobaloney
12-27-2007, 07:57 PM
No; it'll save the email in their home directory. I've edited my post to make it more clear.

Jeff