当前位置:网站首页>Yyds dry inventory KVM new inventory to expand space for home
Yyds dry inventory KVM new inventory to expand space for home
2022-07-02 16:13:00 【Feng, crazy】
1. create disk 400G
qemu-img create -f raw /home/vm/disk/v1.img 400G
- 1.
2. Modify configuration file add disk
# Turn off the power
[[email protected] kvmdisk]# virsh destroy WMS-test-2
Domain WMS-test-2 destroyed
# Profile add information
[[email protected] kvmdisk]# virsh edit WMS-test-2
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source file='/home/vm/disk/v1.img'/>
<target dev='vdb' bus='ide'/>
</disk>
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
3. Format disk
mkfs -t xfs /dev/sda // Format the disk as xfs
- 1.
4. Use lvm Extended partitions
pvcreate /dev/sda
pvdisplay
take /dev/sda Add to home Corresponding volume group centos
vgextend centos /dev/sda
lvextend -L +399.9G /dev/mapper/centos_home
- 1.
- 2.
- 3.
- 4.
- 5.
5. Expand space
resize2fs /dev/mapper/centos_home
xfs_growfs /dev/mapper/centos_home // When resize2fs If something goes wrong, you can use , The file format is xfs Format time
- 1.
- 2.
边栏推荐
- Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
- Everyone Xinfu builds: a one-stop intelligent business credit service platform
- 原神2.6服务端下载以及搭建安装教程
- Make p12 certificate [easy to understand]
- day4
- 由ASP.NET Core根据路径下载文件异常引发的探究
- Text intelligent expansion and contraction control of swiftui text component (tutorial includes source code)
- 可视化技术在 Nebula Graph 中的应用
- Remove the underline in router link
- Maui learning road (III) -- in depth discussion of winui3
猜你喜欢
Memory alignment of structure
Compress words (kmp/ string hash, double hash)
注册成为harmonyos开发者并安装DevEco Studio 3.0 Beta2 for HarmonyOS
数仓中的维度表与事实表
Maui学习之路(三)--Winui3深入探讨
MySQL calculates the data within the longitude and latitude range
How to use percona tool to add fields to MySQL table after interruption
2020.4.12 byte written test questions B DP D monotone stack
Practice of traffic recording and playback in vivo
JS learning notes - first acquaintance
随机推荐
Memory alignment of structure
Boot connection to impala database
Introduction to database system Chapter 1 short answer questions - how was the final exam?
Solve * * warning * *: your ApplicationContext is unlikely to start due to a @componentscan of the defau
Does bone conduction earphone have external sound? Advantages of bone conduction earphones
Another graduation season
Everyone Xinfu builds: a one-stop intelligent business credit service platform
win10系统升级一段时间后,内存占用过高
死锁的条件及解决方法
Wise target detection 23 - pytoch builds SSD target detection platform
Usage of group by
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
Song of cactus - throwing stones to ask the way (3)
[Xiaobai chat cloud] suggestions on container transformation of small and medium-sized enterprises
Flink real-time data warehouse (7): Flink realizes the full pull module to extract data in MySQL
Summary of multithreading and thread synchronization knowledge
/Bin/ld: cannot find -lcrypto
Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
仙人掌之歌——投石问路(3)
微信v3native支付设置的结束时间处理办法