In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The original partition / data of the Linux system has data, and reinstall the system without formatting / data partition
Need to prepare a virtual machine with / data partition
Then load the ISO, start reloading and keep the / data partition, and load directly into the partition interface
Know from the beginning that the / data partition is 2048MB, so choose to keep this partition directly.
Then delete the other partitions and then re-partition
Then wait for the system to be reinstalled as usual, and after the system is reinstalled, go in and check / data partition file to prove that it has been successful.
Add a disk to the system and use LVM management to expand the existing volume group, enter the system, and view the partition df-h
You can see the two partitions that use LVM when installing the system: /, / var. Check the volume group name and volume group usage vgdisplay.
View the space status of the current logical volume, as shown in the following figure:
Now I feel that / var 8G is not enough. If I want to expand the capacity to 28G, insert a new 20g hard disk; check it with 'fdisk-1'.
Format partition operation 'fsdisk / dev/sdb'
Set the newly added disk to LVM mode
Confirm the partition
Create the newly added partition / dev/sdb1 as a physical volume
Expand the volume group centos. Extend physical volume / dev/sdb1 to centos
At this time, centos has 20g of free space, so extend / dev/sdb1 to / var.
At this time, although the 20g disk has been extended to / var but not written to the file system, enter / etc/fstab to confirm
Write to the file system to make its expansion effective
The above are the details of how to reinstall the linux system, please pay more attention to other related articles!
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.