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-04-28, 09:38:29

Author Topic: Please add number of indoes when creating new package  (Read 3367 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Just below quota add inodes.

So:

Quote
08:48 Oct/08/2014: 0: (No message) [(__system__) 'setquota'  '-u' 'testowyboczek' '104857600' '104857600' '0' '0' '-a']

becomes ex. 10000 files :

Quote
08:48 Oct/08/2014: 0: (No message) [(__system__) 'setquota'  '-u' 'testowyboczek' '104857600' '104857600' '10000' '10000' '-a']

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Please add number of indoes when creating new package
« Reply #1 on: 2014-10-08, 12:27:55 »
Maybe after change/rename column of 'client' table of 'kloxo' database.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Please add number of indoes when creating new package
« Reply #2 on: 2014-10-08, 14:12:17 »
Inform here 'echo ''>/tmp/block.xxx; du -k /tmp/block.xxx|awk '{print $1}'; 'rm' -f /tmp/block.xxx'.
..:: 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: Please add number of indoes when creating new package
« Reply #3 on: 2014-10-08, 15:15:14 »
Inform here 'echo ''>/tmp/block.xxx; du -k /tmp/block.xxx|awk '{print $1}'; 'rm' -f /tmp/block.xxx'.

What does that do ? I mean add inodes to quota so I don't have to edit Kloxo code each time but to have multiple inodes limit for each package.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Please add number of indoes when creating new package
« Reply #4 on: 2014-10-08, 15:23:01 »
I need above information!.
..:: 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: Please add number of indoes when creating new package
« Reply #5 on: 2014-10-08, 20:29:46 »
I need above information!.

'echo ''>/tmp/block.xxx; du -k /tmp/block.xxx|awk '{print $1}'; 'rm' -f /tmp/block.xxx'
-bash: echo >/tmp/block.xxx; du -k /tmp/block.xxx|awk {print: No such file or directory

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Please add number of indoes when creating new package
« Reply #6 on: 2014-10-09, 05:25:32 »
I need above information!.

'echo ''>/tmp/block.xxx; du -k /tmp/block.xxx|awk '{print $1}'; 'rm' -f /tmp/block.xxx'
-bash: echo >/tmp/block.xxx; du -k /tmp/block.xxx|awk {print: No such file or directory

This is result in my server:
Code: [Select]
[root@njbck /]# echo ''>/tmp/block.xxx; du -k /tmp/block.xxx|awk '{print $1}'; 'rm' -f /tmp/block.xxx
4
[root@njbck /]#

It's mean blocksize is 4 KB where setquota set for blocksize (not space) and inode. Setquota from previous Kloxo is inaccurate (because always think blocksize as '1 KB').
..:: 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: Please add number of indoes when creating new package
« Reply #7 on: 2014-10-09, 23:10:42 »
I also got 4 :)

That's why I had to set 256000 in order to get 250 GB quota in Kloxo....

As always please remember I sent you a working implementation of quota which we had to install everytime we update Kloxo-MR. It's massive time saver and reduces load greatly ! No need to use du -sc for /home anymore, just mail is being counted and /var/lib/mysql from SSDs which is fast ;)
« Last Edit: 2014-10-09, 23:15:54 by Spacedust »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Please add number of indoes when creating new package
« Reply #8 on: 2014-10-09, 23:26:15 »
Need modified client table before implementing this feature.

At this moment, inode will be set as 1/40 x blocksize (where blocksize = 1/4 x space). So, 1 GB space will have around 25 inode.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


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

Page created in 0.077 seconds with 18 queries.

web stats analysis