aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands/mdadm.md
diff options
context:
space:
mode:
authorJulien Dessaux2023-04-23 22:33:49 +0200
committerJulien Dessaux2023-04-23 22:34:10 +0200
commitea435049b3a3f5057b3a894040df3cf4f3256d9e (patch)
tree9046430870fa050e6568fcfbe409f8a8d295d0b3 /content/blog/commands/mdadm.md
parentDocument the second gotosocial backup job (diff)
downloadwww-ea435049b3a3f5057b3a894040df3cf4f3256d9e.tar.gz
www-ea435049b3a3f5057b3a894040df3cf4f3256d9e.tar.bz2
www-ea435049b3a3f5057b3a894040df3cf4f3256d9e.zip
Refactored syntax highlighting shortcodes into markdown
Diffstat (limited to 'content/blog/commands/mdadm.md')
-rw-r--r--content/blog/commands/mdadm.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/content/blog/commands/mdadm.md b/content/blog/commands/mdadm.md
index da15041..a2825f5 100644
--- a/content/blog/commands/mdadm.md
+++ b/content/blog/commands/mdadm.md
@@ -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 >}}
+```