Generalidades de RAID

RAID

VBoxManage list vms

Creando los discos en Virtualbox para maquina ubuntu18_prueba1

VBoxManage createmedium disk --filename VirtualBox\ VMs/ubuntu18_prueba1/disco1.dvi --size 1024 --format VDI --variant Standard VBoxManage storageattach ubuntu18_prueba1 --storagectl "SATA" --port 2 --type hdd --medium VirtualBox\ VMs/ubuntu18_prueba1/disco1.dvi VBoxManage createmedium disk --filename VirtualBox\ VMs/ubuntu18_prueba1/disco2.dvi --size 1024 --format VDI --variant Standard VBoxManage storageattach ubuntu18_prueba1 --storagectl "SATA" --port 3 --type hdd --medium VirtualBox\ VMs/ubuntu18_prueba1/disco2.dvi VBoxManage startvm ubuntu18_prueba1 --type headless VBoxManage list runningvms

Creamos las particiones

gdisk /dev/sdb gdisk /dev/sdc lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 88.5M 1 loop /snap/core/7270 loop1 7:1 0 89.1M 1 loop /snap/core/8039 sda 8:0 0 10G 0 disk ├─sda1 8:1 0 1M 0 part └─sda2 8:2 0 10G 0 part / sdb 8:16 0 1G 0 disk └─sdb1 8:17 0 1023M 0 part

mdadm

mdadm --create /dev/md0 --level=1 --raid-disks=2 /dev/sdb1 /dev/sdc1 mkfs.ext4 /dev/md0 mkdir /mnt/raid mount /dev/md0 /mnt/raid/ umount /dev/md0 cat /proc/mdstat mdadm --detail /proc/mdstat mdadm --detail --scan mdadm --detail --scan >> /etc/mdadm/mdadm.conf echo '/dev/md0 /mnt/raid ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab update-initramfs -u reboot

Referencias

https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-16-04