Skip to content

Commit

Permalink
mdadm add/remove
Browse files Browse the repository at this point in the history
  • Loading branch information
pew committed Dec 20, 2023
1 parent bce5ccc commit 3f8afdd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions man/mdadm.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
date created: Sunday, December 29th 2019, 7:56:13 am
date modified: Wednesday, December 20th 2023, 5:21:05 am
tags:
title: mdadm / software raid
date created: Sunday, December 29th 2019, 7:56:13 am
date modified: Saturday, July 30th 2022, 3:00:46 pm
---

# mdadm / software raid
Expand Down Expand Up @@ -49,6 +49,15 @@ Run `update-initramfs -u` after updating this file.

**also, back up the `mdadm.conf` file to restore it onto a new system**

## add and remove devices to/from raid

if they're in a *faulty* state for example

```shell
mdadm --remove /dev/md0 /dev/nvme0n1
mdadm --add /dev/md0 /dev/nvme0n1
```

## replace disk

[check how to backup and copy your partition table](sfdisk,%20sgdisk.md)
Expand Down

0 comments on commit 3f8afdd

Please sign in to comment.