Revision history [back]

cinder 从镜像创建卷。新把镜像下载到/var/lib/cinder/conversion/ 然后调用qemu-img convert 去转换磁盘格式

qemu-img convert -O raw -f qcow2 /var/lib/cinder/conversion/tmpNlpj3sopenstack-cinder@nfs /var/lib/cinder/mnt/c4634b0491d8c4252d4cd3d8065de876/volume-b2a9d458-ce8d-426f-8c5e-28d8a470c491

日志中出现的这个错误Failed to lock byte 100。是你在使用 NFS or GlusterFS 时qemu的一个错误。 (Qemu Aborted (core dumped) for 'qemu-kvm: Failed to lock byte 100' when remote NFS or GlusterFS volume stopped during the block mirror(or block commit/stream) process) 参考:https://cbs.centos.org/koji/buildinfo?buildID=26484