当前位置:网站首页>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.
边栏推荐
- Nebula Graph & 数仓血缘关系数据的存储与读写
- 虚假的暑假
- JS learning notes - data types
- PyC file decompile
- Does bone conduction earphone have external sound? Advantages of bone conduction earphones
- What are the necessary functions of short video app development?
- Pyinstaller's method of packaging pictures attached to exe
- Boot connection to impala database
- MySQL calculates the data within the longitude and latitude range
- IDEA中设置背景图片(超详细)
猜你喜欢
Construction and business practice of Zhongke brain knowledge map platform
Does bone conduction earphone have external sound? Advantages of bone conduction earphones
Compress words (kmp/ string hash, double hash)
Mobile web development learning notes - Layout
Practice of constructing ten billion relationship knowledge map based on Nebula graph
请问怎么在oracle视图中使用stustr函数
结构体的内存对齐
2022 the latest and most detailed will successfully set the background image in vscade and solve unsupported problems at the same time
JS learning notes - process control
idea jar包冲突排查
随机推荐
Invalid bound statement (not found) solution summary
Group by的用法
Locate: cannot execute stat() `/var/lib/mlocate/mlocate Db ': there is no such file or directory
Compress words (kmp/ string hash, double hash)
【5G NR】RRC连接释放
Flink real-time data warehouse (7): Flink realizes the full pull module to extract data in MySQL
/Bin/ld: cannot find -lcrypto
How to use percona tool to add fields to MySQL table after interruption
[Yu Yue education] reference materials of sensing and intelligent control technology of Nanjing University of Technology
Boot 中bean配置覆盖
JS learning notes - data types
QVariant与Json的各种纠葛——Qt
Route service grid traffic through two-level gateway design
请问怎么在oracle视图中使用stustr函数
Memory alignment of structure
Best practices for building multi architecture images
Boot connection to impala database
Nebula Graph & 数仓血缘关系数据的存储与读写
华为云服务器安装mysqlb for mysqld.service failed because the control process exited with error code.See “sys
Register as a harmonios developer and install deveco studio 3.0 beta2 for harmonios