grow_md_raid1
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| grow_md_raid1 [2023/09/29 17:58] – steve | grow_md_raid1 [2024/01/04 14:04] (current) – steve | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| * <wrap hi> | * <wrap hi> | ||
| * <wrap hi> | * <wrap hi> | ||
| - | * <wrap hi> | + | * <wrap hi> |
| - | * Added them both to the RAID1: | + | * # Repeat for /dev/sdd |
| + | * Add them both to the RAID1: | ||
| * <wrap hi>mdadm /dev/md0 --add /dev/sdc1 / | * <wrap hi>mdadm /dev/md0 --add /dev/sdc1 / | ||
| * Fail one of the old drives: | * Fail one of the old drives: | ||
| * <wrap hi>mdadm /dev/md0 -f / | * <wrap hi>mdadm /dev/md0 -f / | ||
| * Wait for sync to finish: | * Wait for sync to finish: | ||
| - | * <wrap hi>watch cat / | + | * <wrap hi> |
| * Fail the other old drive: | * Fail the other old drive: | ||
| * <wrap hi>mdadm /dev/md0 -f / | * <wrap hi>mdadm /dev/md0 -f / | ||
| * Wait for sync to finish: | * Wait for sync to finish: | ||
| - | * <wrap hi>watch cat / | + | * <wrap hi> |
| * Remove the old drives from the array: | * Remove the old drives from the array: | ||
| * <wrap hi>mdadm /dev/md0 -r /dev/sda1 / | * <wrap hi>mdadm /dev/md0 -r /dev/sda1 / | ||
| Line 22: | Line 23: | ||
| * <wrap hi>mdadm --grow /dev/md0 --size max</ | * <wrap hi>mdadm --grow /dev/md0 --size max</ | ||
| * Grow the filesystem: | * Grow the filesystem: | ||
| - | * <wrap hi> | + | * <wrap hi> |
| + | * # Or xfs_growfs, resize2fs, etc... | ||
| ..and now I have a 14TB RAID1 instead of the initial 4TB. | ..and now I have a 14TB RAID1 instead of the initial 4TB. | ||
| Originally from; [[https:// | Originally from; [[https:// | ||
grow_md_raid1.1696010322.txt.gz · Last modified: by steve
