当前位置:网站首页>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.
边栏推荐
- day4
- 全方位解读服务网格(Service Mesh)的背景和概念
- Construction and business practice of Zhongke brain knowledge map platform
- Song of cactus - throwing stones to ask the way (3)
- IDEA中设置背景图片(超详细)
- Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
- SQLServer查询哪些索引利用率低
- 【小白聊云】中小企业容器化改造建议
- Leetcode --- longest public prefix
- Idea jar package conflict troubleshooting
猜你喜欢

中科大脑知识图谱平台建设及业务实践

Processing gzip: stdin: not in gzip format: child returned status 1tar: error is not recoverable: exitin

Original God 2.6 server download and installation tutorial

idea jar包冲突排查

mysql min() 求某条件下最小的值出现多个结果
![OSPF - route aggregation [(summary) including configuration commands] | address summary calculation method - detailed explanation](/img/8b/36be3191a7d71f4a8c8181eaed8417.jpg)
OSPF - route aggregation [(summary) including configuration commands] | address summary calculation method - detailed explanation

Effectively use keywords to increase Amazon sales

Everyone Xinfu builds: a one-stop intelligent business credit service platform
![[fluent] dart data type number type (DART file creation | num type | int type | double type | num related API)](/img/c7/1949894e106036d2b412bcd6f70245.jpg)
[fluent] dart data type number type (DART file creation | num type | int type | double type | num related API)

Vscode设置标签页多行显示
随机推荐
/Bin/ld: cannot find -lgssapi_ krb5
Aike AI frontier promotion (7.2)
[5g NR] RRC connection release
AWS virtual machine expansion
[idea] recommend an idea translation plug-in: translation "suggestions collection"
Bean configuration override in boot
What are the necessary functions of short video app development?
/Bin/ld: cannot find -lxslt
Group by的用法
PyC file decompile
mysql min() 求某条件下最小的值出现多个结果
【小白聊云】中小企业容器化改造建议
Nebula Graph & 数仓血缘关系数据的存储与读写
idea jar包冲突排查
Pattern matching extraction of specific subgraphs in graphx graph Computing Practice
Wise target detection 23 - pytoch builds SSD target detection platform
Recommended practice sharing of Zhilian recruitment based on Nebula graph
Multi data source configuration code
End time processing method of wechat v3native payment settings
华为云服务器安装mysqlb for mysqld.service failed because the control process exited with error code.See “sys