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. 2017-11-07, 19:24:30

Author Topic: Please add inode limit to plans  (Read 2250 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Please add inode limit to plans
« on: 2014-04-20, 18:05:31 »
I use quota with Kloxo-MR and I really need this feature to limit number of files for my customers.

There is no risk for all other users even if quota doesn't work on their servers.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Please add inode limit to plans
« Reply #1 on: 2014-05-14, 21:55:37 »
It's easy - in linuxlib.php

// Issue #680 - Too high inode count in Kloxo quota - set 0 that unlimited
//   $inode = $disk * 500;
   $inode = 0;
   lxshell_return("setquota", "-u", $username, $disk, $disk, $inode, $inode, "

Just change:

$inode = 0;

to

$inode = 1000000;

or some value that can be set via plans

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Please add inode limit to plans
« Reply #2 on: 2014-05-14, 21:57:43 »
And we have it working ;)

Quote
20:59 May/14/2014: 0:  [(__system__:/usr/local/lxlabs/kloxo/httpdocs) 'setquota'  '-u' 'admin2' '262144000' '262144000' '1000000' '1000000' '-a']

Disk quotas for user admin2 (uid 2474):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
       /dev/md2     564  262144000 262144000             122  1000000 1000000
       /dev/md4 109771000  262144000 262144000         1301579* 1000000 1000000   7days

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: Please add inode limit to plans
« Reply #3 on: 2014-05-16, 06:25:34 »
+1 for setquota inode limits in resource plans.  I also use quotas.  As spacedust has shown, it was already wrote into kloxo, why not activate it in KloxoMR?

This is a much needed and easy add.

Christopher

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

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: Please add inode limit to plans
« Reply #4 on: 2014-05-16, 12:03:19 »
+1 for setquota inode limits in resource plans.  I also use quotas.  As spacedust has shown, it was already wrote into kloxo, why not activate it in KloxoMR?

This is a much needed and easy add.



I've also gave mustafa free quota solution for Kloxo which was never used. Mustafa told me that using du -sc on a 3 TB filesystem is better I do not agree, because it was overloading our systems.

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: Please add inode limit to plans
« Reply #5 on: 2014-05-18, 18:18:26 »
We need this.  It should be part of KloxoMR
Christopher

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

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Please add inode limit to plans
« Reply #6 on: 2014-05-19, 04:02:07 »
Quota for space not hard to implementing but linode is otherwise because also need modified kloxo database.
..:: 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: Please add inode limit to plans
« Reply #7 on: 2014-05-19, 05:54:17 »
So add it to resource plans.  Not too hard.
Christopher

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

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.041 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM