Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-06-16, 09:20:13

Author Topic: Quota is not completly messed up !  (Read 3955 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Quota is not completly messed up !
« on: 2014-10-13, 14:27:51 »
Example for user with 250 GB quota:

Quote
Disk quotas for user admin2 (uid 2474):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md2      32  65536000 65536000            1807  6553600 6553600
       /dev/md3     112  65536000 65536000              28  6553600 6553600
       /dev/md4 114060164* 65536000 65536000   7days 1600484  6553600 6553600

It has now has 655 GB quota ! I was asking to set proper inodes like 100k or 200k files per account in particular plan.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Quota is not completly messed up !
« Reply #1 on: 2014-10-13, 17:28:15 »
I do not believe Mustafa is familiar with quotas.  I have been following your posts and did not understand what blocksize had to do with file inodes.

I also think quotas should be implemented correctly.  File inode and HD space is handled without taxing resources when quota is used.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Quota is not completly messed up !
« Reply #2 on: 2014-10-13, 18:33:19 »
I do not believe Mustafa is familiar with quotas.  I have been following your posts and did not understand what blocksize had to do with file inodes.

I also think quotas should be implemented correctly.  File inode and HD space is handled without taxing resources when quota is used.


I have to modify my own code and now it's working fine:

Example - user with 100 GB limit and 1000000 inodes:

Quote
Disk quotas for user zaserd (uid 2093):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md2    1088  104857600 104857600             441  1000000 1000000
       /dev/md3     132  104857600 104857600              33  1000000 1000000
       /dev/md4 45680084  104857600 104857600          482341  1000000 1000000

So all users can have up to max. million files (inodes) in every plan. But I wanted some smaller plans (10 GB and 50 GB) to have just 500000.

We also count quota instead of du -sc. This saves lots of time, but Mustafa refuses to implement this.

Nobody will use Kloxo-MR professionally without quotas.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Quota is not completly messed up !
« Reply #3 on: 2014-10-13, 20:42:27 »
65536000 is 64GB block (equal to 256GB space).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Quota is not completly messed up !
« Reply #4 on: 2014-10-13, 21:19:57 »
I agree, quotas need proper implementing.

What is wrong with spacedust solution Mustafa?  At least add the option to turn quota use on/off and use a true quota solution.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Quota is not completly messed up !
« Reply #5 on: 2014-10-13, 22:01:24 »
Just wrong read information. 65536000 is not 650GB space but 64GB (as the same as 256GB space because 1 blocksize is 4KB and not 1KB).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Quota is not completly messed up !
« Reply #6 on: 2014-10-13, 22:49:41 »
Just wrong read information. 65536000 is not 650GB space but 64GB (as the same as 256GB space because 1 blocksize is 4KB and not 1KB).

Yes, sorry, but it's 1/4 of what I wanted ;)

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.092 seconds with 22 queries.

web stats analysis