Last active
December 21, 2015 01:49
-
-
Save markusklems/6230636 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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