HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Problem with Quota on ubuntu 11.10 /nginx/ISPConfig 3 (http://www.howtoforge.com/forums/showthread.php?t=57072)

mattias88 27th April 2012 01:48

Problem with Quota on ubuntu 11.10 /nginx/ISPConfig 3
 
Using Amazon Web Services (Ubuntu 11.10) AMI: ubuntu/images/ebs/ubuntu-oneiric-11.10-amd64-server-20120222 (ami-baba68d3)

Here is my problem, how can I fix this?

Quote:

root@sys:/# quotaon -avug
quotaon: using //quota.group on /dev/disk/by-label/cloudimg-rootfs [/]: No such process
quotaon: Quota format not supported in kernel.
quotaon: using //quota.user on /dev/disk/by-label/cloudimg-rootfs [/]: No such process
Attempt to start Quota

Quote:

root@sys:/# rm /*quota*
root@sys:/# touch /aquota.group
root@sys:/# chmod 600 /aquota.group
root@sys:/# touch /aquota.user
root@sys:/# chmod 600 /aquota.group
Fstab Config

Quote:

root@sys:/# cat /etc/fstab
LABEL=cloudimg-rootfs / ext4 usrquota,grpquota,usrjquota=quota.user,grpjquota=q uota.group 0 0
/dev/xvdb /mnt auto defaults,nobootwait,comment=cloudconfig 0 2
/dev/xvda3 none swap sw,comment=cloudconfig 0 0
Attempt to start Quota

Quote:

root@sys:/# mount -o remount /
root@sys:/# quotacheck -avugm
quotacheck: Scanning /dev/disk/by-label/cloudimg-rootfs [/] done
quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
quotacheck: Checked 4329 directories and 47622 files
quotacheck: Old file not found.
quotacheck: Old file not found.
root@sys:/# quotaon -avug
quotaon: using //quota.group on /dev/disk/by-label/cloudimg-rootfs [/]: No such process
quotaon: Quota format not supported in kernel.
quotaon: using //quota.user on /dev/disk/by-label/cloudimg-rootfs [/]: No such process
quotaon: Quota format not supported in kernel.
root@sys:/# quotacheck -avugm
quotacheck: Scanning /dev/disk/by-label/cloudimg-rootfs [/] done
quotacheck: Checked 4329 directories and 47624 files
Kernel has quota

Quote:

root@sys:/# uname -r
3.0.0-16-virtual
root@sys:/# grep -i quota /boot/config-`uname -r`
CONFIG_NETFILTER_XT_MATCH_QUOTA=m
CONFIG_XFS_QUOTA=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_PRINT_QUOTA_WARNING is not set
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=m
CONFIG_QUOTACTL=y
CONFIG_QUOTACTL_COMPAT=y
root@sys:/#
Modprobe doesn't work


Quote:

root@valtonen:/# modprobe quota_v1
FATAL: Module quota_v1 not found.
root@valtonen:/# modprobe quota_v2
FATAL: Module quota_v2 not found.

till 27th April 2012 19:53

The setup is fine, so its either a kernel issue of the virtual kernel or something specific to the filesystem provided by amazon. I found some reports that quota does not work with the ubuntu virtual kernel. If amazon supports normal kernels, you should consider to switch to a standard ubuntu kernel.

Btw, pleae dont repost a thread to call for falko.

mattias88 27th April 2012 20:00

Hi Till

Thanks for help
Sorry for Falko thread

This is very bad news, because Ubuntu AMI is optimized for Amazon environment and provides many improvements... Not sure that you can run the normal kernel in Amazon or would even want to.

Can I continue the ISPConfig3 setup without a functional Quota? All of my virtualhosts will be privately managed so I am not concerned about limits on disk space but I do want to make sure that users are chained to their home virtualhost directories.

What do you think

till 27th April 2012 20:11

You can use ispconfig without quota. The only affected functionality is the website size limit which will not work even if you set it.

joru 21st September 2012 01:38

Quote:

Originally Posted by mattias88 (Post 278229)
Here is my problem, how can I fix this?

the quota module is removed in the virtual kernel, check answer 1 in this link to possiblty give you hints on how to overcome this issue:

http://askubuntu.com/questions/10958...rted-in-kernel

Regards,
Peter


All times are GMT +2. The time now is 18:50.

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