KVM (eight) client VM host disk online expansion

Source: Internet
Author: User

VM ID:VM4

VM Os:centos 6.5


The principle is in fact the same as the front, but the so-called online, is not to shut down the business without affecting the expansion of the situation, hot plug, and the previous new unique step, specifically add hard drive letter. Attach-disk


1. Original disk information

[Email protected] kvm]# Virsh domblklist vm4

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/67/wKiom1W3LWXCh37uAACGG6ork5g955.jpg "title=" 1.jpg " alt= "Wkiom1w3lwxch37uaacgg6ork5g955.jpg"/>

2. Create a disk and add it to the VM

[Email protected] kvm]# qemu-img create-f qcow2 vm4_add.qcow2 2g[[email protected] kvm]# Virsh attach-disk vm4/kvm/vm4_ Add.qcow2 VDB--cache=none--subdriver=qcow2


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/67/wKiom1W3LgfS2wG5AAFcwJYO0AE802.jpg "title=" 1.jpg " alt= "Wkiom1w3lgfs2wg5aafcwjyo0ae802.jpg"/>

View system self-recognition status

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/67/wKiom1W3LlqhZvAeAAEDByqeR3g533.jpg "title=" 1.jpg " alt= "Wkiom1w3llqhzvaeaaedbyqer3g533.jpg"/>

3. View the configuration information for the current VM4 and write the disk information of the VM to the configuration file (since the configuration file now comes from memory)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/70/67/wKiom1W3Ltmjg_feAAP42KJc4cA957.jpg "title=" 1.jpg " alt= "Wkiom1w3ltmjg_feaap42kjc4ca957.jpg"/>

The red part of the figure to be written to vm4.xml manually


Next you can restart, partition, and in what way you decide


This article is from the "Big Wind" blog, please be sure to keep this source http://lansgg.blog.51cto.com/5675165/1679199

KVM (eight) client VM host disk online expansion

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.