O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To benchmark the Ceph Block Device, we need to create a block device and map it to the Ceph client node:

  1. Create a Ceph Block Device named block-device1, of size 10 G, and map it:
        # rbd create block-device1 --size 10240 --image-feature layering        # rbd info --image block-device1        # rbd map block-device1        # rbd showmapped
  1. Create a filesystem on the block device and mount it:
        # mkfs.xfs /dev/rbd1        # mkdir -p /mnt/ceph-block-device1        # mount /dev/rbd1 /mnt/ceph-block-device1        # df -h /mnt/ceph-block-device1
  1. To benchmark block-device1 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required