Cpanel Directory to a second Drive

vanilla

Active Member
Dec 20, 2020
32
3
8
Switzerland
cPanel Access Level
Root Administrator
Hi there

We're on azure and want that Cpanels Userdata is stored into Azure File Share. So we would mount it on each VM and all Cpanel Servers would Save date into it.

As far as i know i would just need to mount it via bash and change the directory in WHM. Right?

Or isn't this supported?

Reasons:

Cost Saving - we wouldnt need to have empty GB, each time we upgrade the drives
Security - in case of a fail server, we can use the latest snapshot, without dataloss
Scaling - when we want to migrate users into an other server, it would be in blink of an eye.

Kind regards
 

andrew.n

Well-Known Member
Jun 9, 2020
607
171
43
EU
cPanel Access Level
Root Administrator
Can you elaborate this please? but from the sound of it this would be something not supported by cPanel.
 

vanilla

Active Member
Dec 20, 2020
32
3
8
Switzerland
cPanel Access Level
Root Administrator
Hi andrew

Well, it is this solution: Azure Files | Microsoft Azure

The Server has then a new storage Drive and i want to store all Userdata in it. (i would just have to use bash to mount it and cpanel to change home directory)

We wouldn't then need to shutdown the server and resize the storage disk and restart the server any more.

AFS can be resized without downtime. My Question is, would that something wrong with daemon or other processes in cpanel?
 

andrew.n

Well-Known Member
Jun 9, 2020
607
171
43
EU
cPanel Access Level
Root Administrator
So if I understand correctly you want to put all cPanel accounts under /home which will be on Azure Files and will be mounted to the server. This is possible yes but the performance will be lower if you put this on NFS and such plus you have to be careful with network as any network problems could result in file corruption. So this is tricky but possible. I wouldn't recommend it though.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,092
780
313
cPanel Access Level
Root Administrator
cPanel doesn't officially support NFS for anything at this time:


We also haven't done any testing with any "serverless" tech at this time, so I wouldn't be able to recommend that. It *could* work, but definitely not something that is supported.
 

vanilla

Active Member
Dec 20, 2020
32
3
8
Switzerland
cPanel Access Level
Root Administrator
thanks guys

the friendly Trex has spoken. I just had that in mind and on prod i would stay with Storage Disks.

My Idea would be, that the whole Home Directory would be on the NFS. Backups would be done classic with JetBackup with SFTP to another Storage.

In my test lab i will try it with NFS and look, what could go wrong.
 
  • Like
Reactions: cPRex and andrew.n