How does Linux extend the XFS file system?

  
How Linux extends the XFS file system. There is extra space on the disk, so I want to extend the existing XFS file system created on it to fully use the extra space. How to extend the XFS file system? Let me share with you how Linux extends the XFS file system. Tutorial.
Linux Extension XFS File System Steps: XFS is an open source (GPL) log file system originally developed by Silicon Valley Graphics (SGI) and is now supported by most Linux distributions. In fact, XFS has been adopted by the latest CentOS/RHEL 7 as its default file system. Among its many features, it includes the "Online Resizing" feature, which allows existing XFS file systems to be expanded if they are already mounted. However, the reduction of the XFS file system is not yet supported.
To extend an existing XFS file system, you can use the command line tool xfs_growfs, which is available by default on most Linux distributions. Since XFS supports online resizing, the target file system can be attached or not.
The basic usage of xfs_growfs is shown below:
As a target XFS file system extension, you can specify a mount point, a disk partition, or a logical volume (when using LVM), using the number of data blocks to specify a new XFS The size of the file system. You can use the xfs_info command line tool to check the block size and number:
To extend the XFS file to 1986208:
If you don't use the “-D” option to specify the size, xfs_growfs will automatically extend the XFS file. System to the maximum available size.
Note that when you extend an existing XFS file system, you must be prepared to add space for XFS file system extensions in advance. This is obviously obvious, but if there is no free space available on the partition or disk volume, xfsgrowfs has no way. Also, if you try to extend the XFS file system size beyond the size of the disk partition or volume, xfsgrowfs will fail.

Copyright © Windows knowledge All Rights Reserved