In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
It is believed that many inexperienced people don't know what to do about how to create and manage logical volumes in Linux. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
1. First of all, we prepare two SCSI hard drives, both of which are partitioned by the fdisk command and all use their space, as follows:
2. Perform the following operations on the hard disk sdb: partition it first, and then convert it to a physical volume
3. Perform the following operations on the hard disk sdc: partition it first, and then convert it to a physical volume
4. Note: you can use the command: pvcreate / dev/sdb1 / dev/sdc1 to convert 2 physical volumes at one time.
5. Use the vgcreate command to create a volume group named luoji, which includes physical volumes: / dec/sdb1, / dev/sdc1
6. Use the lvcreate command to create the logical volume mail, set aside the 6GB space from the volume group luoji, and use the mkfs command to create the ext3 file system.
7. At this point, the creation of the whole logical volume is complete, and you can use the logical volume.
Note:
1. Use the lvextend command to expand the logical volume. After completion, you need to execute the resize2fs command to update the file system size recognized by the system.
2. It is not recommended to reduce the capacity of logical volumes because it is very easy to damage existing data (usually you have to reformat the file system). If you really need to reduce the capacity of logical volumes, you can use the lvreduce command and press "y" to confirm that you can reduce disk capacity.
3. If you don't understand the above two points, you can contact me and you will give me a detailed answer.
After reading the above, have you mastered how to create and manage logical volumes in Linux? If you want to learn more skills or 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.