Resizing VirtIO devices

本文介绍了在Red Hat Enterprise Linux 6 Update 1中调整VirtIO设备大小的方法,包括扩展和缩小虚拟磁盘的过程。由于该版本不支持在线调整大小,因此提供了详细的步骤来指导用户如何在完全关闭虚拟机后进行调整。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Resizing VirtIO devices

Red Hat Linux Enterprise (RHEL) 6, Update 1 does not support online disk resizing of VirtIO devices. To resize a VirtIO device the guest must be fully shut down and restarted. Support for online resizing of block dvices is under evaluation for RHEL 6, Update 2.

You can use the following methods to resize the devices.

To grow VirtIO devices

Grow the storage.

  • If the storage device is a VxVM Volume, re-size the volume.

  • If the storage device is a LUN from a storage array, re-size the
    device on the array.

Update the size of the disk device in the host.

  • Stop all virtual machines using the storage device.

  • If the device is a LUN from a storage array, issue ‘blockdev
    –rereadpt ’ to update the size of the device.

  • Restart the virtual machines.

Update the size of the storage device in the guest .

  • If VxVM is managing the storage in the guest, use vxdisk resize.

  • If VxVM is not managing the storage in the guest, see the appropriate
    documentation.

To shrink guest disk devices

Update the size of the disk device in the guest.

  • If VxVM is managing the device in the guest, if necessary, first use
    the vxresize utility to shrink any file systems and volumes which are
    using the device. Use vxdisk resize access_name length=new_size to
    update the size of the public region of the device.

  • If VxVM is not managing the storage in the guest, see the appropriate
    documentation.

Shrink the storage in the guest.

  • If the device is a VxVM volume, shrink the volume with the vxassist
    utility.

  • If the device is a LUN from a storage array, shrink the device on
    storage array.

Update the size of the disk device in the host.

  • Stop the guests which are using the devices.

  • If the device is a LUN from a storage array, use the blockdev
    –rereadpt device command.

  • Start the guests.

转载:Resizing VirtIO devices

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值