Problem with quotas

bilsta

Verified User
Joined
May 26, 2007
Messages
7
Hi,

I am using fedora 5, and have just installed direct admin, i have created a reseller account where i will create my users, now when i try and create the account i get an error:

Error with system Quotas
setquota: Mountpoint (or device) / not found. setquota: Not all specified mountpoints are using quota.

The account gets created, but i would like to solve this error. I have been led to belive its something to do with my "/etc/fstab" file below is a copy of this:

LABEL=/ / ext2 defaults 1 1
LABEL=/boot1 /boot ext2 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/sda2 swap swap defaults 0 0


Direct admin support pointed me to:


But i am very new to linux, and frankly am confused, could anyone help me?

I would appreciate anyhelp

Regards
Billy
 
Hello,

This will be the magic line you want to edit:
Code:
LABEL=/ / ext2 defaults 1 1
and change it to:
Code:
LABEL=/ / ext2 defaults[b],usrquota,grpquota[/b] 1 1
Save, exit. Then type:
Code:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
Once that's done working, you should be back in business. If you've already created some accounts with broken quota limits, no worries, just run the following after you've fixed it, and the limits will be reset:
Code:
echo "action=rewrite&value=quota" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d400
John
 
Hello,

When i tri to assign an package to an acount i have this error:

An error has occurred
Details
Error with system Quotas
setquota: Quota file not found or has wrong format. setquota: Not all specified mountpoints are using quota.

in /etc/fstab i have this:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc rw 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdc /media/cdrom auto pamconsole,exec,noauto,managed 0 0

Somebody can help me?
 
I resolve that problem, but stii is not working quota, i have reinstal and repartion the HDD:

This is my /etc/fstab:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 defaults,usrquota,grpquota 1 1
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=SWAP-hdc5 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

this is my /etc/mtab :

/dev/hda1 / ext3 rw 1 1
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/hdc1 /boot ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/hda3 /home ext3 rw,usrquota,grpquota 1 1
/dev/hdc3 /tmp ext3 rw 0 0
/dev/hda2 /usr ext3 rw 0 0
/dev/hdc2 /var ext3 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

when i createa a user with an alocate a space, i dont have an errror, but in Direct admin dosent say the corect value of space used, says 0:200 but i put some music in public_html (100 MB) and still dosent like corectly.

If somebody have a sugestion, im hapy yo try`it.
 
Have you checked the quota command from the shell to see if it's got it right?
Code:
$ man quota
for help on how to use the quota command.

Jeff
 
Back
Top