LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-21-2011, 02:43 AM   #1
mahesh.salunkhe
LQ Newbie
 
Registered: Aug 2011
Posts: 19

Rep: Reputation: Disabled
query on quota


Hello all,
For a user user1 and a filesystem /partition, quota is set. What happens if user1 has already exceeded the hard limit set for him?
Is there any way to cut down the storage space already allocated to user1 to the specified hard limit? Or the administrator has to do it manually?
 
Old 08-22-2011, 06:29 AM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
I'm not sure I understand what you're asking, or if you're asking quite the right question.

When you ask "Is there any way to cut down the storage space already allocated to user1 to the specified hard limit?" do you mean is there a way for user1 to do that?

If user1 is over the hard limit they can't create any files or append to any existing files but they should still be able to log in and then delete files to get back under the hard limit. Even if they can't log in to an X session they should at least be able to log in to a command prompt.
 
Old 08-22-2011, 07:14 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Let's just say that you never want to ask a computer to destroy things arbitrarily. Or this will happen ...
 
1 members found this post helpful.
Old 08-22-2011, 07:28 AM   #4
mahesh.salunkhe
LQ Newbie
 
Registered: Aug 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks for the reply,Arizona !
Say user1 has already used 5GB space and then quota is set on the filesystem with hard limit 4GB per user.In this case,do we have any configuration parametr in quota utility to reduce the space from 5GB to 4GB by automatically deleting some of his files/folders? Or can we set some grace period before deleting the files so?

I hope I'm communicating my question.

Quote:
Originally Posted by arizonagroovejet View Post
I'm not sure I understand what you're asking, or if you're asking quite the right question.

When you ask "Is there any way to cut down the storage space already allocated to user1 to the specified hard limit?" do you mean is there a way for user1 to do that?

If user1 is over the hard limit they can't create any files or append to any existing files but they should still be able to log in and then delete files to get back under the hard limit. Even if they can't log in to an X session they should at least be able to log in to a command prompt.
 
Old 08-22-2011, 07:37 AM   #5
mahesh.salunkhe
LQ Newbie
 
Registered: Aug 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Smile

,,... Well said! But my intentions are not so harsh!

Quote:
Originally Posted by sundialsvcs View Post
Let's just say that you never want to ask a computer to destroy things arbitrarily. Or this will happen ...
 
Old 08-22-2011, 07:38 AM   #6
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by mahesh.salunkhe View Post
In this case,do we have any configuration parametr in quota utility to reduce the space from 5GB to 4GB by automatically deleting some of his files/folders?

That was actually my best guess as to what you meant but I thought you couldn't mean that because... well how would that work exactly? How you you, or any utility, decide which of user1's files it was OK to delete? I'm assuming of course that you want to avoid making user1 hate you because you chose some of their files to delete at random.



As for a grace period, well as I said user1 won't be able to create or modify any files until they get back under their hard limit. So assuming user1 actually wants to keep using whatever system this quota is on, they'll have no choice but to delete some of their files themselves.
 
Old 08-22-2011, 03:04 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Quote:
Originally Posted by arizonagroovejet View Post
As for a grace period, well as I said user1 won't be able to create or modify any files until they get back under their hard limit. So assuming user1 actually wants to keep using whatever system this quota is on, they'll have no choice but to delete some of their files themselves.
Pragmatically, since the reason for the machine (and therefore, for your job) is to enable users to get work done ... you need to use your powers of politics and persuasion here, first. First, educate the user as to the reason why quotas exist. Next, ask them to reduce their disk space usage, and offer them practical assistance in doing so. (They're probably not programmers, and if you give them an ultimatum, you've also put their project and their personnel-budget in jeopardy.) Perhaps they can argue successfully that they need their quota to be larger. Prepare your point-of-view for easy decision making by a senior manager at the appropriate level of your company's food chain. (Maybe what the company should be doing instead is buying more disk drives. C'est la vie.)

Fair Warning: Take no action that could be interpreted as "adverse to" the business objectives of any user or customer. It does not matter in the slightest what your system-administration capabilities are, because you should not confuse these with your (much more limited...) prerogatives. Document the situation very carefully and approach your management now for guidance and instructions. You are treading on (familiar...) egg shells. This is why those people get paid the bigger bucks.

Quote:
They always have one more choice ... the choice to get rid of you.
Quote:
Diplomacy: The fine art of telling someone to go to hell, in such a way that they look forward to the trip.
Quote:
Leadership is the art of making someone do what you want them to do because they want to do it.

Last edited by sundialsvcs; 08-22-2011 at 03:08 PM.
 
1 members found this post helpful.
Old 08-25-2011, 06:24 AM   #8
mahesh.salunkhe
LQ Newbie
 
Registered: Aug 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
What can I say?...Thank you very much for the reply.


Quote:
Originally Posted by sundialsvcs View Post
Pragmatically, since the reason for the machine (and therefore, for your job) is to enable users to get work done ... you need to use your powers of politics and persuasion here, first. First, educate the user as to the reason why quotas exist. Next, ask them to reduce their disk space usage, and offer them practical assistance in doing so. (They're probably not programmers, and if you give them an
ultimatum, you've also put their project and their personnel-budget in jeopardy.) Perhaps they can argue successfully that they need their quota to be larger. Prepare your point-of-view for easy decision making by a senior manager at the appropriate level of your company's food chain. (Maybe what the company should be doing instead is buying more disk drives. C'est la vie.)

Fair Warning: Take no action that could be interpreted as "adverse to" the business objectives of any user or customer. It does not matter in the slightest what your system-administration capabilities are, because you should not confuse these with your (much more limited...) prerogatives. Document the situation very carefully and approach your management now for guidance and instructions. You are treading on (familiar...) egg shells. This is why those people get paid the bigger bucks.
 
Old 08-25-2011, 06:27 AM   #9
mahesh.salunkhe
LQ Newbie
 
Registered: Aug 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
I got it now.Thank you very much!

Quote:
Originally Posted by arizonagroovejet View Post
That was actually my best guess as to what you meant but I thought you couldn't mean that because... well how would that work exactly? How you you, or any utility, decide which of user1's files it was OK to delete? I'm assuming of course that you want to avoid making user1 hate you because you chose some of their files to delete at random.



As for a grace period, well as I said user1 won't be able to create or modify any files until they get back under their hard limit. So assuming user1 actually wants to keep using whatever system this quota is on, they'll have no choice but to delete some of their files themselves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Quota + Print Quota dimingo Linux - Newbie 1 09-25-2008 12:31 AM
interesting MySQL query/view query :s mjh Programming 3 03-25-2008 07:30 AM
help with mysql query: return nth rows in query hawarden Programming 2 07-31-2006 06:36 PM
procmail+quota+bounch mail+but no quota full msg to receipent mickyman Linux - General 3 03-02-2006 03:32 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration