AllTechWiki



A Place for All Technical Stuff Linux Cloud etc

Linux File Systems(FS): Ext2 vs Ext3 vs Ext4 vs XFS

The main differences between the Linux File Systems  

EXT - EXTended file system 

XFS - Extension of the EXT FS


File System

Ext2-

Ext3

Ext4

Xfs

Generations

2nd  Gen of EXT FS

3rd Gen of EXT FS

4th Gen of EXT FS

Extension of the EXT FS

Default FS

Default FS before RHEL5

Default FS in RHEL5

Default FS in RHEL6

Default FS in RHEL7 & later

Maximum File Size

2TB

2TB

16TB

8 EB (Exabytes)

Maximum File System(Volume)

32TB

32TB

1 EB (Exabyte)

8 EB (Exabytes)

Maximum Subdirectories

32000

32000

64,000

Virtually unlimited (Depedns on inode limit)

Journaling

No

Yes (supports journaling)

Yes (improved journaling)

Yes (improved journaling)

Performance

Basic, lacks journaling

Improved over ext2 with journaling

Faster (extents, multiblock allocation)

Optimized for large files and parallel I/O

File System Check Time

Longer due to lack of journaling

Faster due to journaling

Faster (pre-allocation of space)

Faster, can scale to large systems

Snapshot Support

No

No

Yes (with LVM or other tools)

Yes (with built-in support)

Recovery

Manual fsck (longer recovery)

Faster recovery due to journaling

Faster recovery, better crash recovery

Fast recovery, high scalability

Create a file system

mkfs.ext2

mkfs.ext3

mkfs.ext4

mkfs.xfs

File system check

e2fsck

e2fsck

e2fsck

xfs_repair

Resizing a file system

resize2fs

resize2fs

resize2fs

xfs_growfs

Shrink Support

Does NOT Support

Does NOT Support

Support Shrink

Does NOT Support

Save an image of a file system

e2image

e2image

e2image

xfs_metadump and xfs_mdrestore

Label or tune a file system

tune2fs

tune2fs

tune2fs

xfs_admin

Backup a file system

dump and restore

dump and restore

dump and restore

 xfsdump and xfsrestore

 




Post a Comment

Previous Post Next Post

Basic Useful Links