Refactored syntax highlighting shortcodes into markdown
This commit is contained in:
parent
9e6bb1a3e5
commit
ea435049b3
71 changed files with 297 additions and 297 deletions
|
@ -9,34 +9,34 @@ tags:
|
|||
|
||||
## Watch the array status
|
||||
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
watch -d -n10 mdadm --detail /dev/md127
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
## Recovery from livecd
|
||||
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
mdadm --examine --scan >> /etc/mdadm.conf
|
||||
mdadm --assemble --scan /dev/md/root
|
||||
mount /dev/md127 /mnt # or vgscan...
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
If auto detection does not work, you can still assemble an array manually :
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
## Resync an array
|
||||
|
||||
First rigorously check the output of `cat /proc/mdstat`
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
mdadm --manage --re-add /dev/md0 /dev/sdb1
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
## Destroy an array
|
||||
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
mdadm --stop /dev/md0
|
||||
mdadm --zero-superblock /dev/sda
|
||||
mdadm --zero-superblock /dev/sdb
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue