7.4.1 创建RBD设备并挂载

root@jewel-cli:~# rados mkpool share-pool
successfully created pool share-pool
root@jewel-cli:~# rbd create share-pool/share2 --size 10G --image-format 2 --image-feature layering
root@jewel-cli:~# rbd ls share-pool
share1
share2
root@jewel-cli:~# rbd map share-pool/share2
/dev/rbd0
root@jewel-cli:~# rbd showmapped
id pool       image  snap device    
0  share-pool share2 -    /dev/rbd0 
root@jewel-cli:~# mkfs.xfs /dev/rbd0 -f
root@jewel-cli:~# mkdir /mnt/nfs-share
root@jewel-cli:~# mount -noatime /dev/rbd0 /mnt/nfs-share

results matching ""

    No results matching ""