Do not use on any
shared computer
May 17, 2008 07:02am pdt
03.24.2002 at 04:30AM PST, ID: 20280861
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

User fail on disk quota when creating a file?
Tags: linux, bypass, disk, quota
User fail on disk quota when creating a file,
Although this user have a lot of free quota

mysql user and group got lot of free disk space :
>/sbin/quotaoff /dev/hda4
>quota -v mysql
Disk quotas for user mysql (uid 116):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4   88415 1000000 2000000              87    1000    2000

>quota -g mysql
Disk quotas for group mysql (gid 116):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4       4  512001  512000               6    1000    2000

Only  quotaoff
>/sbin/quotaoff /dev/hda4
bypass this problem !

The linux Kernel is 2.2.14

Any idea ?
Start your free trial to view this solution
Question Stats
Zone: OS
Question Asked By: addady
Solution Provided By: jlevie
Participating Experts: 2
Solution Grade: C
Views: 0
Translate:
Loading Advertisement...
03.24.2002 at 09:44AM PST, ID: 6892354

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.24.2002 at 11:43AM PST, ID: 6892455

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.24.2002 at 12:55PM PST, ID: 6892525

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.29.2002 at 12:57AM PST, ID: 6904660

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.29.2002 at 10:00AM PST, ID: 6905397

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.29.2002 at 12:25PM PST, ID: 6905663

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.03.2002 at 06:45PM PST, ID: 6916983

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.03.2002 at 10:52PM PST, ID: 6917379

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.04.2002 at 11:23AM PST, ID: 6918968

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
03.24.2002 at 09:44AM PST, ID: 6892354

Rank: Sage

When you see the quota problem is mysql the logged on user, or is the logged on user someone else that's using the database?
 
03.24.2002 at 11:43AM PST, ID: 6892455
I'm login as root and then "su mysql",
so you can say I'm logon as user.
The point is the mysql database process fail for the
same resion.
 
03.24.2002 at 12:55PM PST, ID: 6892525

Rank: Sage

Do you get the same failure if you log on as the mysql user? Are quota's in effect for any other file systems?

I've heard of this problem before with MySQL but since I use Postgres rather than MySQL I've never encountered it myself. I  don't know if it's actually a quota problem or a problem with MySQL in how it manipulates its data storage. My guess, right now, is that it's a problem with MySQL.
 
03.29.2002 at 12:57AM PST, ID: 6904660
>Do you get the same failure if you log on as the mysql >user?

Yes

>Are quota's in effect for any other file
>systems?

No

 
03.29.2002 at 10:00AM PST, ID: 6905397

Rank: Sage

What Linux is this? Can I see the output of 'df -k'? And I'd like to know where the home dir of the mysql user is.

I've been assuming, from the way the question is phrased, that the problem occurs when MySQL is trying to create or mannipulate databases. Can the mysql user create a simple file, perhaps like:

mysql> cd
mysql> cp /etc/hosts .

 
03.29.2002 at 12:25PM PST, ID: 6905663
>What Linux is this?
red hat 6.0 Kernel is 2.2.14 on cobalt raq4.

>I've been assuming, from the way the question is phrased,
>that the problem occurs when MySQL is trying
>to create or mannipulate databases

You are rigth, that how is start. But It happen allso when
I login as mysql user and try to create a file

>Can I see the output of 'df -k'
now the quota is off. the problem is on /home
$ df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1               743466    628597    114869  85% /
/dev/hda3               198601     24611    173990  12% /var
/dev/hda4             17671528   4276710  13394818  24% /home
 
04.03.2002 at 06:45PM PST, ID: 6916983

Rank: Sage

Well, since it quotas apparently worked a for a time and then started failing I'd say it's probably a software fault in the quota system. Especially since the failure occurs for the user when creating ordinary files. Ordinarily I'd suggest updating the system, but on a Cobalt you'd need to get those updates from the vendor and that service may only be available with a service contract.

Do you really need quotas enabled? The obvious work around would be to just disable quotas and manually monitor disk space for abuse.
 
04.03.2002 at 10:52PM PST, ID: 6917379
>Do you really need quotas enabled? The obvious work >around would be to just disable quotas and manually
>monitor disk space for abuse.

That what I'm doing now, but I realy need it.
Do you know any ext2 util that can repare the quota ?
 
04.04.2002 at 11:23AM PST, ID: 6918968

Rank: Sage

You can try using quotacheck to update quotas and repair any problems with the quota's files. Before doing that you really need to read the man page for quotacheck, and especially take note of what it says about only using that tool on an unmounted filesystem.

The best way to attempt a repair of the quota system is to boot single user. I don't think /home will be mounted at that point (check with df to be sure) and then run:

# quotacheck -u
# quotacheck -g

If booting to single user mode isn't an option you can try logging in as root and unmounting /home. This would have to be done with no other users logged on. Also if there are any processes running, like MySQL, that use or were started from /home you won't be able to unmount /home as long as those processes exist. If you can get /home unmounted, run quotacheck as above.
Accepted Solution
 
 
04.06.2008 at 07:08AM PDT, ID: 21291790
Isn't there a decent way to turn off quotas without having to reboot?
 
 
04.06.2008 at 12:45PM PDT, ID: 21292904
See 'man quotaoff'

The quota system can be turned on/off without a reboot. In the comment above, booting into single user mode was necessary to be able to rebuild the quota system with that file system unmounted.
 
 
04.06.2008 at 03:04PM PDT, ID: 21293310
So what command actually sets the command?  I was able to reset the quota for a  folder I think thourgh the RAQ3 admin module.  Can you please comment on what it may have done?
There must be a quota adjust command and this seemed to affect a certain  set of folders. it was rather strange it worked like this. I was expecting quotaoff to run as root and shut off all the quota services and thus not have any quota errors there after but the system appears not to let you do this. What will happen when I reboot most likely?  Will the quota system stop working if II ran quotaoff?  or will it probably just turn it back on. This is a Cobalt Raq3 server I am talking about.
 
 
04.06.2008 at 04:37PM PDT, ID: 21293579
I don't know what the "reset quota" action the RAQ admin module does. It might be using quotacheck or edquota in some way.

To completely disable quotas, use quotaoff to disable checking an enforcing of quotas, and then remove the quota files from the root of the file system. On the next reboot quotas on the filesystem will not start. See the man pages for quota, quotaon, edquota, etc for more information.
 
 
 
20080206-EE-VQP-25