Comments on How To Resize LVM Software RAID1 Partitions (Shrink & Grow)

How To Resize LVM Software RAID1 Partitions (Shrink & Grow) This article describes how you can shrink and grow existing software RAID1 partitions with LVM on top. I have tested this with logical volumes that use ext3 as the file system. I will describe this procedure for an intact RAID array and also a degraded RAID array.

4 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: eileon

Fine article ! Thanks for it.

Maybe you should precise that you use Live CD Knoppix as a rescue system.

By: Vito

I was able to use this to extent the RAID0 LVM as well. Thanks

By: Fletch Hasues

You discussed how to shring and grow an mdadm managed software RAID array.  The article suggests that this was discussing LVM RAID 1 arrays which use the md devices behind the scenes and do not require mdadm at all.  Consider changing the title name.

By: nh2

In my use case, beyond what's written in the article, I also shunk the partition that the mdadm RAID was running on. In such situation, I had to run

partprobe

 after partition size changes, and

mdadm --assemble --update=devicesize /dev/md1

 such that mdadm would reassemble the RAID (this is also explained on e.g. https://www.redhat.com/en/blog/expanding-capacity-red-hat-enterprise-linux-md-raid-part-1).