admin 发表于 2021-12-21 17:27:12

openstack ceph中出现images有多个features (rbd feature disable/enable)

查找卷id信息:# rbd ls -p vms|grepc7a95401-28fe-466c-a099-ef1e4d0b3d3b
volume-c7a95401-28fe-466c-a099-ef1e4d0b3d3b

rbd查看详细信息:
# rbd -p vms info volume-c7a95401-28fe-466c-a099-ef1e4d0b3d3b
rbd image 'volume-c7a95401-28fe-466c-a099-ef1e4d0b3d3b':
size 50 GiB in 12800 objects
order 22 (4 MiB objects)
snapshot_count: 0
id: 2aab077ad60a95
block_name_prefix: rbd_data.2aab077ad60a95
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
op_features:
flags:
create_timestamp: Wed Jun 30 12:32:52 2021
access_timestamp: Wed Jun 30 12:32:52 2021
modify_timestamp: Wed Jun 30 12:32:52 2021
parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
overlap: 4 GiB
从info中看到features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
需要disable除layering外,其他disable掉:
# rbd feature disable exclusive-lock object-map fast-diff deep-flatten --image vms/volume-c7a95401-28fe-466c-a099-ef1e4d0b3d3b

再次查看info信息:# rbd -p vms info volume-c7a95401-28fe-466c-a099-ef1e4d0b3d3b
rbd image 'volume-c7a95401-28fe-466c-a099-ef1e4d0b3d3b':
size 50 GiB in 12800 objects
order 22 (4 MiB objects)
snapshot_count: 0
id: 2aab077ad60a95
block_name_prefix: rbd_data.2aab077ad60a95
format: 2
features: layering
op_features:
flags:
create_timestamp: Wed Jun 30 12:32:52 2021
access_timestamp: Wed Jun 30 12:32:52 2021
modify_timestamp: Wed Jun 30 12:32:52 2021
parent: images/059f3ad6-9591-462c-93e0-caec5f159a8d@snap
overlap: 4 GiB



页: [1]
查看完整版本: openstack ceph中出现images有多个features (rbd feature disable/enable)