quota over nfs

Discussion in 'General' started by marcob, Feb 24, 2009.

  1. marcob

    marcob New Member

    Hi,
    I'm trying to setup my first ispconfig box. I use a shared disk through NFS for my document root, etc.

    So I want to use quota over NFS.
    What I have done:

    On NFS server:

    installed quota package
    touch /share1/quota.user /share1/quota.group

    # fstab
    /dev/sda5 /share1 ext3 defaults,usrquota,grpquota 0 1

    mount -o remount /share1
    quotacheck -avugm
    quotaon -avug


    Now.... What have I to do on client side?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    as far as I know you can not use quota like this over nfs, as the users created by ispconfig are not available in /etc/passwd on the nfs server.
     
  3. marcob

    marcob New Member

    ah... so quota over NFS is not supported by ispconfig? Maybe using NIS could do the trick?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This has nothing to do with ISPConfig. Quota over NFS is not supported by Linux if both servers dont share the smae user accounts.

    NIS might work, but I never tried it.
     
  5. marcob

    marcob New Member

    I will try to implement NIS. I will post a minihowto in this topic when done.
    Just to know, how ispconfig use quota? I noticed a cron entry twice a day that call /root/ispconfig/scripts/shell/quota_msg.php

    repquota -au
    repquota -ag

    That's all?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig sets the quota for every user and website if a user is created or modified.
     
  7. marcob

    marcob New Member

    scripts/lib/config.lib.php using setquota?

    So it's setquota and repquota. Any other?

    Thanks
     
  8. falko

    falko Super Moderator Howtoforge Staff

    No, these are the two commands.
     

Share This Page