kvm虚拟机的文件系统在实时迁移后变为只读

我使用GlusterFS设置我的kvm虚拟化环境,拓扑如下:

KVM1 ———- KVM2 ————– KVM3

| ———————- | ————————- |

———————– | ————————-

————– | —————— | —————-

——- GlusterFS1GlusterFS2 ———-

设置说明如下:

Mount GlusterFS

三个kvm机器用命令挂载glusterfs

/ sbin / mount -t glusterfs -o sync,direct-io-mode = enable gfs1.dalegames.com:/gfs / gfs

为虚拟机创build文件types磁盘

qemu-img创build-f qcow2 / gfs / vs_data / linux 100G#对于Linux虚拟机

qemu-img create -f qcow2 / gfs / vs_data / windows 100G#For Windows虚拟机

安装虚拟机

安装Linux虚拟机

virt-install –ram = 4096 –vcpus = 4 –os-type = linux –os-variant = rhel6 \ –cdrom /gfs/ISOs/RHEL_Server_6.5_x86_64_DaleVS.iso –network bridge = br0 \ – 磁盘path= / gfs / vs_data / linux,format = qcow2 –accelerate –vnc \ –name = linux –noautoconsole

安装Windows虚拟机

virt-install –ram = 4096 –vcpus = 4 –os-type windows –os-variant = win2k8 \ –cdrom /gfs/ISOs/Win2k8.iso –network bridge = br0 \ –disk path = / gfs / vs_data / windows,format = qcow2,bus = virtio –disk /gfs/ISOs/virtio-win-disk.vfd,device=floppy \ –accelerate –vnc \ –name = windows –noautoconsole – -hvm

实时迁移虚拟机和问题

[root @ kvm1〜]#virsh migrate –live –verbose linux qemu + ssh:// kvm2 / system

root @ kvm2的密码:

迁移:[100%]

这时,linux虚拟机的文件系统进入了read-olny模式。

但是,当我移居一个Windows虚拟机,一切运作良好。

任何人都可以帮我解决它。 非常感谢!