LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2017, 07:22 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: DC
Distribution: RHEL/CentOS
Posts: 1,386
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Any advantage of running various file systems types on a Linux server?


I've noticed that when building RHEL6 servers, I can select either XFS or EXT4 file system types or others for various partitions.

I have a test project going on right now where we are experimenting with Mongodb and it requires to have a XFS partition file system type.

So I'm wondering if there are any advantages/disadvantages if you were to build a server with various file system types?
 
Old 08-12-2017, 10:50 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,774

Rep: Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
On the whole, I suspect that any advantages of ext4 will be because it's designed for Linux, not a port from another POSIX system. There can be some problems with JFS not updating the journal under certain types of operation. XFS has some keen supporters using it with Linux — NASA and the BBC, for example — and RH recommend it for really huge systems (100TB!)

Reiser is a dead man walking and, despite all the extravagant praise you hear for BTRFS, it's being dropped it in RHEL 8.
 
Old 08-12-2017, 10:59 AM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: DC
Distribution: RHEL/CentOS
Posts: 1,386

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by DavidMcCann View Post

despite all the extravagant praise you hear for BTRFS, it's being dropped it in RHEL 8.
Already dropped in RHEL 7.4 .

https://news.ycombinator.com/item?id=14907771

https://www.phoronix.com/scan.php?pa...es-Btrfs-Again
 
Old 08-12-2017, 11:03 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,194

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
At a moment it comes down to selecting the best file system for a given use. While ext4 is very versatile and is considered the best overall, some others have their advantages. Xfs is one of them.

But I think your question is whether there are [dis|ad]vantages running various file systems. Then you already decided on using certain file systems for certain tasks.

Well, no, there is no disadvantage at all. Most likely you already do it. FAT on a USB, NFS for shared access, maybe iSCSI (which strictly is not a file system), ext2 for your boot sector and ext4 for your root.

The only advantage is that you select the best file system for your purpose. I run xfs on my 2TB data partition because it is said xfs is good for file systems containing zillions of files. And ext4 on my root partition because it is stable.

jlinkels
 
Old 08-12-2017, 12:46 PM   #5
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: DC
Distribution: RHEL/CentOS
Posts: 1,386

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Sorry, I'm not clear on the question.

Say for example, I have the following Linux server with the following partitions with the following file system types:

Code:
/home     ext4
/etc     xfs 
/var     ext4 
/var/log     xfs 
/var/log/audit     xfs 
/var/tmp     vfat
/tmp     xfs
/usr/local     ext3
This is just an example. However would there be say performance problems with an Linux system with a mix of file system types for one OS?
 
Old 08-12-2017, 01:37 PM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,194

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
You were clear in your question.

AFAIK there is no performance penalty. The kernel simply uses a different function to access the partition.

jlinkels
 
Old 08-12-2017, 05:42 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
There is every reason to use different formats on the same Linux system, As was mentioned by DavidMcCann, xfs is better for many small files within the same directory. Xfs is scalable to very large volumes without performance penalty.

Ext4 is a multipurpose Linux file system designed for good performance and stability in most applications. ext4 is ready made for SElinux, whereas xfs requires tweaks to the metadata during the format to use SElinux.

Because the striping of the format can be adjusted during format, xfs can be configured for higher performance on certain types of raid volumes.

If you have more than one type of file system, the kernel simply loads the modules for each one.
 
  


Reply

Tags
ext4, xfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mounting 'external' file systems while running LinuxLive jjanderson5 Linux - Virtualization and Cloud 3 04-03-2012 08:16 AM
what are ext2 and ext3 file systems in linux,what is the purpose of samba server rajaneesh Linux - Hardware 2 10-31-2009 03:21 AM
file server types Hondro Linux - Software 3 07-12-2006 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration