File Fragmentation and File System Resiliency
Eric^2 asks: "We have an old NT server that we are going to replace sometime this year. It has Diskeeper on it to do disk defragmentation. I remember from DOS that this was also a BIG problem, and am curious how the EXT2FS handles file fragmentation. Whatever we put in to replace that NT box needs to be fairly resiliant, and I was thinking either FreeBSD, or maybe Linux with the XFS file system, as it's supposed to be more fault tolerant. I would appreciate any suggestions that you may have! Is there a more robust solution than XFS for Linux? FreeBSD? Should I stick with NT and Diskeeper? "
EXT2FS does not have much problem with file fragmentation. Like most Unix filesystems, it automatically reuses all empty space and tries to keep files/directories together.
XFS does look interesting, and it should at least reduce restart time.
Notice that on a server you can reduce file system updates by putting files which are rarely updated on read-only filesystems which are separate from the often-updated ones, reducing the partitions which need to be checked.
Of course, maybe you should also start by considering how much better anything else is when compared to what you're presently using. NT needs defragmentation, and crashes often enough that restart time and disk recovery are great concerns.
In my experience, ext2 is rather fragile if not cleanly unmounted. I don't recall my Linux desktop machine ever crashing, but it has lost power on occasion. Every time it has suffered a power outage I had files corrupted and data lost.
My NT laptop crashes on a semi-regular basis (probably heat related, it gets very hot), but I've never had any file corruption or data loss.
If you do switch to Linux make very sure that no one can trip over the plug. And make sure the cleaning people don't unplug your server to plug in a vacuum cleaner. (or is that an urban legend?)
If you are talking about running Linux with XFS - you aren't ready to run Linux. XFS is not in the Linux kernel. Before you consider switching away from NT, gain some admin time on a FreeBSD and/or Linux box, and see how they work. Work with Samba and see how the combo meets your needs and if you are up to admining the system. If so, you may want to look at ext3 or reiserfs (journaling filesystems) that should be more robust than ext2.
"And make sure the cleaning people don't unplug your server to plug in a vacuum cleaner.(or is that an urban legend?)"
I think what Paul is refering to here is not the fact that the late night staff occasionally unplug machines (an environmentally conscious janitor were I work used to turn my linux PC off -- surely similar things happen everywhere) but a particular old 60s or 70s anecdote about an IBM mainframe that always mysteriously and unexplicably crashed on a particular day of the week, at a certain time at night; and a support team at IBM was so baffled that they actually went to the site one night and sat down to watch it happen; and the janitor entered, unplugged the machine and plugged in the vacuum. It turned out he always vacuumed that room on that day of the week.
I believe this story is in the New Hacker's Dictionary, the most recent edition. Unforntunately my copy is at home so I can't consult it.
It's a neat anecdote when well told. It would be interesting to know if it were true or urban legend.