Deep parsing Learning-centos7.4 version of LVM logical Volume
one。 First of all, we need to prepare the VM virtual machine and centos7.4 private messages. I will send you Baidu links, both of which are free resources.
II. Overview of LVM logical volumes
1.LVM logical volume function
Basic Concepts of 2.LVM Mechanism
There can be multiple physical volumes in a volume group. Logical volumes all use capacity from the volume group. The smallest unit of capacity is PE.
Administrative commands for 3.LVM
Remember these commands, how to remember, physical volume: pv volume group: vg logical volume: lv
The latter is all the same, and the physical volume cannot be expanded or reduced.
Let's learn about it first. next, let's study while we experiment.
The 4.LVM application learns the steps through this case.
To sum up: first create physical volumes-volume groups-logical volumes
3. VLM experiment
1. Let's add three hard drives first.
two。 The hard drive added after reboot can only be recognized.
3. Let's go to the device DEV to see if these hard drives are available.
4. Enter hard disk editing
5. Add the first primary partition
6. Change the primary partition type of sdb to LVM
7. Enter the primary partition of sdc and replace it with LVM
8. Enter the primary partition of sdd and replace it with LVM
9. Create all three LVM as physical volumes
10. Create a volume group, set the name
11. Create a logical area
twelve。 Go to the volume group to see if there are any logical volumes
13. Use lvdisplay to view the details of logical volumes
14. Create a second logical volume
15. Check to see if there are these two logical partitions
16. Extend 10G to logical volume mbox01
17. Check whether the logical volume has 35G.
18. Format two logical volumes and create two mount points
19. Edit in automatic mount
20. Restart to see if it is mounted.
That's all we have.