当前位置:网站首页>KVM virtual machine online disk expansion -- the road to dream
KVM virtual machine online disk expansion -- the road to dream
2022-06-21 22:35:00 【The road to dream】
KVM Online capacity expansion method of virtual machine disk :
1. adopt virsh blockresize Command to expand the current disk
2. adopt virsh attach-disk Command to add a hard disk device to the virtual machine online
# View virtual machine disk information
virsh domblklist win10
# Disk expansion
View current disk information
qemu-img info /kvm/img/win10.img
Disk expansion
virsh blockresize win10 /kvm/img/win10.img 100G
# Enter system expansion volume Omit virsh attach-disk Capacity expansion
# View all virtual machines
virsh list --all
# View the disk information of the specified virtual machine
virsh domblklist vm01
# create disk
qemu-img create -f qcow2 /kvm/img/vm01_add01.qcow2 5G
# Add disks online
virsh attach-disk vm01 /kvm/img/vm01_add01.qcow2 vdb --cache=none --subdriver=qcow2
# Enter virtual machine verification
virsh console vm01
fdisk -l /dev/sdb
# Create partitions lvm Capacity expansion
This step is omitted
# Modify the virtual machine configuration file
Write the new disk configuration to the virtual machine disk configuration , Avoid loss of restart
virsh edit vm01
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/kvm/img/vm01_add01.qcow2'/>
<target dev='vdb' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</disk>
# Restart validation
virsh console vm01
边栏推荐
- vb屏幕分辨率设置和获取_hawkol_新浪博客
- [deeply understand tcapulusdb technology] table management of document acceptance
- WPF x:ArrayExtension
- GDB debugging practice (8) transfer startup parameters to the program
- tkinter中text文本与scroll滚动条关联
- Using bioedit to do multiple sequence consistency alignment
- 利用do while循环,分别计算1-100中奇数的和、偶数的和【方法一】
- WPF data binding: data source target
- 翻译软件Bob安装教程
- 【深入理解TcaplusDB技术】一键安装Tmonitor后台
猜你喜欢
![[in depth understanding of tcapulusdb technology] tcapulusdb construction data](/img/64/4d7ec393d8469cdadc89078a8cf4b1.png)
[in depth understanding of tcapulusdb technology] tcapulusdb construction data
![[deeply understand tcapulusdb technology] one click installation of tmonitor background](/img/33/7d390732d6e441a4311189b6e49474.png)
[deeply understand tcapulusdb technology] one click installation of tmonitor background

Summary of Li Kou brush questions 4 (MySQL version)

实验二 栈和队列
![[leetcode] 8. String conversion integer (ATOI)](/img/e8/08986237d8945685888817f214d7a9.png)
[leetcode] 8. String conversion integer (ATOI)

Technology sharing | a clustering incremental statistical SQL requirement in MySQL

Design and implementation of spark offline development framework

项目流程管理工具OmniPlan Pro 4

Notes on topic brushing (16) -- binary tree: modification and construction

【深入理解TcaplusDB技术】 Tmonitor模块架构
随机推荐
Technology sharing | introduction to kubernetes pod
MySql踩坑记录
[deeply understand tcapulusdb technology] transaction execution of document acceptance
Notes on question brushing (17) -- binary search tree: about attribute problems
Synplify Pro的常用选项及命令
WPF x:ArrayExtension
力扣刷題集結4(mysql版本)
Precautions for bitmap use
刷题笔记(十六)--二叉树:修改与构造
GDB debugging practice (8) transfer startup parameters to the program
Dotter| dot method sequence pairwise comparison software
电脑屏幕分辨率怎么调?电脑屏幕修改分辨率SwitchResX
Games101 job 7- detailed explanation of implementation steps of multi thread speed up
WPF 数据绑定:数据源Source-目标Target
软件测试----测试的分类
C# 删除正在使用的文件
Second understanding microservice
fork-join线程池
Jeu de boutons de force 4 (version MySQL)
Required books