Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand Storage Pool of LVM type

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report