HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Kernel Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=6)
-   -   quota on ubuntu 11.10 at rackspace (http://www.howtoforge.com/forums/showthread.php?t=58770)

centurianii 19th September 2012 12:55

quota on ubuntu 11.10 at rackspace
 
Hello,

I tried to enable quotas on my cloud server following the "proper" way (see: http://www.ibm.com/developerworks/li...4-4/index.html or http://www.ubuntugeek.com/how-to-set...in-ubuntu.html or http://www.debianadmin.com/implement...-in-linux.html) but with error:
Code:

# quotaon -avug
quotaon: using //aquota.group on /dev/xvda1 [/]: No such process
quotaon: Quota format not supported in kernel.
quotaon: using //aquota.user on /dev/xvda1 [/]: No such process
quotaon: Quota format not supported in kernel.

After searching I found a user's answer at: http://www.howtoforge.com/perfect-se...ispconfig-3-p5 suggesting installation of linux-image-extra-virtual.
After installation I saw the differences between what rackspace gave me and what I have now:

Code:

# ls -al /lib/modules
total 20
drwxr-xr-x  5 root root 4096 2012-09-18 10:44 .
drwxr-xr-x 16 root root 4096 2012-09-04 10:32 ..
drwxr-xr-x  2 root root 4096 2011-10-18 15:49 3.0.0-12-server
drwxr-xr-x  4 root root 4096 2011-10-20 20:47 3.0.0-12-virtual
drwxr-xr-x  4 root root 4096 2012-09-18 10:46 3.0.0-26-virtual

# ls -al /lib/modules/3.0.0-12-virtual/kernel/fs/
...
no quota dir

# ls -al /lib/modules/3.0.0-12-virtual/kernel/fs/
...
quota
...

Finally, I tried to solve ALL my problems with:
Code:

# modprobe  /lib/modules/3.0.0-26-virtual/kernel/fs/quota/quota_v2.ko
FATAL: Module /lib/modules/3.0.0_26_virtual/kernel/fs/quota/quota_v2.ko not found.

or any other combination with NO result.

What's strange? My kernel remains at 12:
Code:

# uname -r
3.0.0-12-virtual

Any help?

centurianii 19th September 2012 19:44

S O L V E D!
1. Simply edit my /boot/grub/menu.lst and added first in list (at the end) the following:

title Ubuntu 12.04, kernel 3.2.0-30-virtual
root (hd0)
kernel /boot/vmlinuz-3.2.0-30-virtual root=/dev/xvda1 console=hvc0 ro quiet splash
initrd /boot/initrd.img-3.2.0-30-virtual

check /boot to see actual names.

2. Then, I rebooted and
quotaon -uagv
or -if errors
modprobe quota_v2
quotaon -uagv

that's it!


All times are GMT +2. The time now is 08:51.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.