Slashdot Mirror


XFS on a Web Server?

WWYD asks: "I am going to be setting up a fresh web server for the company I work for and am looking for some advise. It will be a Redhat 7.3 / Apache / PHP standard everyday setup that will be hosting 50+ radio station sites. My question is about SGI's XFS file system. I've been running it at home and love the recovery time after the system dies. (I experiment a lot). Would XFS be a good filesystem for a web server?"

5 of 32 comments (clear)

  1. ReiserFS would be good by Khazunga · · Score: 4, Interesting
    I have ReiserFS on the server farm for a free webmail provider I manage (150kaccounts). It has proven very reliable, and fast enough that disks are not a bottleneck.

    On my laptop, after reading the scary warnings on Gentoo install docs, I opted for XFS (not really, it was purely an excuse). I had a buggy intel e100 pro ethernet driver, and on many of the crashes, I lost all the data on some of the open files. Filesystem integrity was ok, after every crash, but I never had the same data-loss behaviour with ReiserFS.

    My advice is: benchmark the filesystems you consider stable, against your usage pattern. It's the only real data you need, apart from reliability info. However, if you're going to serve mostly static HTML, I'd say your bottleneck will be bandwidth or RAM, not your disks.

    I was not very impressed with XFS, but it's my opinion only. It's credited as a Very Good Filesystem (tm).

    --
    If at first you don't succeed, skydiving is not for you
  2. XFS is great, 2.4.18 isn't as much by Leknor · · Score: 5, Interesting

    I've been using XFS for all my systems since the beggining of this year and I've personally had zero problems with XFS. I have heard some complaints from other people but when I asked them what they didn't like the complaint was that there were null bytes in files after a crash. Unfortunatly for them this is the intended behavior by XFS in some situations.

    I think the most common kernel with XFS is 2.4.18 which is known to have some swapping problems.

    So as long as the RedHat 7.3 kernel doesn't have that swapping problem I'd say go for it. Be sure to install the xfsdump package if it isn't already and run the xfs_fsr command weekly from a cron job to keep performance high.

  3. Why not use ext3? by g4dget · · Score: 4, Insightful
    Ext3 is the default on several installations and it's tremendously easy to install. You can convert ext2 partitions to ext3 on the fly by just creating a journal. If you want to turn off journalling for some reason, you can do that, too, since an ext3 partition remains backwards compatible with ext2. And you actually get a choice between three different kinds of consistency.

    ReiserFS would be my second choice: it isn't compatible with anything, but it brings some nice, new functionality to the table.

    XFS is unlikely to be as well tested or tuned as either of these others on Linux.

    1. Re:Why not use ext3? by g4dget · · Score: 5, Informative
      After a hard crash and an unclean reboot with ext3, I would consistently lose data on open files,

      As you should--that's the way it's supposed to work by default. If you want it to work differently, you need to configure it differently. You get three choices for what is recoverable. That's two more than most other journalling file systems give you.

      and at times, my journal was, at times,(seemingly) corrupt, and I would have to boot into single user mode and manually fsck the disk, which took forever.

      It can happen, I suppose, but I haven't noticed it, and I crash machines with ext3 a lot.

  4. Running on an intranet web server/samba server by Bravo_Two_Zero · · Score: 5, Informative

    I use XFS on an intranet web server and samba server with positive results. It's an older kernel (I needed the ACL kernel patches so the NT domain ACLs would work with samba), so I don't have to recover from crashes. But, performance-wise, I have no complaints. Granted, I have a fraction of the traffic that your site would have.

    I also followed Daniel Robbin's advice on XFS (which you've no doubt read already, but just in case: http://www-106.ibm.com/developerworks/linux/librar y/l-fs10.html

    --


    Amateurs discuss tactics. Professionals discuss logistics.