Quota Issue (New Server)

Status
Not open for further replies.

tomc

Verified User
Joined
Feb 22, 2006
Messages
25
Hi,

I've put DA on a new server, adding the first reseller gave the error that it was unable to set the quota, pointing me here - http://help.directadmin.com/item.php?id=42

I cant seem to get quotas working...

Code:
[root@server26 /]# /usr/sbin/repquota /home
repquota: Mountpoint (or device) /home not found.
repquota: Not all specified mountpoints are using quota.

Code:
[root@server26 /]# /sbin/quotaoff -a
quotaoff: quotactl on /dev/sda5 [/]: No such device
quotaoff: quotactl on /dev/sda5 [/]: No such device

Code:
[root@server26 /]# /sbin/quotacheck -avugm;
quotacheck: Scanning /dev/sda5 [/] done
quotacheck: Checked 3887 directories and 30325 files

Code:
[root@server26 /]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults,usrquota,grpquota      1 1
LABEL=/tmp              /tmp                    ext3    noexec,nosuid        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   noexec,nosuid        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-isw_dhhba1   swap                    swap    defaults        0 0

Code:
[root@server26 /]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5            294555728   2583604 276768212   1% /
/dev/sda3              4061572     76252   3775672   2% /tmp
/dev/sda1               101086     17218     78649  18% /boot
tmpfs                  1987140         0   1987140   0% /dev/shm

Code:
[root@server26 /]# uname -ri
2.6.18-92.1.10.el5 x86_64

Running CentOS 5.2 64bit, 2 x 320GB SATA drives in hardware raid. We are running the same mobo/cpu/hdd's/os/DA on another box which works fine.

Any ideas what could be wrong, as far as I can see there are no errors on bootup, searching /var/log/messages for "quota" returns no results.

Anything else that would give any clues then please ask.

Tom
 
Since /home isn't on it's own partition you can't turn quotas on for it.

Jeff
 
Thanks for the fast replies.

I tried quotaon -
Code:
[root@server26 admin]# /sbin/quotaon -a
quotaon: using //aquota.group on /dev/sda5 [/]: No such device
quotaon: using //aquota.user on /dev/sda5 [/]: No such device

Also, it looks like I've copy/pasted one of the random attempts to get it working on /home, I did try / as follows -
Code:
[root@server26 admin]# /usr/sbin/repquota /
repquota: Mountpoint (or device) / not found.
repquota: Not all specified mountpoints are using quota.
 
Well since this isnt directly related to directadmin I would ask your question in forums for your operating system. They probably could help you in more detail then anyone could here.
 
The CentOS forums will be my next place to ask, but I normally get a much faster, more accurate, and easier to understand response from the DA forums !

If nobody here knows then I'll move onto there, I dont often hit problems that dont either have obvous solutions, posts on DA forums, or lots of google results ... but this one has totally stumped me.
 
Hi,

The device /dev/sda exists, and /dev/sda5 is a partition on it, which is mounted to / on the server.

I've found that I can successfully run /usr/sbin/repquota /dev/sda5, it just appears that I cant run it using the mount point.

I can however run /usr/sbin/repquota on some of our other CentOS servers using the mount point, which are running very simular hardware (the odd ram / hdd size difference). It may be related to having a seperate /tmp partition ? I'm not sure, I suppose the error could well be saying that as /tmp isnt mounted with quotas that it cant do quota reporting on /

As I needed to get it up and running I've changed the quota_partition value in directadmin.conf to be /dev/sda5, and everything seems to work with no errors - I have yet to find anything else thats been affected or if it doesnt count quotas correctly, but for now it seems ok.

You will possibly know the answer to this one - is the quota_partition value only used for the quota calculation, or is it used in other places (I suppose I'm asking is it ok to leave it as a device rather than a mount point ?)

Thanks,

Tom
 
Hi Tomc !

Have you known the reason of error ? I have the same problem.
I dont know How to fix this problem. can you help me?

Thanks all.
 
Make sure your servers supports quotas. This thread is well over three years old and is now closed.

If you have a direct question to ask please start a new thread with a specific question.

Jeff
 
Status
Not open for further replies.
Back
Top