BlueStore

As Bluestore does not store the objects in a native Linux filesystem, we can't just mount the filesystems. However, the ceph-object-store tool allows you to mount the contents of a BlueStore OSD as a fuse filesystem. 

On each OSD node, create a directory under the /mnt folder to mount each OSD on that node:

mkdir /mnt/osd-0

Now mount the BlueStore OSD to this new directory:

ceph-objectstore-tool --op fuse --data-path /var/lib/ceph/osd/ceph-0 --mountpoint /mnt/osd-0

The following screenshot is the output for the preceding command:

The BlueStore OSD is now mounted as a fuse filesystem to the /mnt/osd-0 directory. However, it will only remain mounted while the ceph-object-store command is running. So if you wish to mount multiple OSDs or manually browse through the directory tree, open additional SSH sessions to the Ceph node. The following is a screenshot showing the contents of the /mnt/osd-0 directory from a new SSH session:

When you have finished with the OSD, simply use Ctrl + C on the SSH session running the ceph-objectstore-tool command to unmount.

Now we can mount the fuse-mounted OSDs to our management server like we did with filestore:

sudo sshfs vagrant@osd1:/mnt/osd-0 osds/ceph-0
sudo sshfs vagrant@osd2:/mnt/osd-1 osds/ceph-1
sudo sshfs vagrant@osd3:/mnt/osd-2 osds/ceph-2