<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=Mounting_a_RBD_on_a_client_machine</id>
	<title>Mounting a RBD on a client machine - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=Mounting_a_RBD_on_a_client_machine"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Mounting_a_RBD_on_a_client_machine&amp;action=history"/>
	<updated>2026-04-20T09:54:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=Mounting_a_RBD_on_a_client_machine&amp;diff=1133&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;This page describes one the very basic way to use a Ceph storage: you create a RBD pool in which you can create images, and these images can then be mounted on a client machin...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=Mounting_a_RBD_on_a_client_machine&amp;diff=1133&amp;oldid=prev"/>
		<updated>2021-04-06T10:20:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This page describes one the very basic way to use a Ceph storage: you create a RBD pool in which you can create images, and these images can then be mounted on a client machin...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page describes one the very basic way to use a Ceph storage: you create a RBD pool in which you can create images, and these images can then be mounted on a client machine.&lt;br /&gt;
&lt;br /&gt;
== Creation of RBD pool ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ceph osd pool create test1&lt;br /&gt;
# ceph osd pool application enable test1 rbd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creation of a user with rights on the pool ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ceph auth add client.toto mon &amp;#039;profile rbd&amp;#039; osd &amp;#039;profile rbd pool=test1&amp;#039; mgr &amp;#039;profile rbd&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration of the client machine ==&lt;br /&gt;
* add the repo Ceph Octopus x86_64&lt;br /&gt;
* install the package ceph-common&lt;br /&gt;
* create files &amp;#039;&amp;#039;/etc/ceph/ceph.conf&amp;#039;&amp;#039; and &amp;#039;&amp;#039;/etc/ceph/ceph.keyring&amp;#039;&amp;#039;&lt;br /&gt;
You&amp;#039;ll need to issue the following commands on the cephadm machine to get the content of these files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ceph config generate-minimal-conf&lt;br /&gt;
# ceph auth get client.toto&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Mount the block device on the client ==&lt;br /&gt;
* create an image:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rbd -n client.toto -p test1 create foo --size 1024 --image-feature layering&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* map the image on a local device:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rbd -n client.toto map foo  -p test1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As a result of the previous command, you&amp;#039;ve got the name of the device.&lt;br /&gt;
* format the device:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# mkfs.ext4 -m0 /dev/rbd/test1/foo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* mount the device:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# mkdir /mnt/cephmount&lt;br /&gt;
# mount /dev/rbd/test1/foo /mnt/ceph&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>