change ``bash headers to
``sh
This commit is contained in:
@@ -7,7 +7,7 @@ tags: [ "RAID", "disk" ]
|
||||
You will need 4 disks and the `mdadm` package.
|
||||
The total size will be equal to the disks x 3, because one will be used for redundancy.
|
||||
|
||||
```bash
|
||||
```sh
|
||||
sudo mdadm --create --verbose /dev/*md127* --level=5 --raid-devices=*4* */dev/sdb /dev/sdc /dev/sdd /dev/sde*
|
||||
```
|
||||
|
||||
@@ -19,7 +19,7 @@ Note the variable parts:
|
||||
|
||||
Now look at how the raid status:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
cat /proc/mdstat
|
||||
```
|
||||
|
||||
@@ -27,7 +27,7 @@ This will increase until the entire thing is fine.
|
||||
|
||||
Check the health of your `mdadm` array:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
sudo mdadm --detail /dev/md127
|
||||
```
|
||||
|
||||
@@ -35,7 +35,7 @@ You should see `State : clean`. If you see it is `degraded`, then a disk has bro
|
||||
|
||||
## Replacing a Disk
|
||||
|
||||
```bash
|
||||
```sh
|
||||
sudo mdadm --add /dev/md127 /dev/sdb1
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user