View previous topic :: View next topic |
Author |
Message |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Wed Dec 29, 2004 3:05 pm Post subject: Hard choice: quota, reiser and grsecurity... |
|
|
Hi,
Currently I have a 2.4.26 kernel running (gentoo-sources) with grsecurity paches applied. My /var system is on a ReiserFS partition of 24GB (IDE drive of 80GB).
I want to ADD quota support on that partition; but I have to make choices:
- Make it ext3.
Pro's: easy, I know how to do it.
Cons: I started to use Reiser because I read it was faster and better.
- Patch my 2.4 to support Reiser3 quotas.
Pro's: will work as I want it to.
Con's: I can't find that patch/help/howto anywhere
- upgrade to 2.6 and use Reiserfs4
Pro's: I'll be using a better kernel
Con's: Does it support quota? (not sure). gentoo-dev-sources doesn't have GRsecurity anymore; can I patch it manualy?
- Use XFS, JFS, ...
Con's: I don't know them; do they support quota; are they fast/ stable/ good?
Pro's: would solve the problem
Can anyone give me some directions on this? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tuxthepenguin6 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/214399360541d2ca6a5e62e.gif)
Joined: 02 Sep 2004 Posts: 29 Location: Virginia
|
Posted: Wed Dec 29, 2004 3:33 pm Post subject: Re: Hard choice: quota, reiser and grsecurity... |
|
|
nielchiano wrote: |
[*]upgrade to 2.6 and use Reiserfs4
Pro's: I'll be using a better kernel
Con's: Does it support quota? (not sure). gentoo-dev-sources doesn't have GRsecurity anymore; can I patch it manualy?
|
I would imagine that if Reiser3 supports quota, Reiser4 would also. This seems to be a matter of personal choice. It is true that Reiser outperforms ext3 in some situations, especially when dealing with very small files, but there is nothing wrong with ext3, it works fine. If you are familiar with it and know that it works with quota, I would definately recommend using it. _________________ Proud to be 100% Microsoft free
Free as in freedom |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mirko_3 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/19565491874639dbed89180.jpg)
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Wed Dec 29, 2004 3:40 pm Post subject: |
|
|
Reiser4 supports quotas natively, reiserfs requires a patch... My choice would be reiser4 (that's what I'm running anyway) or, if you don't want to (some people consider it too "new" to be stable) ext3; whatever the choice, I'd upgrade to 2.6.
I'd recommend against xfs, as it seems to suffer too much when dealing with small files, and the portage tree contains thousands of those... Dunno about JFS... _________________ Non fa male! Non fa male! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Wed Dec 29, 2004 3:47 pm Post subject: |
|
|
maybe to add: it's the /var/ partition which also contains all the files for the webserver (mostly .php's)
Also important: it's a production server, so stability is not a priority, but just mandatory!
Also, since it's a server it won't do special things with the filesystem like writing to 5 files at the same time while moving a directoy tree around... (I guess that this will stress the fs-driver) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Wed Dec 29, 2004 3:48 pm Post subject: |
|
|
mirko_3 wrote: | whatever the choice, I'd upgrade to 2.6. |
Any idea for GRsecurity? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tkdfighter Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/90126064940b5fbf899f82.jpg)
Joined: 14 May 2004 Posts: 271 Location: Bludenz, Austria
|
Posted: Wed Dec 29, 2004 4:15 pm Post subject: |
|
|
You should be able to patch the kernel yourself. Here's the link: GRsecurity.
Or, you could use the hardened-dev-sources. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Fri Dec 31, 2004 1:22 pm Post subject: |
|
|
If stability is your primary concern you shouldn't even be thinking of a 2.6 kernel
I'd set up gentoo-hardened (GRsecurity, PAX etc) ona 2.4.26 and use a soft raid mirrored ext3.
Mirroring is always a good idea for a production server. _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Fri Dec 31, 2004 1:35 pm Post subject: |
|
|
adaptr wrote: | If stability is your primary concern you shouldn't even be thinking of a 2.6 kernel
I'd set up gentoo-hardened (GRsecurity, PAX etc) ona 2.4.26 and use a soft raid mirrored ext3.
Mirroring is always a good idea for a production server. |
Hmm, I'll concider the hardened sources; the complete server is already on a software RAID1; so that's ok.
Why souldn't I use 2.6? Just "to be safe"? or are there actualy flaws in it that are waiting to be solved?
I decided to switch the partition over to ext3.
What do you propose for the other partitions (/, /usr)? also ext3 for stability? (currently ReiserFS3)
thx for the support! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat Jan 01, 2005 4:55 pm Post subject: |
|
|
Oka, kind of an addendum:
I thought I was going for a 2.4.x system with quotas (need them to keep your users in check!) but found out that that just would not work with reiser 3.6.
So I had two options - sort of the same two you had - either dump reiser and go with ext3, or dump 2.4 and use 2.6 again; this is me re-installing and pondering (lots of pondering) over a new mail and web/database server.
Well, I've decided to screw it
I just don't want to abandon reiserfs to ext3, since mail and web serving is generally about lots of small files, which reiserfs is simply better at.
I've Googled some, found some benchmark results, and it seems that overall reiserfs is just faster than ext3 - even using them in exactly the same way, i.e. with metadata journaling only.
So I'd say yeah, go with a 2.6 kernel with reiserfs quotas if you want, but if this is a paid for production environment (i.e. delivering paid services) then 2.4 is obviously longer and better tested.
Mine is just a home server that has to do the things I want it to do; nobody pays me for anything, so I can survive a total system meltdown should one occur
That said, I do recommend the hardened chain, 2.6.7-r17 as of now; you get bumped back a few minor versions, but you get GRsecurity and PaX and all that for "free"... _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Sat Jan 01, 2005 6:06 pm Post subject: |
|
|
it's a server running at the university, hosting our forum. The machines are left-overs; the hard-drives where donated; the sys-admin (me) is also a student; so it's not realy 'paid-for'.
However, the forum is incredibly important, especialy during the exams...
So I'm still not sure to go for 2.4 of 2.6... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Gentree Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/1364161114417d616b9645b.jpg)
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Sat Jan 01, 2005 7:39 pm Post subject: |
|
|
from the bench marks I found when looking into this reiserfs was at lot less impressive than many thought a year or so ago. It generally underperformed across the board.
R4 will out perform most other fs exept in the case of very few, very large files where xfs and jfs to a bit better.
I have used R4 since around March 2004 and have only had a couple of small , non-critical issues.
The only remaining issue is emerge php on an R4 partitions fails (see forum if you want details.) this is handled cleanly and has no prepercussions , there is a work around for that emerge.
R4 is streets ahead of reiserfs and I have found it completely reliable with the above caveat.
HTH ![Cool 8)](images/smiles/icon_cool.gif) _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sat Jan 01, 2005 7:46 pm Post subject: |
|
|
Then it seems performance- and stability-wise your choices are either Reiser4 on a 2.6 or ext3 on a 2.4.
Or not ? _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Sat Jan 01, 2005 8:02 pm Post subject: |
|
|
adaptr wrote: | Then it seems performance- and stability-wise your choices are either Reiser4 on a 2.6 or ext3 on a 2.4.
Or not ? |
I think I'll currently go for 2.4+ext3 (since I have experience with these). I'll try the Reiser4 out at home, and if satisfying I guess I'll switch. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tazok Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 25 Oct 2003 Posts: 310
|
Posted: Sat Jan 01, 2005 8:07 pm Post subject: |
|
|
mirko_3 wrote: | Reiser4 supports quotas natively, reiserfs requires a patch... |
uhm... as of kernel 2.6.9-nitro2 my reiser4 does not support any quotas, but my reiserfs does. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mirko_3 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/19565491874639dbed89180.jpg)
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Sat Jan 01, 2005 9:21 pm Post subject: |
|
|
Ehm... with that same kernel, my reiser4 supports quotas
It doesn't require a patch or anything, it supports it natively... _________________ Non fa male! Non fa male! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Tazok Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 25 Oct 2003 Posts: 310
|
Posted: Sun Jan 02, 2005 2:43 pm Post subject: |
|
|
That's strange.
Whenever I mount my reiser4-partition with the option usrquota, it complains about "wrong fs type, bad option, bad superblock", but without that option, it works well. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|