doc:appunti:linux:sa:raid_shrink
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:raid_shrink [2025/01/03 18:29] – niccolo | doc:appunti:linux:sa:raid_shrink [2025/01/07 10:45] (current) – niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Shrinking a RAID0 volume to add a smaller device to it ====== | ====== Shrinking a RAID0 volume to add a smaller device to it ====== | ||
+ | |||
+ | **FIXME** Must add the **resize2fs** operation! | ||
Suppose we have: | Suppose we have: | ||
Line 61: | Line 63: | ||
440535040 - 132096 - 128 = 440402816 | 440535040 - 132096 - 128 = 440402816 | ||
</ | </ | ||
+ | |||
+ | It is now possibile to shrink the existing array **/ | ||
< | < | ||
mdadm --grow /dev/md3 -z 440402816 | mdadm --grow /dev/md3 -z 440402816 | ||
+ | </ | ||
+ | |||
+ | Finally we can add the new component to the shrinked array: | ||
+ | |||
+ | < | ||
+ | mdadm /dev/md3 --add /dev/sdb7 | ||
</ | </ | ||
doc/appunti/linux/sa/raid_shrink.1735925373.txt.gz · Last modified: 2025/01/03 18:29 by niccolo