[reiserfs-list] Quotas?
Hey, anyone have a ReiserFS Quota howto or something? I want to get quotas on my drive. Also, I was wondering if anyone knew how to do bandwidth throttling? So people outside of my local network can only download from my box at a certain data rate. Thank you! -- Ken
Re: [reiserfs-list] Quotas?
Hi Ken, there are patches, you should look for the right ones for your version of the reiserfs, kernel and reiserfs utilities. BTW: Is there a way to move the quota settings from a ext2 to reiserfs? I have 500 users and don't want to edit all the quotas... CU, Lars.
Re: [reiserfs-list] Quotas?
Hi! > BTW: Is there a way to move the quota settings from a ext2 to > reiserfs? I have 500 users and don't want to edit all the > quotas... I've done this without any problems. What problems do you had ? I've simply copied the quota.user file to the new destination and remounted it (to initialize quota subsystem with new values) . Gergely
Re: [reiserfs-list] Quotas?
Hi! > At the moment, there are no user quotas left at all. You mean, no user has quotas? If yes, maybe you should do a quotaon on the target partition first. > There is a quota.user-file which I copied from ext2, in fstab is a > usrquota, and I have a patched reiserfs (that's what dmesg tells me, > too). Thats the right way... > Do I need a special version of quota-utilities? Yes. Version 1.70, which is available at namesys. I've got debianized packages too at http://dice.mfa.kfki.hu/download/quota . > One again, my configuration: > > Netfinity / ServeRaid 4M 320GB Raid5 > LVM > reiserfs (patched for quotas) Gergely
Re: [reiserfs-list] Quotas?
Hi! Okokok I see, 1.70 from namesys is different from 1.70 from SuSE... I just got the quota-archive from namesys (which is named .bz2, while it should be tar.bz2), but I can't compile: Zeus:~/quota-1.70 # make cc -g -DQUOTA_VERSION=\"1.70\" -c quota.c -o quota.o quota.c: In function `showquotas': quota.c:346: `BLOCK_SIZE_BITS' undeclared (first use in this function) quota.c:346: (Each undeclared identifier is reported only once quota.c:346: for each function it appears in.) make: *** [quota.o] Error 1 What's wrong? Thanks, CU, Lars. -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- GMX Tipp: Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1! http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
[reiserfs-list] Quotas / Production Quality
Hi, On Sun, 14 Oct 2001 18:54:12 -0400 Chris Mason wrote: >Hello everyone, > >This is beta code, it is working here, but should not be used on >production machines. We tried the new quota format with lots of process doing reads , writes (at the same time : ltp , dbench 32, kernel compilation , and quotacheck -vfumM -F vfsv0 /dev/blah) on a testbed system here. No single problem at all. :o) So we are extremely pleased with either the functionality of the new quotas as well with its speed. My question is : is so *beta* code that i can cause corruptions or problems on a production server ? oops ? When can we expect a "go for it" ? Thanks you very much. Philippe.
[reiserfs-list] Quotas for linux 2.4.5
Hello, I need quota patches for Linux 2.4.5. Where I can get this patch? Thanks Ralph
RE: [reiserfs-list] quotas for root ?
> > Are quotas for root simply not possible ? > > They don't make sense. Root is only for administration of your system, > and here quotas don't make sense. In fact, as root has all rights. Wrong. They do. Example: A root job running weird filling up all disk space in /var, keeps all the important daemons like mail/log/news etc from working. It looks as if it is supported in the 3.xx quota-utils, "New file format allows using quotas for 32-bit uids / gids, setting quotas for root." S. -- Safety Third.
Re: [reiserfs-list] quotas for root ?
Soeren Sonnenburg wrote: >>>Are quotas for root simply not possible ? >>> >>They don't make sense. Root is only for administration of your system, >>and here quotas don't make sense. In fact, as root has all rights. >> > >Wrong. They do. Example: A root job running weird filling up all disk space >in /var, keeps all the important daemons like mail/log/news etc from >working. > In that case, you don't run your jobs as root! Only be root when you absolutely need it. -b -- :__o : -\<, : 0/ 0 ---
Re: [reiserfs-list] Quotas / Production Quality
On Friday, October 19, 2001 03:27:45 PM +0200 Philippe Gramoullé <[EMAIL PROTECTED]> wrote: > Hi, > > On Sun, 14 Oct 2001 18:54:12 -0400 Chris Mason wrote: > >> Hello everyone, >> >> This is beta code, it is working here, but should not be used on >> production machines. > > We tried the new quota format with lots of process doing reads , writes > (at the same time : ltp , dbench 32, kernel compilation , and > quotacheck -vfumM -F vfsv0 /dev/blah) on a testbed system here. > > No single problem at all. :o) > > So we are extremely pleased with either the functionality of the > new quotas as well with its speed. > > My question is : is so *beta* code that i can cause corruptions or > problems > on a production server ? oops ? When can we expect a "go for it" ? > Thanks for testing, after more testers at suse, I believe the code is pretty solid. There is one additional update to improve performance, I've updated a new reiserfs-quota-11.diff to the ftp site, but in general I'm very happy with the patches. -chris
Re: [reiserfs-list] Quotas working damn well :o)
On Wednesday, October 24, 2001 04:27:52 PM -0700 Eric Fisher <[EMAIL PROTECTED]> wrote: > I'm just about to put my 2.4.13-reiser/quota kernel into production, but > before I do, I want to confirm which patches I need. I have downloaded > (this morning) all patches from > ftp://ftp.suse.com/pub/people/mason/patches/reiserfs/quota-2.4 > > They have been applied and built into a final 2.4.13 kernel. Are there > any of Jan's patches that also need to be applied or are they all in that > ftp directory above? Yes, it looks like Jan's quota-fix patch was included in the pure kernel, and the 50-quota-patch-2.4.13-pre2 patch is actually his, just taken from the suse kernel because I already had it local. -chris
Re: [reiserfs-list] Quotas working damn well :o)
On Thursday, October 25, 2001 08:57:58 AM +0200 Laradji nacer <[EMAIL PROTECTED]> wrote: > this patch work with kernel 2.4.10 and redhat ? Untested on 2.4.10, or the redhat 2.4.10. Since you have to rebuild anyway, I'd suggest 2.4.12-ac or a 2.4.13. The README file talks about which patches are needed on the -ac kernels. I haven't tried yet on -ac here, but I expect it to work. -chris
Re: [reiserfs-list] Quotas working damn well :o)
Chris Mason wrote: > > On Wednesday, October 24, 2001 04:27:52 PM -0700 Eric Fisher > <[EMAIL PROTECTED]> wrote: > > > I'm just about to put my 2.4.13-reiser/quota kernel into production, but > > before I do, I want to confirm which patches I need. I have downloaded > > (this morning) all patches from > > ftp://ftp.suse.com/pub/people/mason/patches/reiserfs/quota-2.4 > > > > They have been applied and built into a final 2.4.13 kernel. Are there > > any of Jan's patches that also need to be applied or are they all in that > > ftp directory above? > > Yes, it looks like Jan's quota-fix patch was included in the pure kernel, > and the 50-quota-patch-2.4.13-pre2 patch is actually his, just taken from > the suse kernel because I already had it local. > > -chris Forgive me for losing track of patches Chris, but are you saying here that a complete quota solution got merged into 2.4.13, and we no longer have to maintain anything separate from the kernel? Hans
Re: [reiserfs-list] Quotas working damn well :o)
On Thursday, October 25, 2001 05:44:48 PM +0400 Hans Reiser <[EMAIL PROTECTED]> wrote: > Forgive me for losing track of patches Chris, but are you saying here > that a complete quota solution got merged into 2.4.13, and we no longer > have to maintain anything separate from the kernel? That would be nice ;-) No, Jan had two patches on his ftp site, named quota-patch-2.4.x and quota-fix-2.4.x. The quota-fix patch was included, but quota-patch-2.4.x was not. Of course, the reiserfs quota patches were not included either, and can't be until the quota-patch goes in. The interesting part is that alan's kernels did include the v2 quota patch, I'm not sure what will happen when he takes over 2.4. -chris
Re: [reiserfs-list] Quotas working damn well :o)
> On Thursday, October 25, 2001 05:44:48 PM +0400 Hans Reiser > <[EMAIL PROTECTED]> wrote: > > > Forgive me for losing track of patches Chris, but are you saying here > > that a complete quota solution got merged into 2.4.13, and we no longer > > have to maintain anything separate from the kernel? > > That would be nice ;-) No, Jan had two patches on his ftp site, named > quota-patch-2.4.x and quota-fix-2.4.x. The quota-fix patch was included, > but quota-patch-2.4.x was not. > > Of course, the reiserfs quota patches were not included either, and can't > be until the quota-patch goes in. The interesting part is that alan's > kernels did include the v2 quota patch, I'm not sure what will happen when > he takes over 2.4. I don't think that quota-patch will ever go in 2.4. It changes userland interfaces so I think it's not 2.4 thing... I think in 2.5 there will be no problem. Honza -- Jan Kara <[EMAIL PROTECTED]> SuSE CR Labs
Re: [reiserfs-list] Quotas works now but it's very slow [Was: Can't build quotas. ]
Hi Vladimir, "Vladimir V. Saveliev" wrote: > At the end quotacheck seems to read quota.user by 32 bytes > records. > Are lseeks calls interleaved with read calls? Yes that's right. > what are the offsets those lseeks are called with? 32 bytes. lseek(4, 10202016, SEEK_SET)= 10202016 read(4, "", 32) = 0 I'am currently right now re-testing the quota building procedure with the new 2.4.5 kernel on a 18Go partition (i had to drop down from 28Go to 17Go for my tests) In fact after stat'ing each file , quotacheck seems to build the quota.user file 32 bytes by 32 bytes: lseek(4, 30348256, SEEK_SET)= 30348256 read(4, "", 32) = 0 lseek(4, 30348256, SEEK_SET)= 30348256 write(4, "\0\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\0\0\0"..., 32) = 32 I just don't get why it takes so long. Right now the quota.user file is growing at about 18 Ko/s :-( Wait a sec.. Ok the quotacheck process has just ended cleanly :o) It took about 35 minutes to build the quota for a 17Go partition with roughly 9500 user accounts. But IMHO, it's still quite slow. Any hint to make this quota building process faster is gladly welcome :o) Thanks, Philippe