This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
services:vpshosts [2017/03/08 19:46] dgalloway |
services:vpshosts [2017/03/16 18:33] dgalloway |
||
---|---|---|---|
Line 22: | Line 22: | ||
If setting up a host as a new or replacement VPSHOST, be sure to update your libvirt config. See http://docs.ceph.com/teuthology/docs/downburst_vms.html#vps-hosts. | If setting up a host as a new or replacement VPSHOST, be sure to update your libvirt config. See http://docs.ceph.com/teuthology/docs/downburst_vms.html#vps-hosts. | ||
+ | |||
+ | If you install the machine using a ''-stock'' cobbler profile, you'll need to run the common role as well. | ||
<code> | <code> | ||
- | apt-get install xfsprogs | + | apt-get install xfsprogs vim |
# Determine the first and last VPS number by reading the VPSHOST's description in the lock db | # Determine the first and last VPS number by reading the VPSHOST's description in the lock db | ||
Line 32: | 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 /srv/libvirtpool/vpm0$num; let num=num+2; done | num=51; for disk in sd{b..d}; do mount /dev/$disk /srv/libvirtpool/vpm0$num; let num=num+2; done | ||
# OR if VPM$num is >= 100, | # OR if VPM$num is >= 100, | ||
num=101; for disk in sd{b..d}; do mount /dev/$disk /srv/libvirtpool/vpm$num; let num=num+2; done | num=101; for disk in sd{b..d}; do mount /dev/$disk /srv/libvirtpool/vpm$num; let num=num+2; done | ||
+ | # $num should be second VPM | ||
num=51; for disk in sd{b..d}; do echo -e "UUID=$(blkid -s UUID -o value /dev/$disk)\t/srv/libvirtpool/vpm0$num\txfs\tdefaults,noatime,nodiratime,nobarrier,inode64,logbufs=8,logbsize=256k,largeio\t0\t0"; let num=num+2; done >> /etc/fstab | num=51; for disk in sd{b..d}; do echo -e "UUID=$(blkid -s UUID -o value /dev/$disk)\t/srv/libvirtpool/vpm0$num\txfs\tdefaults,noatime,nodiratime,nobarrier,inode64,logbufs=8,logbsize=256k,largeio\t0\t0"; let num=num+2; done >> /etc/fstab | ||
# OR if VPM$num is >= 100, | # OR if VPM$num is >= 100, |