ceph osd pool ls #查看rdb 列出存储池
ceph osd pool create k8spool 1024 #创建存储池
ceph osd pool delete pool1 pool1 --yes-i-really-really-mean-it #删除池
ceph auth add client.terry mon 'allow rwx' osd 'allow rwx' #新增用户
ceph auth get client.terry -o /etc/ceph/ceph.client.terry.keyring #导出用户钥匙
rbd create --size 1024 k8spool/k8s #创建块设备映像
rbd ls --pool k8spool #查看块设备
rbd ls --pool k8spool --id k8s
rbd info k8spool/k8s #查看镜像信息
rbd resize --size 2048 k8spool/k8s #扩容块设备镜像
rbd resize --size 512 --allow-shrink k8spool/k8s #缩容块设备镜像
rbd rm k8spool/k8s #删除块设备映像
rbd list --pool k8spool/k8s #获取rbd镜像列表
rbd feature disable k8spool/k8stest exclusive-lock, object-map, fast-diff, deep-flatten #关闭内核不能支持的选项
rbd map docker_test --name client.admin #映射为本地块设备
rbd unmap /dev/rbd0 #解除映射的块设备
rbd showmapped #查看已映射块设备