I have a raid0/1 on lvm logical volumes. I resized the logical volumes. Now I want to resize the raid to use the complete logical volumes. This can be done with
mdadm /dev/md? --grow -z newsize
When I do only
mdadm /dev/md? --grow
I get mdadm: no changes to --grow
But somehow I can't figure out how to calculate the newsize
argument. Is there a way to tell mdadm to grow to the biggest possible size? If not, how do I calculate the biggest possible size of the raid to use for the newsize
argument?