devplayground
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devplayground [2023/10/17 17:59] – [Playing Nice] pdonnell | devplayground [2026/09/14 14:23] (current) – djgalloway | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Machines ==== | ===== Machines ==== | ||
| - | ^ Name ^ Notes ^ | + | ^ Name |
| - | | [[hardware:senta|senta01.front.sepia.ceph.com]] | + | | [[hardware:vossi|vossi01.front.sepia.ceph.com]] |
| - | | [[hardware: | + | | [[hardware: |
| - | | [[hardware: | + | | [[hardware: |
| - | | [[hardware: | + | | [[hardware:folio|folio02.front.sepia.ceph.com]] |
| - | | [[hardware: | + | | [[hardware: |
| - | | [[hardware:vossi|vossi04.front.sepia.ceph.com]] | + | |
| - | | [[hardware: | + | |
| ==== Playing Nice ==== | ==== Playing Nice ==== | ||
| - | Developer playgrounds should be able to build the '' | + | Developer playgrounds should be able to build the '' |
| Using the developer machines to look at teuthology QA artifacts is encouraged. Try to avoid using a text editor to look at large (1GB+) debug logs as this can be RAM intensive/ | Using the developer machines to look at teuthology QA artifacts is encouraged. Try to avoid using a text editor to look at large (1GB+) debug logs as this can be RAM intensive/ | ||
| Many of the developer playground nodes have extra disks for testing Ceph. It's okay to use these for '' | Many of the developer playground nodes have extra disks for testing Ceph. It's okay to use these for '' | ||
| + | |||
| + | ==== MOTD ==== | ||
| + | |||
| + | Please use this MOTD for these playground machines: | ||
| + | |||
| + | < | ||
| + | ******************************************************************************* | ||
| + | |||
| + | Welcome! | ||
| + | |||
| + | This machine is a Ceph Developer Playground for shared use. Please | ||
| + | see the following wiki document for guidelines and a list of | ||
| + | available machines. | ||
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | Thanks! | ||
| + | |||
| + | ******************************************************************************* | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Configuring CephFS Mounts ==== | ||
| + | |||
| + | The following ansible playbook can be run to setup CephFS mounts on a new developer playground machines: https:// | ||
| + | |||
| + | |||
| + | ==== Teuthology scheduling ==== | ||
| + | |||
| + | Configure the dev playground node to schedule jobs: | ||
| + | |||
| + | < | ||
| + | sudo tee / | ||
| + | default_machine_type: | ||
| + | queue_host: teuthology.front.sepia.ceph.com | ||
| + | queue_port: 11300 | ||
| + | active_machine_types: | ||
| + | - smithi | ||
| + | - trial | ||
| + | - gibba | ||
| + | EOF | ||
| + | </ | ||
| + | |||
| + | Note: killing a run is (generally) still necessary on [[services: | ||
| + | |||
| + | ==== Configuring LVM volumes using spare disks ==== | ||
| + | |||
| + | When setting up a fresh Developer Playground machine, configure an LVM VolumeGroup for use by users. Volumes can be provisioned for a build directory, OSD block device, or anything else needed. | ||
| + | |||
| + | Note: no redundancy is configured below (i.e. RAID). If a disk is lost, all volumes will be affected. | ||
| + | |||
| + | < | ||
| + | sudo pvcreate /dev/$DISK | ||
| + | </ | ||
| + | |||
| + | Do this for every disk. This is an ad-hoc process because all nodes are different. Also, some disks may have been used in the past so they will need wiped first: | ||
| + | |||
| + | < | ||
| + | sudo wipefs -a /dev/$DISK | ||
| + | </ | ||
| + | |||
| + | Once all disks are added as physical volumes, it's then possible to add to a VolumeGroup: | ||
| + | |||
| + | < | ||
| + | sudo vgcreate DevPlayground $DISKS | ||
| + | </ | ||
| + | |||
| + | Finally make a volume for yourself: | ||
| + | |||
| + | < | ||
| + | sudo lvcreate -L 256G DevPlayground -n $(whoami)-build | ||
| + | sudo mkfs.xfs / | ||
| + | mkdir $HOME/build | ||
| + | chmod 000 $HOME/build | ||
| + | sudo chattr +i $HOME/build | ||
| + | echo "/ | ||
| + | sudo systemctl daemon-reload | ||
| + | sudo mount $HOME/build | ||
| + | </ | ||
| + | |||
| + | and some OSD block devices: | ||
| + | |||
| + | < | ||
| + | for i in `seq 0 8`; do sudo lvcreate -L 16G DevPlayground -n $(whoami)-osd.$i ; done | ||
| + | </ | ||
| + | |||
| + | Make those OSDs owned by you: | ||
| + | |||
| + | < | ||
| + | printf ' | ||
| + | sudo udevadm control --reload-rules | ||
| + | sudo udevadm trigger | ||
| + | </ | ||
| + | |||
| + | Then you can use those devices with vstart.sh: | ||
| + | |||
| + | < | ||
| + | wipefs -a / | ||
| + | shred -v -n 0 -z -s 16M / | ||
| + | env OSD=8 ~/ | ||
| + | --bluestore-devs $(echo / | ||
| + | </ | ||
| + | |||
| + | Feel free to make any other volumes that you require. | ||
devplayground.1697565583.txt.gz · Last modified: by pdonnell
