How to understand Storage Pool of LVM type
How to understand the LVM type of Storage Pool, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Storage Pool of type LVM
Not only can a file be assigned to the client as a virtual disk, but the LV in the VG on the host can also be allocated to the virtual machine as a virtual disk.
However, LV cannot be used as a boot disk of a virtual machine because there is no MBR boot record of the disk, it can only be used as a data disk.
In this configuration, the VG on the host is a Storage Pool,VG and the LV in the host is Volume. The advantage of LV is that it has better performance; the disadvantage is that it is not as good as mirror files in terms of management and mobility, and cannot be used remotely over the network.
Let me give you an example.
First, a 10G VG is created on the host, named HostVG.
Then create a definition file / etc/libvirt/storage/HostVG.xml for Storage Pool with the following contents
Then create a new Storage Pool "HostVG" with the virsh command
And enable this HostVG
Now we can add LV's virtual disk to the virtual machine kvm1 in virt-manager.
Click Browse
You can see that HostVG is already in the list of Stroage Pool. Select HostVG.
Name volume newlv and set the size 100MB
Click Finish,newlv to create successfully
Click Choose Volume
Click Finish to confirm that newlv is added to kvm1 as volume
If the new volume is added successfully, there is an extra LV named newlv on the host.
Other types of Storage Pool
KVM also supports many types of Storage Pool, such as iSCSI,Ceph, which will not be described here. The most commonly used type is the directory type.
After reading the above, have you mastered how to understand Storage Pool of LVM type? 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!