Operating System & Version
CloudLinux v7.9.0
cPanel & WHM Version
106.0.9

reholmes27

Member
Aug 31, 2014
10
3
53
cPanel Access Level
Root Administrator
Hi

I have a query about managing accounts disk partitions and whether, in theory, it's possible to have a separate disk for each account. I'm not sure why anyone would want to but I guess I'm really trying to get confirmation that my understanding is accurate.

My current setup is a cPanel server that has 2 external drives mounted, one that I have mounted at /sites and replaces the main server drive as the main partition for all accounts and a second at /backups that is for the obvious. I now have a particular scenario where I have a client that is going to need quite a large amount of disk space and it's got me thinking that it may be better for me to mount a new drive, just for that account. As I understand it, because I have used the mount location of sites, I would need to add the drive in the 'additional home directories' field and should then be able to do what I'm suggesting. I guess that's the first question that needs confirming?

It then got me to thinking what would happen if I wanted to do this again and I think, because of the way I'm currently setup, this wouldn't be possible but if I mounted a new drive with the prefix of home2, home3 etc then I could, in theory, have an infinite number of drives to be used. The issue I may face here is that I couldn't necessarily set one drive to be the sole drive for one account, without managing the disk usage left, on each drive, to ensure at least one of the drives has more space than the one I'm setting up for a single account, if that makes sense?

The final query would be whether I would need to change the /sites drive to have a home prefix or whether I could leave that as it is and any new /home2. /home3 drives would still be detected?

Thanks for taking the time to read!

Rich
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,418
2,108
363
cPanel Access Level
Root Administrator
Hey there! There's no reason this wouldn't work. I would recommend naming them all "/home#" for consistency, as that will allow cPanel tools to detect them with no adjustments required, but there's nothing in the cPanel side of things that would keep this structure from working.
 

reholmes27

Member
Aug 31, 2014
10
3
53
cPanel Access Level
Root Administrator
Hey there! There's no reason this wouldn't work. I would recommend naming them all "/home#" for consistency, as that will allow cPanel tools to detect them with no adjustments required, but there's nothing in the cPanel side of things that would keep this structure from working.
Thanks for the response and apologies for the slow reply!

That's good to hear. I'm not sure if it's necessary but it's useful to know it's an option, should I decide to go down that route.

Thanks.