Skip to content

Instantly share code, notes, and snippets.

@markusklems
Last active December 21, 2015 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markusklems/6230636 to your computer and use it in GitHub Desktop.
Save markusklems/6230636 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get install -y xfsprogs
sudo lvcreate -l 100%FREE -n riak-data ubuntu-vg
sudo mkfs.xfs /dev/ubuntu-vg/riak-data
sudo mkdir /riak-data
echo "/dev/ubuntu-vg/riak-data /riak-data xfs noatime 0 0" | sudo tee -a /etc/fstab
sudo mount -a
sudo ln -s /riak-data/riak /var/lib
echo deadline | sudo tee -a /sys/block/xvda/queue/scheduler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment