On Sat, May 14, 2011 at 09:58:21PM +1000, NeilBrown wrote: > > If the filesystem is ext3, then with the old controller you could > resize2fs the filesystem to be several megabytes smaller - aim to over-shrink > rather than under-shrink. Say 2 Meg per devices, so 12Mmeg ... so maybe > 20Meg for safety... or even double that again. > > Then use mdadm to make the array smaller (mdadm --grow --size=whatever). > Then 'fsck -f' the filesystem to make sure it is still OK. If you messed up > you can still make the size bigger again with mdadm. The 'size' is the > per-device size, so 1/6 of the array size, but a multiple of the chunk size. > > Then switch back to the new controller and assemble with --update=devicesize > so: > mdadm -A /dev/md2 --update=devicesize /dev/sd[abcdefg]3 > > and it should all work. > > If you don't have ext3, then you probably need to backup and restore - I > don't think other filesystems support shrinking, but I could be wrong. Thanks for your help. Alas /dev/md2 is xfs so dump/restore it will be... For next time, what is the prudent disk space to reserve at the end for these greedy controllers? -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html