LVM type Storage Pool-5 minutes a day to play with OpenStack (8)

Source: Internet
Author: User


Storage Pool of LVM type

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 for use as a virtual disk.

However, LV because there is no MBR boot record of the disk, can not be used as the boot disk of the virtual machine, only as a data disk.

In this configuration, the VG on the host is a Storage POOL,VG in the LV is Volume. The advantages of LV are better performance, the lack of management and mobility is not as good as image files, and can not be used remotely over the network.

Let's give an example.

First, a VG with a capacity of 10G was created on the host, named HOSTVG.

It then creates a definition file for the Storage Pool/etc/libvirt/storage/hostvg.xml, which contains

Then create a new Storage Pool "HOSTVG" with the Virsh command

and enable this HOSTVG

Now we can add the LV virtual disk to the VM Kvm1 in Virt-manager.

Click Browse

You can see that HOSTVG is already in the list of Stroage Pool, select HOSTVG

Name the volume NEWLV and set the size to 100MB

Click Finish,newlv to create a successful

Click Choose Volume

Click Finish to confirm adding newlv as volume to KVM1

New volume added successfully on the host there is a NEWLV-named LV

other types of storage Pool

KVM also supports iscsi,ceph and other types of Storage Pool, which is not described here, the most common is the directory type, other types can refer to the document http://libvirt.org/storage.html

In the next section we will begin to discuss the principles of KVM network virtualization

LVM type Storage Pool-5 minutes a day to play with OpenStack (8)

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.