glance上传大镜像

故障现象glance上传500G镜像出错,日志显示ceph pool 读写出错

解决办法:手动把镜像文件上传到ceph,再注册到glance

uuid=$(uuidgen)

rbd -p images --image-format 2 import image_file $uuid

rbd -p images snap create --snap snap $uuid

rbd -p images snap protect --snap snap $uuid

glance image-create --id $uuid --name image_name --disk-format raw --container-format bare --is-public false --location rbd://$(ceph fsid)/images/$uuid/snap


 

你可能感兴趣的:(OpenStack,ceph)