| Author |
Message |
Xan
Joined: 08 Feb 2004
Posts: 311
Location: Austin
|
| Posted: Sat Apr 01, 2006 2:10 am Post subject: Filesystem options? |
|
|
I just migrated to a 120 from an 80. It was my first host-to-host Linode migration, and it was absolutely seamless. I was amazed how easy it was.
My question now is about the extra disk space that I now have. I want to use a chunk of it to store email, and I'd like to use maildir, which stores each email as a file. Obviously this leads to a large number of very small files.
How can I format the ext3 partition with a nice small cluster size? In the "Disk Images" setup, I can create a new ext3 partition, but that'll have the default 4KB cluster. I can create a raw partition and format it myself, but will I then lose the ability to resize via the Linode console? I don't think I'm willing to give that up. |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 311
Location: Austin
|
| Posted: Mon Apr 03, 2006 2:44 pm Post subject: |
|
|
Caker, any thoughts here? I tried using the raw partition and formatting it myself, just to see, and sure enough I couldn't resize it.
If I choose ext3 and reformat it myself with a smaller block size, will that work? Maybe that's a risky maneuver, though, if the resizer wasn't designed and tested with that in mind.
I guess I could always offload the mail someplace else and then back whenever I need to resize. |
|
| Back to top |
|
rfinnie
Joined: 03 May 2004
Posts: 13
|
| Posted: Mon Apr 03, 2006 3:03 pm Post subject: |
|
|
| Please don't blame me if you don't wait for confirmation on this :), but IIRC the resizer is just plain e2fsck + resize2fs. So I would recommend what you said last, adding an ext3 partition using LPM, then reformatting it with the custom block size. resize2fs should have no problem with it. |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 311
Location: Austin
|
| Posted: Mon Apr 03, 2006 3:05 pm Post subject: |
|
|
| Makes sense to me. I'll probably still see if I can hear from the guy who set it all up, just to be sure. :-) |
|
| Back to top |
|
caker
Joined: 15 Apr 2003
Posts: 2392
Location: Galloway, NJ
|
| Posted: Mon Apr 03, 2006 4:11 pm Post subject: |
|
|
Xan wrote: Makes sense to me. I'll probably still see if I can hear from the guy who set it all up, just to be sure. :-)
He's right. That will work.
-Chris |
|
| Back to top |
|
jimcooncat
Joined: 06 Dec 2005
Posts: 9
|
| Posted: Fri Apr 07, 2006 11:43 am Post subject: Reiserfs for maildir |
|
|
I use reiserfs for maildirs on my office network. It's very quick and is probably the most efficient fs for small files (except for reiser4, too new for my tastes).
Only thing I don't like about it is when setting up a new filesystem (mkreiserfs) it doesn't check for bad blocks. You have to use the "badblocks" command to make a file containing the bad block mapping, then feed the file to the reiserfs tools. I've no idea how bad blocks relate to a Linode.
Update 4/29/08: John Dong (jdong) has enlightened me regarding the waning support of ReiserFS. The website of the developing company, Namesys, has now gone offline. OpenSUSE did have good reasons to stop using it as the default filesystem, and I wished I'd run across their reasoning earlier (link below). I'm reevaluating, and will probably start using Ext3 instead.
http://blog.linuxoss.com/2006/09/27/suse-102-ditching-reiserfs-as-it-default-fs/ |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 311
Location: Austin
|
| Posted: Fri Apr 07, 2006 11:47 am Post subject: |
|
|
I don't think the Linode will ever see bad blocks; each "partition" is just a file on the host IIRC.
You're right about Reiserfs and its nice handling of small files, especially since it doesn't have to round up to the cluster size. I had initially discounted it because I couldn't resize it from the LPM, but you've convinced me to reconsider it. I could always offload the data and put it back. |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 311
Location: Austin
|
| Posted: Mon Apr 10, 2006 12:14 am Post subject: |
|
|
Found some benchmarks comparing mbox, mbx, and maildir on ext3 and reiserfs.
I will definitely be switching from mbox on ext3 to maildir on reiserfs!
http://www.decisionsoft.com/pdw/mailbench.html |
|
| Back to top |
|
| |