LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ext4 quotas (https://www.linuxquestions.org/questions/slackware-14/ext4-quotas-4175685865/)

Nobby6 11-26-2020 08:54 PM

ext4 quotas
 
So, anyone got any pointers to WTF the ext4 quota features are?

My google fu since to be failing, either that or I need to s/coffee/alcohol/ and come back next week


quotaon: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as
external quota files on ext4 are deprecated.


Also I see this
quotaon: Cannot stat() mounted device /dev/root: No such file or directory

...kinda funny since without /dev/sda1 aka /dev/root, the system wouldn't be there :)

Alien Bob 11-27-2020 12:51 AM

Quote:

Originally Posted by Nobby6 (Post 6189152)
So, anyone got any pointers to WTF the ext4 quota features are?

My google fu since to be failing

Really. The very first search hit told me all there was to know about it: https://www.google.com/search?q=ext4...&oq=ext4+quota

Nobby6 11-28-2020 06:46 AM

Quote:

Originally Posted by Alien Bob (Post 6189188)
Really. The very first search hit told me all there was to know about it: https://www.google.com/search?q=ext4...&oq=ext4+quota

if you are referencing this instruction " /dev/sda3 /home ext4 defaults,usrquota 0 2 "

THAT is what is giving the error,

/dev/sda5 /var/www ext4 defaults,usrquota 1 2

using that or even the old journalled quotas all result in the warning.
defaults,usrjquota=aquota.user,jqfmt=vfsv0(1) etc, same warning. journalled quotas are deprecated on ext4

teoberi 12-04-2020 04:05 AM

I found some information:
https://fossies.org/linux/misc/quota...4.06/Changelog -> Changes in quota-tools from 4.05 to 4.06 -> quotacheck,quotaon: Suggest using quota feature for ext4 (Jan Kara)
https://fossies.org/diffs/quota/4.05...on.c-diff.html
Quote:

Your kernel probably supports ext4 quota feature but you are using external quota files.
Quota Kernel Module seems to be OK!
Code:

find /lib/modules/`uname -r` -type f -name '*quota_v*.ko*'
Quote:

/lib/modules/5.4.81/kernel/fs/quota/quota_v1.ko
/lib/modules/5.4.81/kernel/fs/quota/quota_v2.ko
Quote:

Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
I still haven't found the solution here!
https://ext4.wiki.kernel.org/index.php/Quota
send me to e2fsprogs
https://sourceforge.net/projects/e2f...progs/v1.42.7/
where I find
Quote:

If e2fsprogs is compiled without --enable-quota, make sure that
tune2fs can not turn on the feature for new-style quota support, since
afterwards, none of the e2fsprogs tools will be willing to touch that
file system.
and the Slackware e2fsprogs-1.45.6-x86_64-2 package is compiled without the --enable-quota option.
http://slackware.osuosl.org/slackwar...ogs.SlackBuild
If I try to compile with that option I get it:
Quote:

configure: WARNING: unrecognized options: --enable-quota

teoberi 03-16-2024 10:12 AM

Quote:

Originally Posted by teoberi (Post 6191573)
I found some information:
https://fossies.org/linux/misc/quota...4.06/Changelog -> Changes in quota-tools from 4.05 to 4.06 -> quotacheck,quotaon: Suggest using quota feature for ext4 (Jan Kara)
https://fossies.org/diffs/quota/4.05...on.c-diff.html

Quota Kernel Module seems to be OK!
Code:

find /lib/modules/`uname -r` -type f -name '*quota_v*.ko*'

I still haven't found the solution here!
https://ext4.wiki.kernel.org/index.php/Quota
send me to e2fsprogs
https://sourceforge.net/projects/e2f...progs/v1.42.7/
where I find

and the Slackware e2fsprogs-1.45.6-x86_64-2 package is compiled without the --enable-quota option.
http://slackware.osuosl.org/slackwar...ogs.SlackBuild
If I try to compile with that option I get it:
Quote:

configure: WARNING: unrecognized options: --enable-quota

The information about compiling e2fsprogs with the
Quote:

--enable quota
option is a bit confusing.:)
Solution for quota feature here.


All times are GMT -5. The time now is 12:30 PM.