* How to set user quotas for a new fileset?
@ 2000-09-09 11:28 Ivan Dolezal
2000-09-09 13:42 ` Post Scriptum - quotactl() Ivan Dolezal
2000-10-19 1:25 ` How to set user quotas for a new fileset? Mike Mohr
0 siblings, 2 replies; 4+ messages in thread
From: Ivan Dolezal @ 2000-09-09 11:28 UTC (permalink / raw)
Hello,
I'm running a system with 2,500+ user account. Almost every user has a
different quotas for four existing filesets (AdvFS).
Now I mounted a new fileset and I wanted to setup user quotas (note: not
fileset quotas) for this new fileset the way that every user would have the
same initial user quota... and I found out that I am trapped:
- either I could easily replicate some user's quotas that (s)he has for ALL
filesets (replacing the individual quotas of other users for old filesets)
or
- or I could manually setup this new quotas for each user... for 2500+
accounts.
None of these alternatives sounds good.
I don't want to reinvent the wheel, so I'd like to ask: did anyone made some
intelligent script that would do the dirty work for me? or did I miss some
smarter command than edquota / repquota?
Thanks in advance,
Ivan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Post Scriptum - quotactl()
2000-09-09 11:28 How to set user quotas for a new fileset? Ivan Dolezal
@ 2000-09-09 13:42 ` Ivan Dolezal
2000-09-13 4:26 ` Tim Mooney
2000-10-19 1:25 ` How to set user quotas for a new fileset? Mike Mohr
1 sibling, 1 reply; 4+ messages in thread
From: Ivan Dolezal @ 2000-09-09 13:42 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]
Is quotactl() the best way to do it?
I also experimented with dqb_btime, dqb_itime, but it didn't appear to have
any influence on 'quota' grace time. Does anybody know why? I play with
AdvFS. And, actually, what time units are dqb_*time? Seconds?
Thanks for answers!
Ivan
---
Get my Certificate Authority's certificate at http://www.vsb.cz/CA/
"Ivan Dolezal" <ivan.dolezal@usa.net> p�e v diskusn�m p��sp�vku
news:8pd6sh$2hkr$1@ns.felk.cvut.cz...
> Hello,
>
> I'm running a system with 2,500+ user account. Almost every user has a
> different quotas for four existing filesets (AdvFS).
>
> Now I mounted a new fileset and I wanted to setup user quotas (note: not
> fileset quotas) for this new fileset the way that every user would have
the
> same initial user quota... and I found out that I am trapped:
>
> - either I could easily replicate some user's quotas that (s)he has for
ALL
> filesets (replacing the individual quotas of other users for old filesets)
> or
>
> - or I could manually setup this new quotas for each user... for 2500+
> accounts.
>
> None of these alternatives sounds good.
>
> I don't want to reinvent the wheel, so I'd like to ask: did anyone made
some
> intelligent script that would do the dirty work for me? or did I miss some
> smarter command than edquota / repquota?
>
> Thanks in advance,
>
> Ivan
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Post Scriptum - quotactl()
2000-09-09 13:42 ` Post Scriptum - quotactl() Ivan Dolezal
@ 2000-09-13 4:26 ` Tim Mooney
0 siblings, 0 replies; 4+ messages in thread
From: Tim Mooney @ 2000-09-13 4:26 UTC (permalink / raw)
In article <8pdepa$2mv2$1@ns.felk.cvut.cz>,
Ivan Dolezal <ivan.dolezal@usa.net> wrote:
>
> Is quotactl() the best way to do it?
Yes, it is.
> I also experimented with dqb_btime, dqb_itime, but it didn't appear to have
> any influence on 'quota' grace time. Does anybody know why? I play with
> AdvFS. And, actually, what time units are dqb_*time? Seconds?
The units are seconds. We always use a 7 day grace period, i.e.
user_quota.dqb_btime = 604800; /* 7 days * 24 hours * 3600 sec */
That seems to work for us -- I haven't tried any other values.
Check out the tru64-unix-managers mailing list. Search *way* back for
"Richard Jackson". He sent some quota code for setting user quotas on
AdvFS to the list years ago. His stuff should do exactly what you need.
If you run into problems with it, let me know. I have a similar utility
that I wrote years ago for AIX, which I've since ported to Tru64 and Linux,
for setting a quota directly from the command line without the need for
a quota prototype user. Mine has some site-specific stuff in it for our
site, though, so it would probably need some clean-up before I could give
it out.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to set user quotas for a new fileset?
2000-09-09 11:28 How to set user quotas for a new fileset? Ivan Dolezal
2000-09-09 13:42 ` Post Scriptum - quotactl() Ivan Dolezal
@ 2000-10-19 1:25 ` Mike Mohr
1 sibling, 0 replies; 4+ messages in thread
From: Mike Mohr @ 2000-10-19 1:25 UTC (permalink / raw)
Have you considered using group quotas rather than user quotas? If you examine
your quota requirements carefully, you might see a pattern that will fit your
needs.
Ivan Dolezal wrote:
> Hello,
>
> I'm running a system with 2,500+ user account. Almost every user has a
> different quotas for four existing filesets (AdvFS).
>
--
================================================================
Mike Mohr, Systems Administrator === Email: Mike.Mohr@aut.ac.nz
Information Technology Group === Phone: 64 9 917-9999 x8133
Auckland University of Technology === Fax: 64 9 917-9901
PO Box 92006, Auckland, New Zealand =
http://home.aut.ac.nz/staff/mmohr/
================================================================
If we have unlimited ability to think, why do we use computers?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-10-19 1:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-09 11:28 How to set user quotas for a new fileset? Ivan Dolezal
2000-09-09 13:42 ` Post Scriptum - quotactl() Ivan Dolezal
2000-09-13 4:26 ` Tim Mooney
2000-10-19 1:25 ` How to set user quotas for a new fileset? Mike Mohr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox