Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jan 2003
    Posts
    202

    Default /home directories on NAS?

    Is is possible to host the /home directory on a NAS using NFS and specify it in cPanel?

    I know, if NFS fails, then everything fails but I have the resources to setup 2 NAS units and run rsync intervals.

  2. #2
    Member
    Join Date
    Nov 2004
    Posts
    41

    Default

    Short answer, Yes.

    Long Answer, No.

    I've done, it but your quotas won't work. I saw a bugzilla request to get quotas to work on GFS and NFS, but it hasn't been implemented yet.

  3. #3
    Member
    Join Date
    Jan 2003
    Posts
    202

    Default

    yikes! No quotas, eh? Sounds like a good time to implement the "unlimited" disk space package

  4. #4
    Member
    Join Date
    Nov 2004
    Posts
    41

    Default

    It's a bit more complicated than that. your cPanel will freeze when you try to enter /cpanel since it won't be able to read quotas. There's a lot of hacking to be done.

  5. #5
    Registered User
    Join Date
    Dec 2007
    Posts
    2

    Default

    Is the quota parsing done within binaries? If not anyone know off-hand which scripts are responsible for identifying which mounts should be read? Editing NFS quotas is straight-forward - if parsing is done w/in binaries we're looking at modifying the repquota cache and datastore directly.

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    While the call to check quotas happens with the various cPanel binaries, essentially they are calling the stock quota tools (repquota, quota, etc). The binaries primarily verify all the calls are legit and cache the information (there is more to it than that, this is the simplified version). The caches are stored in /home/user/.cpanel

  7. #7
    Member
    Join Date
    Nov 2007
    Posts
    34

    Default

    As an alternative how about serving up the disk via iSCSI instead of NFS? I am running with iSCSI drives from my SAN as /home and it is working fine.
    :$s/worry/happy/g

  8. #8
    Registered User
    Join Date
    Dec 2007
    Posts
    2

    Default

    Quote Originally Posted by cpanelkenneth View Post
    While the call to check quotas happens with the various cPanel binaries, essentially they are calling the stock quota tools (repquota, quota, etc). The binaries primarily verify all the calls are legit and cache the information (there is more to it than that, this is the simplified version). The caches are stored in /home/user/.cpanel
    If that's the case I'm not sure why it wouldn't read NFS quotas, they generate the same format. Do the binaries rely on calls to the pm's in cPScript? Where does debug messages from these scripts get logged? Thanks for any info.

  9. #9
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Any internal stuff the cPanel binaries rely upon would reside either in the binary itself, or /usr/local/cpanel. The stuff in /scripts will rely upon /scripts and /scripts/cPScripts While there are one or two scripts that look for the actual quota files (aquota.user, quota.user), most just call the quota tools directly. I have no experience with NFS so cannot help you with specifics on quotas with NFS.

    Oh, and generally, errors are logged to /usr/local/cpanel/logs/error_log, STDERR or /var/log/messages

  10. #10
    Member
    Join Date
    Sep 2004
    Posts
    422

    Default

    If you're clustering, then you need something like GFS/NFS as multiple frontends have to access the files. If you don't plan on clustering and having more than 1 frontend box running apache, access the files, the iscsi is a much better way of doing it and quota's will work fine as an iscsi device is just like a local disk.

    BTW nfs sucks big time with large files etc..

  11. #11
    Member
    Join Date
    Nov 2007
    Posts
    34

    Default

    Just as an interesting trivia note.. I am running iSCSI drives from a NexSan raid array and performance on the iSCSI drives is actually faster than the local drives that are plugged directly on the box. Rather surprised me, but I won't complain.
    :$s/worry/happy/g

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 07-09-2011, 12:42 PM
  2. Replies: 2
    Last Post: 01-12-2011, 04:33 PM
  3. Multiple home directories
    By olliemaitland in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-11-2005, 12:14 PM
  4. restoring home directories permissions.
    By vishal in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 02-24-2005, 12:57 AM
  5. Restricting Users to Home Directories
    By jlimited in forum New User Questions
    Replies: 5
    Last Post: 06-27-2004, 03:47 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube