Disk Usage is showing 0.00 or is too low (Error with system Quotas)

anan

New member
Joined
Apr 12, 2015
Messages
11
hello
my Disk Space (mb) is shown in DA too small

this is tha actual
Filesystem Size Used Avail Use% Mounted on
/dev/md3 1.8T 269M 1.7T 1% /home

and DA shown Disk Space (mb) 1.2666 !!!

so i try http://help.directadmin.com/item.php?id=42

by typing df -h shh:

Filesystem Size Used Avail Use% Mounted on
rootfs 20G 3.5G 15G 19% /
/dev/root 20G 3.5G 15G 19% /
devtmpfs 32G 0 32G 0% /dev
tmpfs 6.3G 324K 6.3G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 13G 0 13G 0% /dev/shm
/dev/md3 1.8T 269M 1.7T 1% /home

so i run : /usr/sbin/repquota /home
but result:
repquota: Mountpoint (or device) /home not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.

so what can i do ?
 
Hello,

You did not follow the steps which are described in the guide a link to which you posted. You should enable quotas on /home partition. Check that part which starts from words:

If are getting errors and no output is displayed for the repquota command, you'll need to check your /etc/fstab file to make sure that it contains the rw,userquota,groupquota line beside the partition that is using the quotas.
 
thanks for reply
------------------
this is the orignal file
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/md2 / ext4 errors=remount-ro,relatime 0 1
/dev/md3 /home ext4 defaults,relatime 1 2
/dev/sda4 swap swap defaults 0 0
/dev/sdb4 swap swap defaults 0 0
/dev/sdc4 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0

and my edit as http://help.directadmin.com/item.php?id=42 is:
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/md2 / ext4 errors=remount-ro,relatime 0 1
/dev/md3 /home ext4 defaults,relatime,usrquota,grpquota 1 2
/dev/sda4 swap swap defaults 0 0
/dev/sdb4 swap swap defaults 0 0
/dev/sdc4 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0

so what can i do after that?
i put this
quota_partition=/home

also in /usr/local/directadmin/conf/directadmin.conf

!! :confused::confused:
 
hello
i edit this file /etc/fstab to :

# <file system> <mount point> <type> <options> <dump> <pass>
/dev/md2 / ext4 errors=remount-ro,relatime 0 1
/dev/md3 /home ext4 defaults,relatime,usrquota,grpquota 1 2
/dev/sda4 swap swap defaults 0 0
/dev/sdb4 swap swap defaults 0 0
/dev/sdc4 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts defaults 0 0


and edit this also /usr/local/directadmin/conf/directadmin.conf to add this line :
quota_partition=/home

and no thing happen still have this error :

repquota: Mountpoint (or device) /home not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.
 
Code:
mount /home -o remount
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
 
thanks for your help

now the Disk Space (mb) 23.708 in Admin Level = Disk Space (MB) 23.7 in User Level !!!


and in this state https://site:2222/CMD_ADMIN_STATS is :

Filesystem Size Used Avail Use% Mounted on
/dev/md3 1.8T 278M 1.7T 1% /home
/dev/root 20G 3.5G 15G 20% /
devtmpfs 32G 0 32G 0% /dev
rootfs 20G 3.5G 15G 20% /
tmpfs 6.3G 324K 6.3G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 13G 0 13G 0% /dev/shm

so is should Disk Space (mb) in Admin Level = 278M right?
 
so is should Disk Space (mb) in Admin Level = 278M right?

I don't have answer for you. I don't know what you have there in /home and how many users you host.

Code:
cd /home
du -h --max-depth=1 .

then go into other directories that you want to check and see how much space does it take in there.
 
tried this :
/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
-bash: /usr/sbin/quotaoff: No such file or directory
quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.
-bash: /usr/sbin/quotaon: No such file or directory

:confused::confused::confused:
 
I don't have answer for you. I don't know what you have there in /home and how many users you host.

Code:
cd /home
du -h --max-depth=1 .

then go into other directories that you want to check and see how much space does it take in there.

:/home# du -h --max-depth=1
16K ./lost+found
190M ./mysql
22M ./admin
4.0K ./tmp
211M .
 
Back
Top