Best strategy for setting up LVM over RAID for flexibility down the road?
Solution 1:
I think what you are proposing (LVM with multiple RAID-1 PVs) is correct, except for one detail: you don't necessarily need to pull a RAID set from your VG to replace it:
- Swap one disk in one of the RAID sets (
mdadm
fail, remove, physical swap, re-add) - Rebuild
- Swap the second
- Rebuild
mdadm --grow
pvresize
Of course, this assumes that you have good backups, and that your single disk doesn't die while you're doing the rebuild.