Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
errors with user quotas
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Fri Mar 15, 2024 3:06 am    Post subject: errors with user quotas Reply with quote

Hi,

A long time ago, I set up user quotas on my /home. But for a while now I've had boot warnings telling me about obsolete concepts.
So I decided to start from 0 by following https://wiki.gentoo.org/wiki/Disk_quotas#Group_quotas_.28local_system.29
But is this documentation up to date?
If yes, why jqfmt=vfsv0 and not jqfmt=vfsv1?

I have the correct options in the kernel.
I activated quotas on the FS with tune2fs -O quota /dev/md126
In fstab I have:
Code:
/dev/md126 /home ext4 noatime,acl,usrquota,jqfmt=vfsv0 1 2

Code:
/etc/conf.d/quota
RUN_QUOTACHECK="yes"
QUOTACHECK_OPTS="-avu"
QUOTAON_OPTS="-avu"
QUOTAOFF_OPTS="-avu"

Code:
# quotaon --print-state --all
group quota on /home (/dev/md126) is on
user quota on /home (/dev/md126) is on
project quota on /home (/dev/md126) is off

Code:
# LANG=C repquota -as
*** Report for user quotas on device /dev/md126
Block grace time: 7days; Inode grace time: 7days
                         Space limits File limits
User used soft hard grace used soft hard grace
-------------------------------------------------- --------------------
root -- 4000K 0K 0K 44 0 0
wizd -- 152K 0K 0K 11 0 0
spamd -- 23396K 0K 0K 10 0 0
chris -- 6874M 9766M 11719M 114k 0 0
christophe -- 536M 684M 782M 5537 0 0
fail2ban -- 16K 0K 0K 4 0 0
ilian -- 113M 167M 215M 4182 0 0
jean-didier -- 646M 831M 879M 8132 0 0
linda -- 39552K 60000K 70000K 417 0 0
mailing_list -- 744K 0K 0K 74 0 0
novazur -- 1268K 0K 0K 202 0 0
regine -- 8622M 11719M 13672M 99931 0 0
spam -- 8K 0K 0K 2 0 0
kevin -- 3324M 4883M 5860M 45322 0 0

Code:
# LANG=C quotastats
Kernel quota version: 6.5.1
Number of dquot lookups: 21195
Number of dquot drops: 19771
Number of dquot reads: 17
Number of dquot writes: 82509
Number of quotafile syncs: 0
Number of dquot cache hits: 21178
Number of allocated dquotes: 17
Number of free dquotes: 11
Number of in use dquot entries (user/group): 6

I can perfectly update quotas with setquota and edquota. Everything works, except that I have error messages that I don't understand:
First, the mount options do not mention journaled quota support (jqfmt option of fstab)
Code:
# mount | grep /home
/dev/md126 on /home type ext4 (rw,noatime,quota,usrquota)

And then :
Code:
# rc-service quota start
  * Checking quotas (may take a while)...
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option. [!! ]
  *Starting quota...
/dev/md126 [/home]: user quotas enabled [ok]

Or
Code:
# quotacheck -u /home
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

I don't understand what's wrong.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Fri Mar 15, 2024 2:06 pm    Post subject: Reply with quote

Do you have quota support in your kernel ?
Code:
File systems  --->
    [*] Quota support
    [*] Report quota messages through netlink interface
    [*] Quota format vfsv0 and vfsv1 support

_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Frautoincnam
Apprentice
Apprentice


Joined: 19 May 2017
Posts: 294

PostPosted: Fri Mar 15, 2024 2:10 pm    Post subject: Re: errors with user quotas Reply with quote

As said in my first message

Frautoincnam wrote:
I have the correct options in the kernel.


Code:
# grep QUOTA /usr/src/linux/.config
CONFIG_NETFILTER_XT_MATCH_QUOTA=y
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set
CONFIG_QUOTA_TREE=y
CONFIG_QUOTACTL=y
# CONFIG_TMPFS_QUOTA is not set
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4160
Location: Bavaria

PostPosted: Sat Mar 16, 2024 2:33 am    Post subject: Re: errors with user quotas Reply with quote

Frautoincnam wrote:
As said in my first message

I'm sorry, I didn't read it. Unfortunately I can't help anymore; we need an expert for quotas.
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum