首先查看镜像: [root@node1 ~]# rbd ls images a56330e7-79d7-4639-a68f-366ac344bfe2 eccfee07-c2c9-4e6e-96a2-b4350162ec41 testimage
创建快照: 命令格式:rbd snap create 池/镜像@快照名: [root@node1 ~]# rbd snap create images/testimage@testimagesnap
查看该镜像的快照 [root@node1 ~]# rbd snap ls -p images testimage SNAPID NAME SIZE TIMESTAMP
10 testimagesnap 20 GiB Sat Jun 1 15:18:40 2019
查看快照详细信息 [root@node1 ~]# rbd info images/testimage@testimagesnap rbd image 'testimage':
size 20 GiB in 5000 objects
order 22 (4 MiB objects)
id: 31644b6b8b4567
block_name_prefix: rbd_data.31644b6b8b4567
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
op_features:
flags:
create_timestamp: Sat Jun 1 15:07:10 2019
protected: False