Edited at

Ubuntu 15.10でRAID6を組んだ時の記録

More than 3 years have passed since last update.

mdadmでRAID6を組んだ時の自分用メモ

history

sudo apt-get update
sudo apt-get install -y tmux
sudo apt-get install -y mdadm
sudo lsblk
sudo gdisk /dev/sdb
sudo gdisk /dev/sdc
sudo gdisk /dev/sdd
sudo gdisk /dev/sde
sudo gdisk /dev/sdf
x
z
y
y
sudo fdisk /dev/sdd
n
p
en
en
en
en
w
sudo mkfs.ext4 /dev/sdb1
mke2fs -t ext4 /dev/md0
sudo mount /dev/md0 md1
sudo su -
mdadm --detail --scan > sudo /etc/mdadm.conf
echo "/dev/md0 /home/vagrant ext4 defaults 0 0" > /etc/fstab