Last active
December 6, 2017 01:27
-
-
Save crapthings/03bf7046795fc3250cef4c265c939146 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export LANGUAGE="en_US.UTF-8" | |
export LC_ALL="en_US.UTF-8" | |
echo LANGUAGE=en_US.UTF-8 >> /etc/default/locale | |
echo LC_ALL=en_US.UTF-8 >> /etc/default/locale | |
apt update | |
apt install -y mdadm xfsprogs | |
lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT | |
mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/vdb /dev/vdc | |
mkfs.xfs -f /dev/md0 | |
mkdir -p /mnt/md0 | |
mount /dev/md0 /mnt/md0 | |
mdadm --detail --scan | tee -a /etc/mdadm/mdadm.conf | |
update-initramfs -u | |
echo '/dev/md0 /mnt/md0 xfs defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ref
change
to