Xen Virtualization Series (v) Methods for expanding disk space by Xen virtual machines Two

Source: Internet
Author: User
Tags extend file size

With the extensive use of virtualization technology, the use of virtualization thinking and start more, such as direct expansion of disk space in this case, I recommend a new disk to add a way to fit the normal physical machine to use the way.

Another way to increase disk space is to extend the space of an existing disk directly, in this way.

1. View the virtual machine configuration file

[Root@node1 data]#

[Root@node1 data]# XM List

Name ID Mem (MiB) Vcpus state time (s)

Domain-0 0 1744 1 R-----34.4

2. test02 Virtual machine using/data/test02.img

[Root@node1 data]#

[Root@node1 data]# cat/etc/xen/test02

Name = "test02"

UUID = "Cc49eaea-fb0c-5239-c055-bdafcf210cab"

MAXMEM = 512

Memory = 512

Vcpus = 1

bootloader = "/usr/bin/pygrub"

On_poweroff = "Destroy"

On_reboot = "Restart"

On_crash = "Restart"

disk = ["Tap:aio:/data/test02.img,xvda,w"]

Vif = ["Mac=00:16:3e:44:ee:10,bridge=xenbr1,script=vif-bridge"]

[Root@node1 data]#

3. Directly extend existing virtual disk space

Virtual machine disk File size now

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/virtualization/

Directly extend virtual machine disk files

has been expanded to 10G, the following into the virtual machine for configuration.

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.