User Tools

Site Tools


raid0_debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raid0_debian [2020/05/12 10:03] chrisraid0_debian [2020/05/12 10:37] (current) chris
Line 35: Line 35:
  
   Personalities : [raid0]    Personalities : [raid0] 
-  md0 : active raid0 sdb[1] sda[0]+  md0 : active raid0 sdb[1] sdc[0]
       209584128 blocks super 1.2 512k chunks       209584128 blocks super 1.2 512k chunks
      
   unused devices: <none>   unused devices: <none>
  
 +Next you have to create a filesystem to use your array
 +
 +  sudo mkfs.ext4 -F /dev/md0
 +
 +Note that MD0 is your array sdb1 and sdc2 together. 
 +
 +Now create a mount point on your system like /mnt/md0 or /datastore
 +
 +   sudo mkdir -p /mnt/md0
 +
 +After that you are able to mount the new array
 +
 +   sudo mount /dev/md0 /mnt/md0
 +
 +Check if it is available by doing:
 +
 +  df -h -x devtmpfs -x tmpfs
 +
 +To make sure that the array is reassemble every time you boot your system you need to set your configuration of your array in a file /etc/mdadm/mdadm.conf.
 +
 +  sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf
 +
 +Next update the initramfs by doing a
 +
 +  sudo update-initramfs -u
 +
 +If you like to auto mount your array at boot you need a entry in your fstab. Edit your fstab like this
 +
 +  echo '/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
 +
 +
 +That's all, enjoy.
  
  
raid0_debian.1589270619.txt.gz · Last modified: 2020/05/12 10:03 by chris