CephFS: Difference between revisions

Jump to navigation Jump to search
1,216 bytes added ,  8 months ago
no edit summary
No edit summary
No edit summary
Line 134: Line 134:
</tabs>
</tabs>


Note that the monitors value differ from cluster to cluster.
You can find the monitor information in the share details <i>Path</i> field that will be use to mount the volume.


<li>Note: these are the monitors for the Arbutus cluster. If connecting to a different cluster, you will need the monitor information specific to that cluster.
<ul>
<li>You can find the monitor information in the share details for your share in the <i>Path</i> field.</li></ul>
</li></ul>
</li>
</li>
<li><p>Retrieve the connection information from the share page for your connection:</p>
<li><p>Retrieve the connection information from the share page for your connection:</p>
Line 146: Line 144:
</li>
</li>
<li><p>Mount the filesystem</p>
<li><p>Mount the filesystem</p>
<ul>
<ul>
<li>Create a mount point directory somewhere in your host (likely under /mnt/ - e.g. /mnt/ShareName)</li>
<li>Create a mount point directory somewhere in your host (<code>/cephfs</code>, is used here)</li>
<li>Via kernel mount using the ceph driver:
<li>Via kernel mount using the ceph driver. You can do a permanent mount by adding the followin in the VM fstab
<tabs>
<tab name="Arbutus">
{{File
  |name=/etc/fstab
  |lang="txt"
  |contents=
10.30.201.3:6789,10.30.202.3:6789,10.30.203.3:6789:/volumes/_nogroup/f6cb8f06-f0a4-4b88-b261-f8bd6b03582c /cephfs/ ceph name=MyCephFS-RW 0  2
}}
</tab>
<tab name="SD4H/Juno">
{{File
  |name=/etc/fstab
  |lang="txt"
  |contents=
10.65.0.10:6789,10.65.0.12:6789,10.65.0.11:6789:/volumes/_nogroup/f6cb8f06-f0a4-4b88-b261-f8bd6b03582c /cephfs/ ceph name=MyCephFS-RW,mds_namespace=cephfs_4_2,x-systemd.device-timeout=30,x-systemd.mount-timeout=30,noatime,_netdev,rw 0  2
}}
</tab>
</tabs>
 
Note that the mount options are different on different systems. The namespace option is requires for SD4H/Juno while other option are performance tweaks.
 
<ul>
<ul>
<li>Syntax: <code>sudo mount -t ceph &lt;path information&gt; &lt;mountPoint&gt; -o name=&lt;shareKeyName&gt;, secretfile=&lt;/path/to/keyringfileOnlyFile&gt;</code></li>
<li>It can also be done from the command line:</li>
<tab name="Arbutus">
<tabs>
<code>
sudo mount -t ceph 10.30.201.3:6789,10.30.202.3:6789,10.30.203.3:6789:/volumes/_nogroup/f6cb8f06-f0a4-4b88-b261-f8bd6b03582c /cephfs/ -o name=MyCephFS-RW
</code>
</tab>
<tab name="SD4H/Juno">
<code>
sudo mount -t ceph 10.65.0.10:6789,10.65.0.12:6789,10.65.0.11:6789:/volumes/_nogroup/f6cb8f06-f0a4-4b88-b261-f8bd6b03582c /cephfs/ -o name=MyCephFS-RW,mds_namespace=cephfs_4_2,x-systemd.device-timeout=30,x-systemd.mount-timeout=30,noatime,_netdev,rw
</code>
</tab>
</tabs>
 
<code>sudo mount -t ceph &lt;path information&gt; &lt;mountPoint&gt; -o name=&lt;shareKeyName&gt;, secretfile=&lt;/path/to/keyringfileOnlyFile&gt;</code>
<li><code>sudo mount -t ceph mon1:6789,mon2:6789,mon3:6789:/volumes/_nogroup/share_instance_id </code>
<li><code>sudo mount -t ceph mon1:6789,mon2:6789,mon3:6789:/volumes/_nogroup/share_instance_id </code>
<ul>
<ul>
cc_staff
127

edits

Navigation menu