We recently upgraded to 5.3.5R2P2. In the release notes in the section "New features of Data ONTAP 5.3.4" I saw this under "Quota Features":
You can now create a default tree quota that applies to any qtree that does not have an entry in /etc/quotas or any qtree that is created after the default tree quota goes into effect.
I couldn't find this documented anywhere in the man pages or the Sys Admin Guide. So I went ahead and put this entry in /etc/quotas, just guessing the syntax:
* tree 99M 99K
I ran "quota off h2" and "quota on h2" and got no complaints.
We recently created a new qtree and added this entry for it in /etc/quotas
/vol/h2/t15 tree 1000M 1000K
When I ran "quota resize h2" it complained about this new entry.
So then I tried this, figuring the default quota might be a per volume thing:
/vol/h2/* tree 99M 99K
But the quota command didn't accept it, saying "/vol/h2/*: no such file or directory".
So I guess this feature isn't there yet. If I'm just not doing it right, could someone tell me how?
Steve Losen scl@virginia.edu phone: 804-924-0640
University of Virginia ITC Unix Support
scl@sasha.acc.virginia.edu (Steve Losen) writes:
[...]
We recently created a new qtree and added this entry for it in /etc/quotas
/vol/h2/t15 tree 1000M 1000K
When I ran "quota resize h2" it complained about this new entry.
So then I tried this, figuring the default quota might be a per volume thing:
That's correct.
/vol/h2/* tree 99M 99K
But the quota command didn't accept it, saying "/vol/h2/*: no such file or directory".
So I guess this feature isn't there yet. If I'm just not doing it right, could someone tell me how?
You need an entry like:
* tree@/vol/h2 99M 99K
(and then do "quota off h2" & "quota on h2" to make it effective).
I had to work this out myself (with a little help from Eirik Fuller) when we went to 5.3.x a few months ago. It's a pity it isn't better documented, because the facilities do in fact fit together very nicely now, and one hardly ever needs to do a "quota off" & "quota on" any longer. [Remember that a default quota, like any other, can be made infinite by using "-" for the amount.]
Chris Thompson University of Cambridge Computing Service, Email: cet1@ucs.cam.ac.uk New Museums Site, Cambridge CB2 3QG, Phone: +44 1223 334715 United Kingdom.
The syntax is this:
* tree@/vol/vol_name size num_files
Let's say we have vol0 & vol1. I could do this:
* tree@/vol/vol0 25G - * tree@/vol/vol1 50G -
Then when I "quota on", any qtrees created in vol0 that do not have an entry in /etc/quotas will have a default size of 25G. Any qtrees created in vol1 that do not have an entry in /etc/quotas will have a default size of 50G.
If I do: qtree create /vol/vol0/new1 qtree create /vol/vol1/new2
Then do a quota report, qtree /vol/vol0/new1 will have a quota of 25G and qtree /vol/vol0/new2 will have a quota of 50G.
Now I add the following to /etc/quotas: /vol/vol0/new1 tree 10G - /vol/vol1/new2 tree 60G -
I do not have to turn quotas off, I simply do: quota resize vol0 quota resize vol1
and now /vol/vol0/new1 will have a size of 10G and /vol/vol1/new2 will have a size of 60G.
--tmac
Chris Thompson wrote:
scl@sasha.acc.virginia.edu (Steve Losen) writes:
[...]
We recently created a new qtree and added this entry for it in /etc/quotas
/vol/h2/t15 tree 1000M 1000K
When I ran "quota resize h2" it complained about this new entry.
So then I tried this, figuring the default quota might be a per volume thing:
That's correct.
/vol/h2/* tree 99M 99K
But the quota command didn't accept it, saying "/vol/h2/*: no such file or directory".
So I guess this feature isn't there yet. If I'm just not doing it right, could someone tell me how?
You need an entry like:
tree@/vol/h2 99M 99K
(and then do "quota off h2" & "quota on h2" to make it effective).
I had to work this out myself (with a little help from Eirik Fuller) when we went to 5.3.x a few months ago. It's a pity it isn't better documented, because the facilities do in fact fit together very nicely now, and one hardly ever needs to do a "quota off" & "quota on" any longer. [Remember that a default quota, like any other, can be made infinite by using "-" for the amount.]
Chris Thompson University of Cambridge Computing Service, Email: cet1@ucs.cam.ac.uk New Museums Site, Cambridge CB2 3QG, Phone: +44 1223 334715 United Kingdom.
-- ******All New Numbers!!!****** ************* *************
Timothy A. McCarthy --> System Engineer, Eastern Region Network Appliance http://www.netapp.com 240-268-2034 Office \ / Page Me at: 240-268-2001 Fax / 888-971-4468