How Linux divides the use of XFS partitioning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.