PDA

View Full Version : I have no /usr/sbin/repquota



Scormen
01-26-2008, 01:55 AM
Hi all,

My first post here. In the past, I have used DirectAdmin for a while at user level. Because I like it, I'm also using it at my own server now.

But I have a problem with my disk usage. I've searched at the forum, but can't find someone with the same problem...

I have read this article (http://help.directadmin.com/item.php?id=42), but the problem is, that I'm not having a program called "repquota" in my /usr/sbin. So I'm getting the error message -bash: /usr/sbin/repquota: no such file or directory.

My OS is CentOS 5.0 64-bit. DirectAdmin version is 1.31.2.

Grtz,
Kris

tanfwc
01-26-2008, 02:05 AM
Can you run this and show us the result?


rpm -q quota

Scormen
01-26-2008, 02:12 AM
Hi tanfwc,

When I use rpm -q quota it gives me back package quota is not installed.
Now I have installd quota.

When I now use /usr/sbin/repquota / it gives me this:
repquota: Quota file not found or has wrong format.
repquota: Not all specified mountpoints are using quota.

Here is already my /etc/fstab

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0


grtz,
Kris

nobaloney
01-28-2008, 09:32 AM
Start by installing the quota package. You should probably use YUM:

# yum install quota
Jeff

tanfwc
01-28-2008, 10:16 AM
Hi tanfwc,

When I use rpm -q quota it gives me back package quota is not installed.
Now I have installd quota.

When I now use /usr/sbin/repquota / it gives me this:
repquota: Quota file not found or has wrong format.
repquota: Not all specified mountpoints are using quota.

Here is already my /etc/fstab

/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0


grtz,
Kris

Run this


/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;

Then run repquota / again

Scormen
01-29-2008, 08:39 AM
When I run that command, tanfwc, I get


quotacheck: Scanning /dev/mapper/VolGroup00-LogVol00 [/] done
quotacheck: Checked 8301 directories and 78853 files

After this, I ran repquota / and that gives me a table with the user data.

I have also ran this command again: echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue

But still, in Directadmin I can't see the logs: "You must wait for the stats to be computed. This will only happen *after* logs exist (domain must resolve and be used).".



Start by installing the quota package. You should probably use YUM:

# yum install quota
Jeff
Now I already have installed "quota" (see my second post).

Kris

tanfwc
01-29-2008, 08:54 PM
Kris,

I don't get it, in your first post, you state that quota is not available, now quota is working for you, why you are talking about stats now?

By the way, you need to wait for DirectAdmin to run the queue, it is not realtime.

Scormen
01-30-2008, 07:41 AM
Tanfwc,

Yes sorry, my quota is available now, but my stats (webalizer) still not. When I go to my stats, I get this error:


File does not exist

Details

You must wait for the stats to be computed. This will only happen *after* logs exist (domain must resolve and be used).

Info for Admins: Downloading a new webalizer binary (http://help.directadmin.com/item.php?id=63)

I have installed the new binary already, but after that, I got the error from my first post.

Grtz,
Kris

tanfwc
01-30-2008, 10:09 AM
Follow the debug guide and see if you can get something out of it.

http://www.directadmin.com/forum/showthread.php?p=113858&posted=1#post113858