devplayground
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devplayground [2024/07/30 18:29] – [Playing Nice] dmick | devplayground [2026/09/14 14:23] (current) – djgalloway | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ^ Name ^ Notes ^ | ^ Name ^ Notes ^ | ||
| - | | [[hardware: | ||
| - | | [[hardware: | ||
| - | | [[hardware: | ||
| | [[hardware: | | [[hardware: | ||
| | [[hardware: | | [[hardware: | ||
| Line 52: | Line 49: | ||
| ==== Configuring CephFS Mounts ==== | ==== Configuring CephFS Mounts ==== | ||
| - | The following | + | The following |
| - | + | ||
| - | < | + | |
| - | #!/bin/bash | + | |
| - | + | ||
| - | HOST=" | + | |
| - | + | ||
| - | function run { | + | |
| - | printf ' | + | |
| - | " | + | |
| - | } | + | |
| - | + | ||
| - | function mssh { | + | |
| - | run ssh " | + | |
| - | } | + | |
| - | + | ||
| - | mssh sudo mkdir -p -m 755 /etc/ceph | + | |
| - | ssh reesi001.front.sepia.ceph.com | + | |
| - | mssh sudo chmod 644 / | + | |
| - | ssh reesi001.front.sepia.ceph.com 'cat / | + | |
| - | mssh sudo chmod 644 / | + | |
| - | ssh reesi001.front.sepia.ceph.com ' | + | |
| - | mssh sudo chmod 600 / | + | |
| - | + | ||
| - | + | ||
| - | function genmount { | + | |
| - | local secret=$(mssh sudo cat / | + | |
| - | # create mountpoint | + | |
| - | mssh sudo mkdir -p -- " | + | |
| - | # make the mountpoint directory (shadowed) unwriteable to prevent accidental modification | + | |
| - | mssh sudo chmod 000 -- " | + | |
| - | # set it immutable to enforce that even for root | + | |
| - | mssh sudo chattr +i -- " | + | |
| - | printf ' | + | |
| - | } | + | |
| - | + | ||
| - | genmount / | + | |
| - | genmount / /scratch scratch | + | |
| - | genmount / /postfile postfile | + | |
| - | + | ||
| - | mssh sudo systemctl daemon-reload | + | |
| - | mssh sudo mount / | + | |
| - | mssh sudo mount /scratch | + | |
| - | mssh sudo mount /postfile | + | |
| - | mssh sudo ln -s /teuthology /a | + | |
| - | </ | + | |
| Line 111: | Line 63: | ||
| active_machine_types: | active_machine_types: | ||
| - smithi | - smithi | ||
| + | - trial | ||
| + | - gibba | ||
| EOF | EOF | ||
| </ | </ | ||
| - | Note: killing a run is (generally) still necessary on [[services: | + | Note: killing a run is (generally) still necessary on [[services: |
| ==== Configuring LVM volumes using spare disks ==== | ==== Configuring LVM volumes using spare disks ==== | ||
devplayground.1722364199.txt.gz · Last modified: by dmick
