devplayground
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devplayground [2025/06/10 15:27] – [Configuring CephFS Mounts] pdonnell | 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 " | ||
| - | } | ||
| - | |||
| - | ADMIN_NODE=reesi003.front.sepia.ceph.com | ||
| - | |||
| - | mssh sudo mkdir -p -m 755 /etc/ceph | ||
| - | ssh " | ||
| - | mssh sudo chmod 644 / | ||
| - | ssh " | ||
| - | mssh sudo chmod 644 / | ||
| - | ssh " | ||
| - | mssh sudo chmod 600 / | ||
| - | |||
| - | MONS=$(ssh " | ||
| - | |||
| - | function genmount { | ||
| - | local secret=$(mssh sudo cat / | ||
| - | mssh sudo chattr -i -- " | ||
| - | # 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 -- " | ||
| - | mssh sudo sed -i "/ | ||
| - | printf ' | ||
| - | } | ||
| - | |||
| - | mssh sudo umount /teuthology | ||
| - | mssh sudo umount /scratch | ||
| - | mssh sudo umount /postfile | ||
| - | |||
| - | genmount / | ||
| - | genmount / /scratch scratch | ||
| - | genmount / /postfile postfile | ||
| - | |||
| - | mssh sudo systemctl daemon-reload | ||
| - | mssh sudo mount /teuthology | ||
| - | mssh sudo mount /scratch | ||
| - | mssh sudo mount /postfile | ||
| - | mssh sudo ln -s /teuthology /a | ||
| - | </ | ||
| ==== Teuthology scheduling ==== | ==== Teuthology scheduling ==== | ||
| Line 118: | 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.1749569278.txt.gz · Last modified: by pdonnell
