LVM-type StoragePool-convert OpenStack (8) _ PHP Tutorial every 5 minutes

Source: Internet
Author: User
LVM-type StoragePool-convert OpenStack (8) every five minutes ). LVM-type StoragePool-playing with OpenStack (8) LVM-type StoragePool every day for 5 minutes. not only can one file be allocated to the client as a virtual disk, storage Pool of l lvm type in VG on the host machine-playing with OpenStack (8) every 5 minutes)

LVM Storage Pool

Not only can a file be allocated to the client as a virtual disk, but also the LV in the VG on the host can be allocated to the virtual machine as a virtual disk.
However, because LV does not have an MBR boot record for the disk, it cannot be used as the boot disk of the virtual machine and can only be used as the data disk.

In this configuration, the VG on the host is a Storage Pool, and the LV in the VG is Volume.
The advantage of LV is that it has good performance. The disadvantage is that it is inferior to image files in terms of management and mobility, and it cannot be remotely used through the network.

The following is an example.

First, create a 10 gb vg on the host machine and name it HostVG.

Then a Storage Pool definition file/etc/libvirt/storage/HostVG. xml is created. the content is

Run the virsh command to create a new Storage Pool "HostVG"

And enable this HostVG

Now we can add the LV virtual disk for the virtual machine kvm1 in virt-manager.

Click Browse

You can see that HostVG is already in the Stroage Pool list. select HostVG

Name volume newlv and set the size to 100 MB.

Click Finish. newlv is created successfully.

Click Choose Volume

Click Finish to add newlv as volume to kvm1.

The new volume is successfully added.
On the host machine, an LV named newlv is added.

Other Storage pools

KVM also supports iSCSI, Ceph and other types of Storage Pool, here is not a one-to-one introduction, the most commonly used is the directory type, other types can refer to the document http://libvirt.org/storage.html

In the next section, we will discuss the principles of KVM network virtualization.


Http://www.bkjia.com/PHPjc/1110193.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1110193.htmlTechArticleLVM-type Storage Pool-5 minutes a day to play with OpenStack (8) LVM type Storage Pool not only one file can be allocated to the client as a virtual disk, the host machine in the vg l...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.