It must be said that with the development of the Times, as the older generation of Linux file system EXT3/EXT4 has been slowly outdated, poor concurrency, space constraints and other problems slowly exposed.
And the next generation of file systems, where XFS performance is more prominent, a variety of test data shows that better than EXT4 is not a little bit, because this article is not about how strong XFS, so it is not so thin.
Here's how to install using XFS
#首先我们要安装XFS软件包, because this is not necessarily the system comes with, you can install # yum install xfs* directly yum and then load the # modprobe xfs to see if the installation is successful # lsmod |grep xfsxfs 1125237 1 exportfs 4236 1 xfs then look at the current partition status, # fdisk -ldisk /dev/vda: 21.5 gb, 21474836480 bytes255 heads, 63 sectors /track, 2610 cylindersunits = cylinders of 16065 * 512 = 8225280 bytessector size (logical/physical): 512 bytes / 512 bytesi/o size (Minimum/optimal): 512 bytes / 512 bytesdisk identifier: 0x0007ee22 device boot start &nBsp end blocks id system/dev/vda1 * 1 2611 20970496 83 linuxdisk /dev/vdb: 536.9 GB, 536870912000 bytes16 heads, 63 sectors/track, 1040253 Cylindersunits = cylinders of 1008 * 512 = 516096 bytessector size (logical/physical): 512 bytes / 512 bytesi/o size (minimum/ Optimal): 512 bytes / 512 bytesdisk identifier: 0x00000000 If you are interested, you can look for help, Then according to the actual needs to divide the size # mkfs.xfs --help but I just put the entire partition formatted, # mkfs.xfs /dev/vdb and then see if the file directory to be mounted is empty # Ll /datatotal 0 guarantee is empty, then be sure to mount it. # mount -t xfs /dev/vdb /data mount, look at the partition status # df -thfilesystem type size used avail use% mounted on/dev/ vda1 ext3 20g 2.9g 16g 16% //dev/vdb xfs 500g 3.1g 497g 1% /data See the Type column display XFS, can use the # of course, we want to add to boot automatically mount # vim /etc/fstab/ dev/vda1 / ext3 noatime,acl,user_xattr 1 1proc /proc proc defaults 0 0sysfs /sys sysfs noauto 0 0debugfs /sys/kernel/debug debugfs noauto 0 0devpts /dev/pts devpts mode=0620,gid=5 0 0/dev/vdb /data xfs defaults 0 0 added to the last line is possible.
Yes, it's just a few simple commands, and then we'll start using them.
How Linux divides the use of XFS partitioning