LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   XFS Filesystem on RH 9.0 Necessary? (http://www.linuxquestions.org/questions/red-hat-31/xfs-filesystem-on-rh-9-0-necessary-93996/)

GATTACA 09-17-2003 09:09 PM

XFS Filesystem on RH 9.0 Necessary?
 
Hello,

At my job we are trying to setup a Linux Server to maintain a database. Now my co-worker (a programer by training) says that we need to use Linux Distribution that supports the XFS filesystem.
He says its required because several of the database entries are files that exceed 2GB in size. Apparently the standard filesystem that comes with RedHat 9.0 won't cut it.
While doing some on-line research for this project, I came across a mini-how-to for establishing the same database we want to build using Mandrake 8.0. They don't mention the need for XFS filesystem support, but they do say that you need to use a linux distro. running kernel 2.4 or higher inorder to overcome the 2GB file size limit.

My Question: Which is accurate? Do we really need to use a distro that supports XFS? or do we just need a distro. that uses kernel 2.4 or higher? Which one would allow me to get over the 2GB file limit?

Any thoughts? :scratch:

Thanks.

mlp68 09-18-2003 12:05 AM

Support for XFS or ReiserFS (both support >2G files) is not a Redhat-, but a kernel issue. I'm running Redhat 9 with Reiser, I never cared about XFS (isn't that the SGI thing they had so much trouble porting?), and the stock RH kernel comes with Reiser support out of the box (don't know about XFS, I think not - there's a freevxfs which is a different thing, I believe). In my book, Reiser is the more mature and more widespread FS, but I'm no expert in XFS. I have never had any problem with Reiser.

Virtually all distro's use the 2.4 kernel these days.

Hope it helps,

mlp

GATTACA 09-18-2003 06:45 AM

Thanks.
 
So, ReiserFS supports > 2GB files? And Redhat comes with this support right out of the box? Hum.... that's interesting. How do you tell the RH 9.0 installer to format the drive in ReiserFS format when you're building the machine?

Thanks for the info.

UltimaGuy 09-18-2003 06:54 AM

You can't tell RedHat to format the drive in reiserfs, as it just supports ext3 on installation. However, you can leave aside space for a new partition, and then create a reiserfs partition using fdisk and mkreiserfs, and then store your database files on that partition.

I heard that SUSE has support for installing reiserfs for the root file systems also(But am not sure that you need this).

GATTACA 09-18-2003 08:49 AM

Okay, so should I bother formatting a separate partition as Reiser FS or just stick with the default ext3 formatting of RedHat? Can ext3 deal with files >2GB in size?

usernamenumber 09-18-2003 09:42 AM

Actually, ext2/3 should be fine for this. My best information has the max file size under ext2/3, at least when using the standard Red Hat kernel from 7.1 or highter, at 4 Terabytes.

Just to be sure, I did the following on my laptop just now:

[brad@satsuki brad]$ dd if=/dev/zero of=bigfatfile bs=1024000 count=3000
3000+0 records in
3000+0 records out
[brad@satsuki brad]$ ls -lh bigfatfile
-rw-rw-r-- 1 brad brad 2.9G Sep 18 10:32 bigfatfile



The laptop is running rh9 using ext3fs and kernel 2.4.20-19.9 but, as I said, it should work with any reasonably recent version of ext2 or ext3, which should include your rh7.2 system.

Hope this helps.
--Brad

jwpenguin 10-25-2003 01:30 PM

XFS is a great file system. I have used if for several years, and its solid. Most bugs have been worked out on SGI's own hardware, its pretty much a porting job. Most other journaling file systems are still under development. Why RedHat doesnt offer/support it is a mystery. Then, when I called up RH support for advise on backing up the system (under advanced server 2.1), they had no solution. I have backed up the Root Partition on Linux /xfs while its up and running with XFSdump, a part of the XFS program suite. Its not just a file system. Many distributions (SUSE and a few others) already support XFS, but not Redhat.

There is development work though, to keep up to current Linux Kernel versions and their changing internals. But.. there is a good bit of info and good support thru http://oss.sgi.com/projects/xfs .

Redhat can't say its not been asked for though, by me certainly! (FWIW)

Of course., IMHO and YMMV amd all those TLA's ":^)

Best - JDW

cgill27 12-29-2003 04:42 AM

Choosing Reiser before Redhat installs
 
At the first prompt where it asks if you want to do a gui or text based install, type "linux reiserfs" and it will use the reiser filesystem.

Craig


All times are GMT -5. The time now is 09:33 AM.