In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "methods and steps to expand XFS file system". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
XFS is an open source (GPL) journaling file system originally developed by Silicon Valley Graphics (SGI) and 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 is the "online resizing" feature, which allows existing XFS file systems to be extended while mounted. However, there is no support for scaling down XFS file systems.
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. Because XFS supports online resizing, the target file system can be mounted or unmounted.
The basic usage of xfs_growfs is shown below:
As a target XFS file system to extend, you can specify mount points, disk partitions, or logical volumes (when using LVM), using the number of blocks to specify the size of the new XFS file system. You can use the xfs_info command-line tool to check block size and number:
To extend an XFS file to 1986208:
$ sudo xfs_growfs /dev/centos/root -D 1986208
If you do not specify the size using the "-D" option, xfs_growfs will automatically extend the XFS file system to the maximum available size.
$ sudo xfs_growfs /dev/centos/root
Note that when you extend an existing XFS file system, you must be prepared to add space for XFS file system extensions beforehand. This is obvious, but xfsgrowfs cannot do anything if there is no free space available on the partition or disk volume where it is located. Also, xfsgrowfs will fail if you try to expand the XFS file system beyond the size of a disk partition or volume.
"How to extend the XFS file system steps" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.