services:cephfs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:cephfs [2025/12/17 14:53] – [Mounting all Sepia CephFS file systems] pdonnell | services:cephfs [2026/08/26 17:07] (current) – pdonnell | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== CephFS ====== | ====== CephFS ====== | ||
| - | There are a few CephFS file systems available in the sepia lab. These reside on the [[services: | + | There are a few CephFS file systems available in the sepia lab. These reside |
| - | Access to this Ceph cluster is available for any machine on the [[: | + | Access to the [[services: |
| - | In the scripts/ | + | To run the below playbooks, you need to be [[: |
| - | + | Please run the Ceph organization private [[https://github.com/ | |
| - | ==== Authorization ==== | + | |
| - | + | ||
| - | On your development machine or laptop, get access to CephFS with the LRC '' | + | |
| - | + | ||
| - | <code bash> | + | |
| - | + | ||
| - | sudo mkdir -p -m 755 /etc/ceph | + | |
| - | ssh doli01.front.sepia.ceph.com 'env CEPH_KEYRING=/ | + | |
| - | sudo chmod 644 / | + | |
| - | ssh doli01.front.sepia.ceph.com 'cat / | + | |
| - | sudo chmod 644 / | + | |
| - | ssh doli01.front.sepia.ceph.com ' | + | |
| - | sudo chmod 600 / | + | |
| - | </ | + | |
| - | + | ||
| - | The '' | + | |
| - | + | ||
| - | ==== Mounting all Sepia CephFS file systems ==== | + | |
| - | + | ||
| - | **Note**: you need the '' | + | |
| - | + | ||
| - | Generate mounts for your ''/ | + | |
| - | + | ||
| - | <code bash> | + | |
| - | # | + | |
| - | + | ||
| - | set -ex | + | |
| - | + | ||
| - | function genmount { | + | |
| - | local path=" | + | |
| - | local mntpnt=" | + | |
| - | local fsname=" | + | |
| - | + | ||
| - | local secret=$(sudo cat / | + | |
| - | # create mountpoint | + | |
| - | sudo mkdir -p -- " | + | |
| - | # make the mountpoint directory (shadowed) unwriteable to prevent accidental modification | + | |
| - | sudo chmod 000 -- " | + | |
| - | # set it immutable to enforce that even for root | + | |
| - | sudo chattr +i -- " | + | |
| - | printf ' | + | |
| - | } | + | |
| - | + | ||
| - | genmount / | + | |
| - | genmount / /scratch scratch | sudo tee -a / | + | |
| - | </ | + | |
| - | + | ||
| - | The fstab changes will cause these file systems | + | |
| - | + | ||
| - | <code bash> | + | |
| - | sudo mount / | + | |
| - | sudo mount /scratch | + | |
| - | sudo mount /postfile | + | |
| - | </ | + | |
| ==== The teuthology FS ==== | ==== The teuthology FS ==== | ||
| - | The majority of CephFS use is directed at the "teuthology" | + | The majority of CephFS use is directed at the “teuthology” file system which hosts QA artifacts for analysis. Each test run has a directory in ''/ |
| - | + | ||
| - | <code bash> | + | |
| - | ls / | + | |
| - | abhi-2019-12-04_08: | + | |
| - | abhi-2019-12-04_17: | + | |
| - | </ | + | |
| - | + | ||
| - | It's also common for test artifact paths shared among developers to include | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | You can generate this helper link using: | + | |
| - | + | ||
| - | <code bash> | + | |
| - | sudo ln -s /teuthology /a | + | |
| - | </ | + | |
| ==== The scratch FS ==== | ==== The scratch FS ==== | ||
services/cephfs.1765983201.txt.gz · Last modified: by pdonnell
