Move quota to another partition ?

Discussion in 'Installation/Configuration' started by ircf, Feb 29, 2012.

  1. ircf

    ircf New Member

    Hello,

    About a year ago, when I used the Perfect Debian Squeeze setup, I made a huge mistake while setting quotas.

    My ISP provider had installed a separate partition for data (namely /var). But I dumbly setup quotas on main partition /, like told in the setup ><.

    So now when I do
    Code:
    repquota -avug
    it shows my users quotas (which are defined from ISP Config) but on the wrong partition. I suppose this is useless so I would like to "move" these quota from / to /var.

    1. Can anyone tell me if these steps are good and not dangerous for my partitions and/or users data please ?

    Code:
    quotaoff -avug
    vi /etc/fstab
    # move options usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 from / to /var partition then save and quit
    mv /aquota.user /var/aquota.user
    mv /aquota.group /var/aquota.group
    mount -o remount / && mount -o remount /var # or just reboot
    quotacheck -avugm
    quotaon -avug
    
    2. I know this is not a forum about ISP Config, but could anyone tell me whether if ISP Config will still be able to update quotas if I move them into /var ? Should I modify something in ISP Config to do so ?

    3. Still about ISP Config (sorry) I've read somewhere quotacheck should be run on a periodic base. Does ISP Config does it for me or should I add a crontab like this ?

    Code:
    crontab -e
    0 * * * * quotaoff -avug && quotacheck -avugm && quotaon -avug
    
    Thank you for your help.
     
    Last edited: Feb 29, 2012
  2. ircf

    ircf New Member

    Any suggestion ?

    Could anyone confirm the procedure above is safe please ?

    This server is quite important for us so I would like to be really sure before doing this.

    Thank you for your help.
     
  3. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    I think you cannot move the aquota files to another partition. I'd set up quota on the new partition from scratch.
     
  4. ircf

    ircf New Member

    How to re-create quotas ?

    Hello Falko,

    Sorry for late anwser, I had to work on other projects...

    If I remove quotas from partition / and set it to partition /var, will ISP Config recreate all quotas when I modify a website configuration or should I re-create each manually ?

    Thank you for your help.
     
  5. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    ISPConfig will recreate the quota for a website when a setting of this site is modified.
     

Share This Page