mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-04 10:01:23 +00:00
These jobs all need TLC and to be moved to the new ansible platform. For
now, we're removing them because if they accidentally get triggered,
they cost a lot of money very quickly, and don't necessarily get us
anything useful if they pass or fail.
Revert "Updating any AWS shape instance to use"
...our existing reserved instance types. This simply ensures if we ever
do run one of these tests it is against existing reserved instances. If
the tests get removed thats OK also."
This reverts commit 69be968d6d.
20 lines
No EOL
609 B
Bash
20 lines
No EOL
609 B
Bash
#!/bin/bash
|
|
set +x # get debug log
|
|
set -e # exit on errors
|
|
|
|
echo "----------------------------"
|
|
echo "Running delete_cloud_init.sh"
|
|
|
|
# create and initialize a raid0 array
|
|
# for m5ad.16xlarge instance type, there are 4 NVMe SSDs.
|
|
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=4 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1 /dev/nvme4n1
|
|
|
|
# format filesystem
|
|
sudo mkfs.ext4 /dev/md0
|
|
|
|
# create a mount directory & mount the raid drive to this directory
|
|
sudo mkdir data
|
|
sudo mount /dev/md0 /data
|
|
|
|
# change permissions from root to ec2-user for data directory
|
|
sudo chown -R ec2-user:ec2-user /data |