In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you the example analysis of Xfs file system related operations in CentOS7. I hope you will get something after reading this article. Let's discuss it together.
Xfs is the default file system type of CentOS7.0, and different file system types have different creation, check and adjustment commands, so you should pay attention to the distinction.
Resize the Xfs partition (only increase):
Lvextend-L 120g / dev/mapper/centos-root # increased to 120g
Lvextend-L + 20g / dev/mapper/centos-root # add 20g
Xfs_growfs / dev/mapper/centos-root # perform adjustments
Note: the adjustment command for ext2/ext3/ext4 is resize2fs, as follows:
Lvextend-L 120g / dev/mapper/centos-root # increased to 120g
Lvextend-L + 20g / dev/mapper/centos-root # add 20g
Lvreduce-L 50G / dev/mapper/centos-home # reduced to 50G
Lvreduce-L-8G / dev/mapper/centos-home # minus 8G
Resize2fs / dev/mapper/centos-root # perform adjustments
Repair command:
Xfs_repair / dev/sdb1
Note: the following are repair commands for Jfs, Ext2, and Ext3, respectively:
Fsck.jfs-y / dev/sdb1
Fsck.ext2-y / dev/sdb1
Fsck.ext3-y / dev/sdb1
Problems encountered in the adjustment:
1. When you use the mke2fs command on the Xfs file system to change to ext2, you need to modify the corresponding file system type in the file / etc/fstab
2. Different file system types have different creation, check and adjustment commands, so we should pay attention to the distinction.
After reading this article, I believe you have some understanding of "sample analysis of Xfs file system related operations in CentOS7". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.