services:vpshosts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:vpshosts [2017/02/22 20:38] – dgalloway | services:vpshosts [2017/08/15 22:46] (current) – djgalloway | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ===== Virtual Machines ===== | ===== Virtual Machines ===== | ||
| - | Each VPSHOST is home to < | + | Each VPSHOST is home to < |
| In June 2016, we marked down all the even-numbered VPSes and made a change to teuthology which creates the VMs with 4GB RAM as 2GB per VM wasn't meeting the needs. | In June 2016, we marked down all the even-numbered VPSes and made a change to teuthology which creates the VMs with 4GB RAM as 2GB per VM wasn't meeting the needs. | ||
| Line 20: | Line 20: | ||
| ==== Setting up a VPSHOST from scratch ==== | ==== Setting up a VPSHOST from scratch ==== | ||
| **NOTE:** This has been adapted to be applicable for 4 VPSes and disks per host. | **NOTE:** This has been adapted to be applicable for 4 VPSes and disks per host. | ||
| + | |||
| + | If setting up a host as a new or replacement VPSHOST, be sure to update your libvirt config. | ||
| + | |||
| + | If you install the machine using a '' | ||
| < | < | ||
| - | apt-get install xfsprogs | + | apt-get install xfsprogs |
| # Determine the first and last VPS number by reading the VPSHOST' | # Determine the first and last VPS number by reading the VPSHOST' | ||
| Line 30: | Line 34: | ||
| for disk in sd{b..d}; do mkfs -t xfs -f /dev/$disk; done | for disk in sd{b..d}; do mkfs -t xfs -f /dev/$disk; done | ||
| - | # num should be second VPM | + | ## Not really needed if next task and `mount -s` succeeds |
| + | # $num should be second VPM | ||
| num=51; for disk in sd{b..d}; do mount /dev/$disk / | num=51; for disk in sd{b..d}; do mount /dev/$disk / | ||
| # OR if VPM$num is >= 100, | # OR if VPM$num is >= 100, | ||
| num=101; for disk in sd{b..d}; do mount /dev/$disk / | num=101; for disk in sd{b..d}; do mount /dev/$disk / | ||
| + | # $num should be second VPM | ||
| num=51; for disk in sd{b..d}; do echo -e " | num=51; for disk in sd{b..d}; do echo -e " | ||
| # OR if VPM$num is >= 100, | # OR if VPM$num is >= 100, | ||
services/vpshosts.1487795932.txt.gz · Last modified: by dgalloway
