On Mon, 16 Apr 2012 02:06:26 Felix Miata wrote:
I'm trying to do this without YaST because I find curses YaST so hard to use and want to understand how to manage RAID without depending on working X to do it. [...] I tried initially creating md7 using only the original 152G partition to ensure against data loss, then add the new 152G partition to the existing single partition md7. These mdX partitions are all type 0xFD in the partition tables. But 'mdadm -cv/dev/md7 --level=1 /dev/sdb14' produces an error message "mdadm: -c does not set the mode, and so cannot be the first option". So, I don't know what to do. If there's anything in the mdadm man page on converting existing partitions to RAID1 elements, I'm missing it.
mdadm.conf is the attachment, which is the original, plus my last line addition for the new array minus a UUID.
Felix, As I remember it (it has been a while) the basic workflow is: - create the RAID1 array using just the partition with the existing dara - start the array in degraded mode - add the new (empty) partition (it may or may not need the filesystem created, I can't remember exactly) - tell mdadm to rebuild the array, which will copy the data from the first partition to the second - may need to restart the array in normal mode (I can't remember if this is done automatically after the rebuild). Read the man page carefully - it is all there. I converted /home and and a couple of other partitions to RAID1 this way but that was at least a couple of years ago so the exact commands I can't remember - I'd have to go look at the man page myself if I needed to do it again. HTH. Regards, Rodney. -- ========================================================================== Rodney Baker VK5ZTV rodney.baker@iinet.net.au ========================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org