View Single Post
Old 29th February 2012, 10:56
ircf ircf is offline
Join Date: Feb 2011
Posts: 30
Thanks: 5
Thanked 8 Times in 5 Posts
Default Move quota to another partition ?


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
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 ?

quotaoff -avug
vi /etc/fstab
# move options usrjquota=aquota.user,,jqfmt=vfsv0 from / to /var partition then save and quit
mv /aquota.user /var/aquota.user
mv / /var/
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 ?

crontab -e
0 * * * * quotaoff -avug && quotacheck -avugm && quotaon -avug
Thank you for your help.

Last edited by ircf; 29th February 2012 at 12:01.
Reply With Quote
Sponsored Links