In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to expand the directory in the Linux system, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
1. Phenomenon:
The log server was ill-considered at the beginning, and the partition was not reasonable:
2. Goal:
Reduce / home disk space and expand the new disk partition to the / root directory
Uninstall / home partition and compress partition
The target is prompted to be busy when uninstalling / home, and there is no fuser command when fuser-m / home checks who uses / home
[root@localhost zabbix] # umount / home umount: / home: target busy.
(in some cases, useful information about processes using the device can be found through lsof (8) or fuser (1).)
[root@localhost zabbix] # fuser-m / home-bash: fuser: command not found
Resolve issues where there is no fuser command:
The fuser command was not found on CentOS/RHEL 7
-bash: fuser: command not found yum install psmisc
Fuser-m / home / / continue to find out who is using / home
Kill-9 11757 / / stop the process umount / home / / unmount / home file system
Compressed Partition:
Resize2fs-p / dev/mapper/centos-home 100G
Confirm that it is a xfs format system
Cat / etc/fstab | grep centos-home
Xfsdump tools must be installed for xfs file system expansion.
Yum install xfsdump-y
Reduce / home space to 100GB, increase root directory, extend / directory space
Then remount / home
[root@localhost ~] # mount / home mount: / dev/mapper/centos-home: cannot read super block
The / home partition must be formatted to mount-so the contents of / home must be backed up before reducing the / home partition (remember!! )
Remount mount / home
The above content is how to expand the directory in the Linux system. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.