cPanel & WHM Version 84 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!
 

Real NFS support for legacy and new backup systems

tvcnet shared this idea 5 years ago
Open Discussion

Currently, even though the word "NFS" is mentioned in both configuration pages of the Legacy and New backup pages, NFS is not actually supported by cPanel. Because of this, issues with the backup system are not being properly supported, as they are seen to be using an NFS mount, and it is automatically blamed.


Please add complete NFS support for backups, including choice of NFSv3 or NFSv4 so that we can create appropriate backup solutions for our end-users to respond to server failures, and disk space usage as necessary.


Additionally, please research appropriate NFS mount options so that the best speed, locking, and failure detection/recovery can be achieved with various NFS mounts and software.

Best Answer
photo

Could you please elaborate on the errors/problems you're running into with NFS? I personally have had success and know of many others who have had success utilizing NFS mounts to store cPanel & WHM generated backups.


With regard to mount options, cPanel & WHM makes no effort to determine or configure optimal mount options for any drives, NFS or otherwise. In many cases, this would require knowing characteristics that the server itself couldn't possibly know or making wild assumptions. In turn, this is not something we will be pursuing and is something we've historically considered to be the role of the operating system/server owner. It certainly does require some human investigation and intervention to determine ideal mount options. Whatever mount options you have specified in /etc/fstab will, of course, be obeyed when cPanel & WHM issues a mount command (if needed). Simply configure your mount options for your NFS mount to its ideal in /etc/fstab and they will persist.

Comments (4)

photo
2

Could you please elaborate on the errors/problems you're running into with NFS? I personally have had success and know of many others who have had success utilizing NFS mounts to store cPanel & WHM generated backups.


With regard to mount options, cPanel & WHM makes no effort to determine or configure optimal mount options for any drives, NFS or otherwise. In many cases, this would require knowing characteristics that the server itself couldn't possibly know or making wild assumptions. In turn, this is not something we will be pursuing and is something we've historically considered to be the role of the operating system/server owner. It certainly does require some human investigation and intervention to determine ideal mount options. Whatever mount options you have specified in /etc/fstab will, of course, be obeyed when cPanel & WHM issues a mount command (if needed). Simply configure your mount options for your NFS mount to its ideal in /etc/fstab and they will persist.

photo
2

My 2 cents:


restoreration of a incremental backup can fail because of the design:

It first creates an temporary directory on the same dir where it copies every thing and then the restoration will be started. NFSv4 is very picky of the ownership and then the restoration could fail. Also it costs a lot of bandwidth


If you make an options to select a temporary/working directory on a local disk, this problem is complety resolved.


The bandwidth issue is also with the incremental backup I think. Also a temporary/working dir on a local disk.


For now we mount all the backup dirs for incremental backups on NFSv3 so the restoration doesn't goes wrong.


So in short:

Give us an option to specify a temporary working dir with incremental backup's. It will fix all bandwidth issues and will speed things up and will use the NFS better and more efficient.

photo
2

Hello,


i felt into the same problem.

Can I somewhere define a local /tmp directory cause i also have a NFSv3 mount and i can do backups but i can't restore it.


would be nice if you could give me some hints for that problem.

photo
4

The new 64 backup system makes NFS performance worce.... It is rsyncing between date folders, so the files are requested and then put again on the nfs server. It takes the backup time instead of 3 hours to more then 16 hours!

Why isn't there been any thought on that before you develop this system?


Why do we need NFS:

Because we have fast storage platform for cpanel hosting, we only want to put "production files" as it is expensive solution. Archive storage we don't want on our blade servers, but on a less expensive solution, like a ZFS NFS server. This works like a charm and we out perform most hosters on speed. It is a real enterprise solution

With the current solution we need to have a local backup storage (expensive) and then move it to the archive storage (inexpensive) that we mirror between datacenters. So the new solution costs us real money. And we could lose more data if a server crashes on the local to remote move.

I am also very shocked that your are planning customer grade solutions like Google Drive and Dropbox instead of supporting enterprise solutions like NFS.

photo
1

  1. Why isn't there been any thought on that before you develop this system?


The primary reason we don't test against NFS at this time is that we don't currently support NFS. While we do want to see it added we haven't seen nearly as much interest in adding support for NFS as we have for the remote destinations you mentioned.


Thanks so much for your use-case, that will definitely help us when we do start to work on this!

photo
2

But in the world of SSDs, this should be done by knowing that the SSD will be destroyed by many writings!That is why it would be important to have a direct remote connection point that would save you

photo