H-Sphere Sysadmin Guide

Fixing Quota For 2.4.20 Kernels

 

Related Docs:  

RedHat Linux Up2date

RedHat Linux 2.4.20-xx.x kernels of versions prior to 2.4.20-18.7 do not support quota management.

There are two ways how to fix this problem:

  • Install the new 2.4.20-18.7 kernel, the new quota package (version 3.06), and the new quota Perl module (version 1.4.8).
  • Downgrade the kernel back to 2.4.18-xx.x.

To install the new kernel and the new quota packages, please do the following:

1) Download the patched kernel 2.4.20-18.7 and the quota 3.06-9.7 package from the RedHat Support page and install them according to instructions provided there.

2) Download and install the new quota Perl module:
wget http://www.perl.com/CPAN/modules/by-module/Quota/Quota-1.4.8.tar.gz
tar xfz Quota-1.4.8.tar.gz
cd Quota-1.4.8
perl Makefile.PL
make install clean

3) Set the quota on:
quotaoff -a
cd <partition_where_quota_is_set>
rm -f aquota.user
(or rm -f quota.user for older quota type)
quotacheck -am -F vfsv0

Note: quotacheck creates the aquota.user file automatically; however, if this file is still not created, force its creation with the following command:
touch aquota.user; chmod 600 aquota.user

quotaon -a

4) Reset user quota limits using H-Sphere SetQuota tool:
su - cpanel
java psoft.hsphere.tools.SetQuota -lid <logical_web_server_id>

To make sure Java Virtual Machine has enough resources to perform the task, add respective parameters to the command:
java -Xms64M -Xmx256M psoft.hsphere.tools.SetQuota -lid <logical_web_server_id>

 


Related Docs:  

RedHat Linux Up2date



© Copyright 1998-2004. Positive Software Corporation.
All rights reserved.