Raid 0 in Ubuntu

Configurare noua (How To)

Situatie

Solutie

1.Se verifica HDD-urile cu comanda -> lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT

2.Se creaza RAID 0 prin comanda -> sudo mdadm –create –verbose /dev/md0 –level=0 –raid-devices=2 /dev/sda /dev/sdb ;

3.Se verifica procesul cu comanda -> cat /proc/mdstat ;

4.Se creaza Filesystem – > sudo mkfs.ext4 -F /dev/md0 ;

5.Verificare spatiul de stocare -> df -h -x devtmpfs -x tmpfs ;

6.Salvare proces de RAID  – >  sudo mdadm –detail –scan | sudo tee -a /etc/mdadm/mdadm.conf ;

7.Setare filesystem pentru bootarea sistemului de operare ->

echo ‘/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0’ | sudo tee -a /etc/fstab   ;

 

Tip solutie

Permanent

Plan de restaurare in caz de nefunctionare

Se reiau pasii

Voteaza

(16 din 32 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?