KVM resize磁盘大小
2015-11-23 12:58
253 查看
目标:
将kvm虚机的root disk从80G扩充到400G操作:
1、查看当前磁盘信息[root@kvm01 centos-yum]# qemu-img info centos-yum.qcow2 image: centos-yum.qcow2 file format: qcow2 virtual size: 80G (85899345920 bytes) disk size: 2.1G cluster_size: 65536
2、查看分区及文件系统信息
[root@kvm01 centos-yum]# virt-list-partitions centos-yum.qcow2 /dev/sda1 /dev/sda2 [root@kvm01 centos-yum]# virt-list-filesystems centos-yum.qcow2 /dev/sda1 /dev/vg_centos65templ/lv_root
3、创建一个新的qcow2磁盘文件,大小为400G
qemu-img create -f qcow2 centos-yumroot.qcow2 400G4、扩充磁盘大小
[root@kvm01 centos-yum]#virt-resize --expand /dev/sda2 --LV-expand /dev/vg_centos65templ/lv_root centos-yum.qcow2 centos-yumroot.qcow2 。。。。 Expanding /dev/sda2 using the 'pvresize' method ... Expanding /dev/vg_centos65templ/lv_root using the 'resize2fs' method ... Resize operation completed with no errors. Before deleting the old disk, carefully check that the resized disk boots and works correctly.
相关文章推荐
- Linux下三大免费桌面虚拟机评测
- convert(一)—— 部署managed
- convirt(二)—— 创建第一台虚机
- 搭建CloudStack
- 全虚拟化和半虚拟化的区别 cpu的ring0 ring1又是什么概念?
- 迁移 VMware 虚拟机到 KVM
- 一、免费KVM_Input Director帮你用一套键盘鼠标操作多台电脑
- 二、免费KVM_Input Director帮你用一套键盘鼠标操作多台电脑
- Centos 5.8 安装KVM虚拟机学习笔记
- kvm的网络配置 NAT方式
- KVM网络配置 Bridge方式
- VPS虚拟化架构介绍与参考
- rhel6.1 kvm安装virtio驱动
- KVM虚拟机的安装和使用方法
- 独立服务器使用IPMI安装系统图文教程
- 实体机关闭后再启动,kvm中虚拟机无法启动的问题
- 在 CentOS 上安装和配置 KVM
- KVM分布式共享存储解决方案-sheepdog
- 一些关于KVM的实践原创文章
- KVM 虚拟机在 IBM System x 上应用_图文详解桥接网络配置