Previous Topic: Read Only File System on Application - VDS - .boot DeviceNext Topic: Remove a IP sub pool from BFC using the CLI


Recompile Kernel for Enabling Quotas

When an upgrade from an older version to a newer version of Applogic is performed, the old catalogues are also carried forward to the new version. For instance if a migration is done from version 2.7 to 2.9 the VDS_CentOS51 which was shipped with version 2.7 will also be present in version 2.9”.

In case of companies who plan to run applications which require QUOTA Support in the VDS they must be aware that there may be no quota support in the kernel of this particular template.

Process:

In these cases, the kernel may be recompiled to include quota support by following the procedure outlined below

  1. Check the version of the kernel using the command “uname –a”
  2. Download the kernel sources from this link:

    http://forum.3tera.com/showthread.php?t=164 (valid only after Applogic 2.8.9)

    Verify sure that the appropriate kernel is downloaded .The kernels might depend on the hotfixes installed. For example when you go the above link and move to page 2 and check post # 16 and 17 , the downloads depends on your hotfixes .

    To download the appropriate kernel, use the wget command in the linux shell:

    1. wget http://download2.3tera.net/oss/files/xen-3.3.2.tar.gz
    2. wget http://download2.3tera.net/oss/files/osm/xen-3.3.2-8/xen-3.3.2-8.tar.bz2
    3. wget http://download2.3tera.net/oss/files/linux-2.6.18-xen-src.tar.gz

    The actual link may vary depending upon hotfixes installed. For more information about the list of other versions please refer to the link given in point#2

  3. Copy the files to “/usr/src/redhat/SOURCES”
    config-2.6."
    
  4. Extract the bz2 package using the command “tar –xjvf xen-3.3.2-8.tar.bz2 “and then there will be a SOURCES directory created
  5. If the SOURCES directory is created successfully then run “rsync –auvh SOURCES/ . “Then type echo ‘CONFIG_QUOTA=y’ >> config-2.6.18.8-xenU.x86_64
    echo ‘CONFIG_QUOTACTL=y’ >> config-2.6.18.8-xenU.x86_64
    echo ‘CONFIG_QUOTA=y’ >> config-2.6.18.8-xenU.i386
    echo “CONFIG_QUOTACTL=y” >> config-2.6.18.8-xenU.i386
    
  6. Type “rpmbuild -bc xen.spec” . This will build the kernel with quota support
  7. After this finishes type :
    rpm -e xen-umods
    rpm -e xen-ukrnl
    
  8. Go to the xen-3.x.x BUILD directory by typing “cd ../BUILD/xen-3.x.x” . This is the xen domU kernel module which contains the packages we uninstalled in the previous step .Type “make install”

    ”Thelineshouldlooklikethis:/dev/hda1/ext3de"9.

  9. When step 8 completes edit the “/etc/fstab” file and add options usrquota,groupquota to the filesystem you want to enable the quota on and reboot the system from the controller using “3t app restart <app-name>”

    The line should look like this:

    /dev/hda1 / ext3 defaults,usrquota,grpquota 1 1

  10. When the system has restarted, login and type “quotacheck –cug / -m”.
  11. Type “repquota /” to check quota limits of users and groups.