Commit Graph

4 Commits

Author SHA1 Message Date
Clark Boylan
0d7c02f132 Better swap alignment
We ran into this when fixing the zuul02 swap partition. Essentially
parted complained that our alignments weren't optimal. After some
googling the Internet said that using multiples of 8 tends to be safe.
We shifted the offset from 1MB to 8MB to start the partition and the
warnings went away.

Add this change into make_swap.sh to automate this for future servers.

Change-Id: Iad3ef40cf2c1e064482d49bd722c3de4354ec74d
2021-05-17 15:03:05 -07:00
Clark Boylan
5e43926b5e Fix min swap value in make_swap.sh
We just discovered that a number of new servers have rather small swap
sizes. It appears this snuck in via change 782898 which tries to bound
the max swap size to 8GB. Unfortunately the input to parted expects MB
so we make a swap size of 8MB instead of 8GB.

Bump the min value to 8192 to fix this.

Change-Id: I76b5b7dd8ac76c2ecbab9064bcdf956394b3a770
2021-05-14 14:09:11 -07:00
Ian Wienand
2e629bfb96 launch-node : cap to 8gb swap
If you're donated a really nice, big server from a friendly provider
like Vexxhost, you need to cap the amount of swap you make or you fill
up the entire root disk.

Change-Id: Ide965f7df8db84a6bbfe3294c9c5b85f0dd7367f
2021-03-25 16:34:15 +11:00
Ian Wienand
96dbd1a34e launch: move old scripts out of top-level
These don't make any sense in the top-level these days.

Once upon a time we used to use these as node scripts to bring up
testing nodes (I think).  The important thing is they're not used now.

Change-Id: Iffa6c6bee647f1a242e9e71241d829c813f2a3e7
2020-09-03 09:55:42 +10:00