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
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.
Recent comments
16 hours 21 min ago
16 hours 26 min ago
21 hours 25 min ago
1 day 4 hours ago
1 day 4 hours ago
1 day 6 hours ago
1 day 10 hours ago
1 day 17 hours ago
1 day 20 hours ago
1 day 22 hours ago