Page 47 - RHEL8 BOOK
P. 47
XFS is a high-performance file system which was designed by SGI for their IRIX platform. Since
XFS was ported to the Linux kernel in 2001, XFS has remained a preferred choice for many
enterprise systems especially with massive amount of data, due to its high performance, architectural
scalability and robustness.
The XFS file system is an extension of the extent file system.
XFS is a high performance 64-bit journaling file system.
Support of XFS was merged into the linux kernel in around 2002 and In 2009 Red Hat Enterprise
Linux version 5.4 usage of XFS file system.
Now RHEL 7.0 uses XFS as the default file system.
XFS supports maximum file system size of 8 exbibytes for 64bit file system.
Some comparison of XFS file system is XFS file system cannot be shrunk and poor performance with
deletions of large numbers of files.
32-bit system 64-bit system
File size: 16 Terabytes 16 Exabytes
File system: 16 Terabytes 18 Exabytes
Drawback: XFS file system cannot be shrunk and poor performance with deletion of the large
numbers of files.
Task Ext3/Ext4 XFS
Create a file system mkfs.ext4 or mkfs.ext3 mkfs.xfs
File system check e2fsk xfs_repair
Resizing a file system resize2fs xfs_growfs
Save an image of a file system e2image Xfs_metadump and xfs_mdrestore
Label or tune a file system tune2fs xfs_admin
Backup a file dump & restore xfsdump and xfsrestore
2
64
1. To see the partition list
[root@sun ~]# fdisk -l
2. To create the partition
[root@sun ~]# fdisk /dev/sda
Command (m for help) : m
Command (m for help) : n
Partition type :
p primary (3 primary, 0 extended, 1 free)
e extended
Select (default e) : e
Command (m for help) : n
: +100MB
Command (m for help) : w
3. Update the kernel without restarting
[root@sun ~]# partprobe /dev/sda
[root@sun ~]# fdisk –l
[root@ sun ~]# partx -v -a /dev/sda
4. Make the file system with ext2, ext3, ext4, xfs, vfat
[root@sun ~]# mkfs.ext2 /dev/sda8
[root@sun ~]# mkfs.ext3 /dev/sda9
[root@sun ~]# mkfs.ext4 /dev/sda10
[root@sun ~]# mkfs.vfat /dev/sda11
[root@sun ~]# mkfs.xfs /dev/sda12
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
47