quota partition

urgido

Verified User
Joined
Oct 28, 2008
Messages
435
Location
MX
I have problems with quota partition:

setquota: Device (/) filesystem is mounted on unsupported device type. Skipping. setquota: Mountpoint (or device) / not found. setquota: Not all specified mountpoints are using quota.

server:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

server:~# /usr/sbin/repquota /
repquota: Mountpoint (or device) / not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.

server:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 234418848 1950044 220561028 1% /
tmpfs 1031640 0 1031640 0% /lib/init/rw
udev 10240 660 9580 7% /dev
tmpfs 1031640 0 1031640 0% /dev/shm
server:~# /sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.


on directadmin.conf
quota_partition=/

server:~# /sbin/quotacheck -cavugm
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: Scanning /dev/sda1 [/] \
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 3396 directories and 32312 files
quotacheck: Old file not found.
quotacheck: Old file not found.


What do I need? :confused::confused:

Regards
 
Last edited:
I do that, but without luck. Take a look at my last command executed ;D
 
I do that, but without luck. Take a look at my last command executed ;D
server:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda1 / ext3 errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
So far I can see you dont have usrquota en grpquota.

Below you find my /etc/fstab
~# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults,usrquota,grpquota,noatime,nodiratime 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
As you can see in my case on the first line (in your case it should be in the second line) you see the bold things, you should have that also.
NOTE: This is on a CentOS box, so if you don't have CentOS/Fedora it could be userquota and groupquota

Save it, reboot the server and to the command below again
Redhat:

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

/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
 
I'm only guessing... possibly the quota system isn't compatible with the partition setup you're using on Debian.

I'd suggest asking on a Debian forum or list. It really has nothing to do with DirectAdmin as far as I can see.

Jeff
 
We had this issue too (CentOS box) the problem was that 'usrquota' and 'grpquota' was added to /etc/fstab. After adding it, rebooting server we were able to fix the issue.
 
well, I think the right person to xplain this is smtalk, because when he solved this issue, I was away.

I will tell him :D
 
OS: Debian 5.0.5 64bit

I have similar problem.
After adding to fstab usrquota and grpquota
Code:
/etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,usrquota,grpquota 1       1
/dev/sdb1       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
And restarting system, and runing that command:
Code:
bluepower:~# quotacheck -avug -m
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 / so quotacheck might damage the file.
Please turn quotas off or use -f to force checking.

But:
Code:
bluepower:~# repquota /
*** Report for user quotas on device /dev/sda1
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --  857380       0       0          25449     0     0
daemon    --      60       0       0              4     0     0
man       --     888       0       0             65     0     0
libuuid   --       4       0       0              1     0     0
Debian-exim --      28       0       0              7     0     0
statd     --      20       0       0              5     0     0
blueman   --      16       0       0              4     0     0
bind      --       8       0       0              2     0     0

Code:
bluepower:~# /sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
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: Scanning /dev/sda1 [/] done
quotacheck: Checked 2092 directories and 23446 files

Is that all right? I'm newbe, and I'm not sure if I can continue installing DA.
 
Last edited:
Back
Top