Solved

enabling quota problem.

Posted on 2004-03-21
10
692 Views
Last Modified: 2013-12-15

Hello,

I've a problem while trying to enable quotas using "quotaon -a".

The error message is every time:

quotaon: using //quota.user on /dev/hda3 [/]: Invalid argument

quotacheck is running without errors and is generating "aquota.user".

Is there any option/config possibility to say the server to generate quota.user and not aquota.user?

Or any idea what to do?

Thanks
j79
0
Comment
Question by:j79
  • 5
  • 5
10 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 125 total points
ID: 10645703
Edit the file /etc/fstab:

Add userquota after defaults, using lower case.


1.)  /dev/hda7   /home  ext2  defaults, userquota     1 2

Then create two files for the partions

2.) touch   /home/quota.user
3.) touch  /home/quota.group
4.) chmod 600 /home/quota.user
5.) chmod 600 /home/quota.group

You must reboot the system.

6.) edquota  –u  sam ( username )

Soft limit = Maximum amount of disk disk usage a quota user can have on
the system.

Hard limit =  A user cannot go beyond. If this limit is reached, the
user will not be able to use any additional space.
0
 
LVL 2

Author Comment

by:j79
ID: 10647881
Done as you said, also done a checkquota after reboot.

# quotaon -a
quotaon: using /home/quota.group on /dev/hda3 [/home]: Invalid argument
quotaon: using /home/quota.user on /dev/hda3 [/home]: Invalid argument

It's creating aquota.user and aquota.group in the home directory and not quota.user and quota.group

j79



0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10648133
quota.user etc are from version 1 of quota. Version 2 uses aquota.user etc.
What does quotaon -v -a tell you?
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 2

Author Comment

by:j79
ID: 10649105

Hello owensleftfoot,

quotaon -v -a
quotaon: using /home/quota.group on /dev/hda3 [/home]: Invalid argument
quotaon: using /home/quota.user on /dev/hda3 [/home]: Invalid argument

"quota -V" tells:
Quota utilities version 3.03.
Compiled with RPC and EXT2_DIRECT
Bugs to mvw@planets.elm.net, jack@suse.cz

I noticed that hda3 seems to use ext3 ? Does this matter anything?

0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10649154
Could you post your /etc/fstab?
0
 
LVL 2

Author Comment

by:j79
ID: 10649190

The original fstab is/was:

/dev/hda3       /               ext3    defaults,usrquota       1 1
/dev/hda1       /boot           ext3    defaults        1 2
/dev/hda2       swap            swap    pri=42          0 0
devpts          /dev/pts        devpts  mode=0620,gid=5 0 0
proc            /proc           proc    defaults        0 0

0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10649354
The example I gave you was for enabling quotas on a mounted /home partition. You need to create aquota.user in the / directory of your filesystem.
http://www.tldp.org/HOWTO/Quota.html will take you through things step by step.
0
 
LVL 2

Author Comment

by:j79
ID: 10649604

thank you owensleftfoot, but it's not helping me.
aquota.user is being crated automatically after running a quotacheck, as I said above.
But if I try to start/enable quota it's not working because of expecting quota.user.
I also tried a link for quota.user to aquota.user, still without success.

j79
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 10649676
You can force quotaon to use either version 1 quota (quota.user) or version 2 (aquota.user) with the -F switch. To use quota.user files use quotaon -a -F vsfold
To use aquota.user use quotaon -a -F vsfv0
0
 
LVL 2

Author Comment

by:j79
ID: 10655660


I did this 2-3 steps and it works now, don't ask me why.

rm aquota.user
touch quota.user
chmod 600 quota.user
quotacheck -uvma
quotaon -a

Anyway, thank you for the assistance owensleftfoot.

j79

 
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question