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.