Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th February 2012, 09:56
ircf ircf is offline
Junior Member
 
Join Date: Feb 2011
Posts: 22
Thanks: 3
Thanked 6 Times in 4 Posts
Default Move quota to another partition ?

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 by ircf; 29th February 2012 at 11:01.
Reply With Quote
Sponsored Links
  #2  
Old 5th March 2012, 11:41
ircf ircf is offline
Junior Member
 
Join Date: Feb 2011
Posts: 22
Thanks: 3
Thanked 6 Times in 4 Posts
Default 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.
Reply With Quote
  #3  
Old 7th March 2012, 17:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I think you cannot move the aquota files to another partition. I'd set up quota on the new partition from scratch.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
ircf (26th March 2012)
  #4  
Old 26th March 2012, 11:53
ircf ircf is offline
Junior Member
 
Join Date: Feb 2011
Posts: 22
Thanks: 3
Thanked 6 Times in 4 Posts
Default 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.
Reply With Quote
  #5  
Old 26th March 2012, 12:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,383 Times in 4,230 Posts
 
Default

ISPConfig will recreate the quota for a website when a setting of this site is modified.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
ircf (26th March 2012)
Reply

Bookmarks

Tags
crontab, partition, quota, quotacheck

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Move /var to another partition Toucan General 1 5th January 2012 14:54
Cron issue in Debian 6 Nolan Installation/Configuration 6 18th April 2011 16:36
Can all the installation and configuration be automated (Kickstart) gabby Installation/Configuration 0 30th January 2010 19:47
quota problem after move to other server metaldrummer Installation/Configuration 2 14th January 2009 14:18
chgrp error new user DKA General 15 28th July 2008 17:45


All times are GMT +2. The time now is 08:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.