In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Yesterday, I installed a system for people who forgot to skip the automatic partition. The size of the automatic partition is very speechless and not suitable for daily use.
Execute command: df-h
You can see that the system automatically allocates all the remaining space under the home partition, but we generally use the space under the root partition, so we have to move more space under the home to the root.
First you need to back up the contents of the home folder, execute the command: cp-r / home/ homebak/ (if the new system does not create another account, you do not have to back up)
Uninstall home: umount / home (if there is a process in home, use fuser-m-v-I-k / home to terminate the process under home, and finally use umount / home to uninstall / home)
Delete home sector: lvremove / dev/mapper/centos-home
Add 100g to the sector where the root is located: lvextend-L + 100G / dev/mapper/centos-root
Extended root file system: xfs_growfs / dev/mapper/centos-root
Re-create home lv: lvcreate-L 64g-n home centos (64g here is the original minus the removed space, not randomly filled)
Create a file system: mkfs.xfs / dev/centos/home
Mount home: mount / dev/centos/home / home
Cp the backup back to home and delete the backup.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.