Rebuilding quotas - need help from DA

Salmus

Verified User
Joined
Feb 15, 2008
Messages
39
Well, I changed my server hardware, put some new raid 1 drives and mount them on /home.

Changed fstab and updated my quota file:

Code:
root@Webhosting-Node1:~# /usr/sbin/repquota /home
*** Report for user quotas on device /dev/md0
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      -- 3328568       0       0           8055     0     0
mail      --      80       0       0             20     0     0
apache    --  162428       0       0           4966     0     0
diradmin  --    1024       0       0              2     0     0
mysql     -- 2145424       0       0          36819     0     0
admin     --     732       0       0             37     0     0
krwrite   --  636312       0       0          10472     0     0
krsalmus  -- 4579240       0       0          58485     0     0
krsultan  --  548096       0       0          22956     0     0
krcenarius -- 1547760       0       0           5994     0     0
bkvalentin --  254944       0       0          12348     0     0
krdorin   -- 1684528       0       0          32252     0     0
krtekton  --  249844       0       0           7185     0     0
hlboost   --  367740       0       0           1711     0     0
krasdy    -- 1503520       0       0          22586     0     0
krdnd     --   12892       0       0           2281     0     0
krice     --  315724       0       0          28309     0     0
krpainmast --  691388       0       0          14638     0     0
krskreach -- 1000928       0       0           8753     0     0
krwrctheo --  167848       0       0          10674     0     0
krklibru  --  989200       0       0          32218     0     0
whmcs     --     136       0       0             32     0     0
krjonyclau --    3272       0       0            401     0     0
krsurdunar --   26932       0       0            156     0     0
krjuncanma --   36940       0       0           1794     0     0
krextream --  569568       0       0          20156     0     0
krgalcaA  --  209312       0       0           4647     0     0
skyzone   --  935568       0       0           9796     0     0
gamersgr  --  347816       0       0          12948     0     0
animebit  --   92276       0       0           5230     0     0
flamedev  -- 2194008       0       0           8254     0     0
shapteco  --   58340       0       0           5499     0     0
galbenpa  --  175900       0       0          12152     0     0
valent2   --  181252       0       0           5504     0     0
anormalval --   16236       0       0           1614     0     0
cstrikezo --    1748       0       0            178     0     0
krseth    --   97128       0       0          10394     0     0
onstyler  --  119368       0       0           9439     0     0
scenetra  --    8216       0       0            769     0     0
serverec  --   89052       0       0           3719     0     0
krtitar   --    5540       0       0            376     0     0
snake     --   20124       0       0           1939     0     0
sharefil  --  148284       0       0           2852     0     0
krloadmast --   57848       0       0           2764     0     0
infernal  --  143908       0       0           4096     0     0
maryuss2  --  180108       0       0          10838     0     0
krdelos   --    8260       0       0            203     0     0
pwnehlo   --  690216       0       0          15946     0     0
zombiein  --   22764       0       0           1430     0     0
ifrimA    --      96       0       0             24     0     0
muzicafi  --   31984       0       0           5794     0     0
l2wonders --    2108       0       0             27     0     0
extreamw  --    6996       0       0            713     0     0
blackrev  --   44952       0       0           2103     0     0
atoscsro  --   69568       0       0           5283     0     0
wemakeyo  --   28024       0       0           2305     0     0
akro      --  349572       0       0           3783     0     0
romanian  --   95140       0       0           6943     0     0
krcuta    --   29812       0       0           3926     0     0
deniedzo  --   20536       0       0           2114     0     0
iconszon  --  741972       0       0           3243     0     0
csmaster  --   79528       0       0           9388     0     0
csporkro  --   36144       0       0           3144     0     0
csosgcom  --   37568       0       0           3264     0     0
zombimod  --   68220       0       0           5810     0     0
krzodila  --  182268       0       0          11677     0     0
ttfilles  --     100       0       0             23     0     0
unitedcs  --     240       0       0             63     0     0




The problem is that all users returning
root@Webhosting-Node1:~# quota -u krcenarius
Disk quotas for user krcenarius (uid 1019): none
root@Webhosting-Node1:~#

This happends beacouse the users doesn't have a limit set to system quota - how can DA help me to re-set them ?


Thanks
 
I want to rebuild the quotas from DA.

Repquota tells:

Code:
*** Report for user quotas on device /dev/md0
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      -- 1230224       0       0           7990     0     0
mail      --      80       0       0             20     0     0
apache    --  155988       0       0           4777     0     0
diradmin  --    1024       0       0              2     0     0
mysql     -- 2211532       0       0          36571     0     0
admin     --     732       0       0             37     0     0
krwrite   --  642596       0       0          10782     0     0
krsalmus  -- 4650712       0       0          59624     0     0
krsultan  --  584504       0       0          24202     0     0
krcenarius -- 1549304       0       0           6112     0     0
bkvalentin --  484956       0       0          12899     0     0
krdorin   -- 2090888       0       0          34222     0     0
krtekton  --  261492       0       0           7817     0     0
hlboost   --  367740       0       0           1711     0     0
krasdy    -- 1432964       0       0          21891     0     0
krdnd     --   12960       0       0           2300     0     0
krice     --  284296       0       0          32479     0     0
krpainmast --  501348       0       0           9999     0     0
krskreach -- 1001012       0       0           8596     0     0
krwrctheo --  168812       0       0          10910     0     0
krklibru  -- 1011128       0       0          31603     0     0
whmcs     --     136       0       0             32     0     0
krjonyclau --    3272       0       0            401     0     0
krsurdunar --   26932       0       0            156     0     0
krjuncanma --   37280       0       0           1829     0     0
krextream --  522300       0       0          20680     0     0
krgalcaA  --  208812       0       0           4568     0     0
skyzone   --  935856       0       0           9832     0     0
gamersgr  --  379340       0       0          13638     0     0
animebit  --   93932       0       0           5352     0     0
flamedev  -- 2192876       0       0           8330     0     0
shapteco  --   58876       0       0           5605     0     0
galbenpa  --  175900       0       0          12152     0     0
valent2   --  191764       0       0           5632     0     0
anormalval --   16236       0       0           1614     0     0
cstrikezo --    1748       0       0            178     0     0
krseth    --   60236       0       0           6606     0     0
onstyler  --   22728       0       0           2664     0     0
scenetra  --    8636       0       0            811     0     0
serverec  --   96912       0       0           4233     0     0
krtitar   --    5540       0       0            376     0     0
snake     --   20124       0       0           1939     0     0
sharefil  --  341672       0       0           6092     0     0
krloadmast --   58020       0       0           2771     0     0
infernal  --  141396 1024000 1126400           3878     0     0
maryuss2  --  180108       0       0          10838     0     0
krdelos   --   10016       0       0            216     0     0
pwnehlo   --  773920       0       0          20021     0     0
zombiein  --   24048       0       0           1476     0     0
muzicafi  --   12612       0       0           2207     0     0
l2wonders --    2108       0       0             27     0     0
akro      --  350052       0       0           3857     0     0
romanian  --   35164       0       0           4059     0     0
krcuta    --   30756       0       0           4030     0     0
deniedzo  --   94316       0       0           3507     0     0
iconszon  --  741976       0       0           3244     0     0
csmaster  --  142520       0       0           7682     0     0
csporkro  --   38868       0       0           3433     0     0
csosgcom  --   37580       0       0           3267     0     0
zombimod  --   71340       0       0           6241     0     0
krzodila  --  187876       0       0          17972     0     0
ttfilles  --    4020       0       0            668     0     0
unitedcs  --   16560       0       0           2130     0     0
rdzcscom  --   13520 1024000 1126400           1568     0     0
fatalzon  --   34108 1024000 1126400           4271     0     0

infernal, rdzcscom and fatalzone as you can see - they HAVE quota set - and quota -u infernal returns:

Disk quotas for user infernal (uid 1104):
Filesystem blocks quota limit grace files quota limit grace
/dev/md0 141396 1024000 1126400 3878 0 0

They have quota set beacouse they're NEW costumers -- added BEFORE I changed the mountpoint ...


But the old clients:

But quota -u unitedcs returns:
Disk quotas for user unitedcs (uid 1131): none



I need from DA to RE-SET the quotas for all clients ! DA knows how many MB have every user ... All I need from it is a set of filesystem quota.
 
If you will look at repquota you will surely understand what I want to say.

After I changed the mountpoint, all quota LIMITS got reset - I did what you told me to do some time ago - also updated fstab. Everything OK

If I create an user right now, quota limits are set -- but for older users - aren't ! I need that DA to reconfigure quota limits for every user in the system.


Current quota usage is set but quota limits not.


In other words, I want to 'force' da to reconfigure quotalimits with: setquota [...]



Code:
# pwd; ls | grep quota
/home
aquota.group
aquota.user
#





Code:
# repquota /home
*** Report for user quotas on device /dev/md0
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      -- 1100004       0       0           8015     0     0
mail      --      80       0       0             20     0     0
apache    --  155896       0       0           4772     0     0
diradmin  --    1024       0       0              2     0     0
mysql     -- 2092488       0       0          37114     0     0
admin     --     732       0       0             37     0     0
krwrite   --  643012       0       0          10869     0     0
krsalmus  -- 4675496       0       0          60161     0     0
krsultan  --  588076       0       0          24313     0     0
krcenarius -- 1548492       0       0           6003     0     0
bkvalentin --  484916       0       0          12791     0     0
krdorin   -- 2154504       0       0          35822     0     0
krtekton  --  261524       0       0           7820     0     0
hlboost   --  367740       0       0           1711     0     0
krasdy    -- 1370676 5120000 5632000          23045     0     0
krdnd     --   13024       0       0           2309     0     0
krice     --  285356       0       0          32495     0     0
krpainmast --  510808       0       0          10018     0     0
krskreach -- 1001732       0       0           8601     0     0
krwrctheo --  168980       0       0          10952     0     0
krklibru  -- 1042720       0       0          31957     0     0
whmcs     --     136       0       0             32     0     0
krjonyclau --    3272       0       0            401     0     0
krsurdunar --   26932       0       0            156     0     0
krjuncanma --   37612       0       0           1889     0     0
krextream --  590812       0       0          20606     0     0
krgalcaA  --  265332       0       0           4595     0     0
skyzone   --  935872       0       0           9833     0     0
gamersgr  --  379460       0       0          13659     0     0
animebit  --   94860       0       0           5409     0     0
flamedev  -- 2196852       0       0           8514     0     0
shapteco  --   58576       0       0           5539     0     0
galbenpa  --  175900       0       0          12152     0     0
valent2   --  192496       0       0           5628     0     0
anormalval --   16236       0       0           1614     0     0
cstrikezo --    1748       0       0            178     0     0
krseth    --   60164       0       0           6595     0     0
onstyler  --   22700       0       0           2657     0     0
scenetra  --    8636       0       0            812     0     0
serverec  --  101044       0       0           4294     0     0
krtitar   --    5540       0       0            376     0     0
snake     --   20124       0       0           1939     0     0
sharefil  --  358924       0       0           2447     0     0
krloadmast --   58044       0       0           2773     0     0
infernal  --  140620 1024000 1126400           3765     0     0
maryuss2  --  180108       0       0          10838     0     0
krdelos   --   10020       0       0            217     0     0
pwnehlo   --  784876       0       0          20763     0     0
zombiein  --   24048       0       0           1476     0     0
muzicafi  --   13676       0       0           2349     0     0
l2wonders --    2108       0       0             27     0     0
akro      --  359436       0       0           3827     0     0
romanian  --   35416       0       0           4125     0     0
krcuta    --   31032       0       0           3994     0     0
deniedzo  --  109748       0       0           4556     0     0
iconszon  --  741988       0       0           3247     0     0
csmaster  --  193804 1024000 1126400           5292     0     0
csporkro  --   50968       0       0           3193     0     0
csosgcom  --   37592       0       0           3269     0     0
zombimod  --   52672       0       0           5773     0     0
krzodila  --  195712       0       0          19129     0     0
ttfilles  --    4128       0       0            677     0     0
unitedcs  --   16456       0       0           2113     0     0
rdzcscom  --   13496 1024000 1126400           1563     0     0
fatalzon  --   35348 1024000 1126400           4425     0     0
diverseo  --     100 1024000 1126400             24     0     0


#

Users: rdzcscom, fatalzon, diverseo, csmaster, infernal and krasdy are NEW costumers added AFTER I changed the mountpoint, and quota limits are set:

Code:
# quota -u diverseo
Disk quotas for user diverseo (uid 1134):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md0     100  1024000 1126400              24       0       0
#



But for all old users migrated to the new raid configuration drives quota limits aren't set:

Code:
# quota -u krsalmus
Disk quotas for user krsalmus (uid 1006): none
#




I want that DA to reconfigure quota limits for every user in the system -- that's all ..
 
Last edited:
I want that DA to reconfigure quota limits for every user in the system -- that's all ..

I think you are going to have to modify, from DA, each user to reset the quotas. Or you can do it manually using the quota system from the command line. If you have a lot of users you could write a script to read the users configuration file and then set the quota based on that.

# quota -u krsalmus
Disk quotas for user krsalmus (uid 1006): none
#

In DA if you modify krsalmus it will probably reset the quota for that user. But you have to actually change the numbers. You cannot just click save.
 
Yep - just change them (disk quotas) temporarily, click save - it'll re-write them. Then go back and adjust them back to their actual package quotas.

Worked for us when we moved to the clusters.
 
I come into the same situation and search result bring me to this thread that have no answer

after a few minutes I found the solution from this link
http://help.directadmin.com/item.php?id=557

just tell DA to rebuild quota with this command
echo "action=rewrite&value=quota" >> /usr/local/directadmin/data/task.queue

sorry, for bump up the thread.
 
Back
Top