services:cephfs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:cephfs [2023/06/12 20:47] – 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:longrunningcluster|Long Running Cluster]]. | + | There are a few CephFS file systems available in the sepia lab. These reside on the [[services:shortrunningcluster|Short Running Cluster]]. |
| - | In the scripts/ | + | Access |
| + | To run the below playbooks, you need to be [[: | ||
| - | ==== Authorization ==== | + | Please run the Ceph organization private [[https://github.com/ |
| - | + | ||
| - | On your development machine or laptop, get access to CephFS with the LRC '' | + | |
| - | + | ||
| - | <code bash> | + | |
| - | sudo mkdir -p -m 755 /etc/ceph | + | |
| - | ssh reesi001.front.sepia.ceph.com 'env CEPH_KEYRING=/ | + | |
| - | sudo chmod 644 / | + | |
| - | ssh reesi001.front.sepia.ceph.com 'cat / | + | |
| - | sudo chmod 644 / | + | |
| - | ssh reesi001.front.sepia.ceph.com 'ceph-authtool / | + | |
| - | sudo chmod 600 / | + | |
| - | </ | + | |
| - | + | ||
| - | The '' | + | |
| - | + | ||
| - | ==== Mounting all Sepia CephFS file systems ==== | + | |
| - | + | ||
| - | Generate mounts for your ''/ | + | |
| - | + | ||
| - | <code bash> | + | |
| - | # | + | |
| - | + | ||
| - | function genmount { | + | |
| - | 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 / | + | |
| - | genmount / /postfile postfile | sudo tee -a / | + | |
| - | </ | + | |
| - | + | ||
| - | The fstab changes will cause these file systems to mount on boot. After adding these entries for the first time, you need to manually mount them: | + | |
| - | + | ||
| - | <code bash> | + | |
| - | mount / | + | |
| - | mount /scratch | + | |
| - | 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> | + | |
| - | ln -s /teuthology /a | + | |
| - | </ | + | |
| ==== The scratch FS ==== | ==== The scratch FS ==== | ||
| Line 81: | Line 21: | ||
| The [[https:// | The [[https:// | ||
| + | |||
| + | ==== The home FS ==== | ||
| + | |||
| + | There is a " | ||
services/cephfs.1686602861.txt.gz · Last modified: by pdonnell
