Skip to content

Instantly share code, notes, and snippets.

View clintmiller's full-sized avatar

Clint Miller clintmiller

View GitHub Profile
@clintmiller
clintmiller / gist:94f111d2e98d2debc7d2d4bb1cfd6f68
Created August 22, 2017 16:01 — forked from pokle/gist:9271432
Automatically mount the EC2 ephermal SSDs as raid0 on Ubuntu

Launch your EC2 EBS instance with two SSDs on the second and third slots (after the root EBS volume), with this in your userdata:

#!/usr/bin/env bash

umount /dev/xvdb
umount /dev/xvdc
apt-get install mdadm -y
mkdir /u01

cat > /etc/init/mount-ephermal-ssd.conf <