当前位置:网站首页>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.
边栏推荐
- 2020.4.12 byte written test questions B DP D monotone stack
- Invalid bound statement (not found) solution summary
- 请问怎么在oracle视图中使用stustr函数
- Write your own CPU Chapter 11 - learning notes
- HMS core machine learning service helps zaful users to shop conveniently
- idea 公共方法抽取快捷键
- Flink real-time data warehouse (7): Flink realizes the full pull module to extract data in MySQL
- 解决** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the defau
- Introduction to dynamic planning I, BFS of queue (70.121.279.200)
- Usage of group by
猜你喜欢

结构体的内存对齐

JS learning notes - variables

Practice of traffic recording and playback in vivo

Mobile web development learning notes - Layout

Construction and business practice of Zhongke brain knowledge map platform

dried food! Understand the structural vulnerability of graph convolution networks

基于 Nebula Graph 构建百亿关系知识图谱实践

Pandora IOT development board learning (RT thread) - Experiment 2 RGB LED experiment (learning notes)

2020.4.12 byte written test questions B DP D monotone stack

【5G NR】RRC连接释放
随机推荐
After the win10 system is upgraded for a period of time, the memory occupation is too high
Figure database | Nepal graph v3.1.0 performance report
The difference and usage of calloc, malloc and realloc functions
数据库系统概论第一章简答题-期末考得怎么样?
Song of cactus - throwing stones to ask the way (3)
Maui learning road (III) -- in depth discussion of winui3
构建多架构镜像的最佳实践
[Xiaobai chat cloud] suggestions on container transformation of small and medium-sized enterprises
AWS云主机扩容
仙人掌之歌——投石问路(3)
Analysis of the difference between array and linked list
Everyone Xinfu builds: a one-stop intelligent business credit service platform
JS learning notes - operators
关于mysql安装的一些问题
Does bone conduction earphone have external sound? Advantages of bone conduction earphones
死锁的条件及解决方法
数据湖(十一):Iceberg表数据组织与查询
/Bin/ld: cannot find -lpam
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
Data Lake (11): Iceberg table data organization and query