Convert Linux raid10 to raid1 PV
Random October 2nd, 2012
To convert a Linux physical volume stored on a softraid with level 10 (a wrong 2 disk setup which accidently uses raid10) to a clean raid1 mirroring setup some simple LVM commands come to the rescue.
- Create second md device
- Create PV on second md device
- Add PV to existing volume group
- Move extends to the new PV
- Fail and remove devices from old md device
- Add device to new md device
- Finally rename md device
Renaming the mddevice (see also http://www.jross.org/recreation/computers/linux/rename-a-linux-md-device/).
- Category: Bits & Bytes
- Comments Off on Convert Linux raid10 to raid1 PV