I am having trouble going from a single disk to raid 10
The command issued is:
mdadm --create /dev/md0 --level=10 --raid-devices=8 /dev/sd[abcdefgh]1
The output is:
mdadm mdadm: cannot open /dev/sda1: Device or resource busy
I have verified this has nothing to do with DM:
]# dmsetup status No devices found
The file system is GPT, I used sgdisk --backup=table /dev/sda follwoed by sgdisk --load-backup=table /dev/sdb through to sdh to copy the partitions table
the table looks like:
Number Start End Size File system Name Flags 1 1049kB 525MB 524MB ext3 boot 2 525MB 86.4GB 85.9GB ext4 3 86.4GB 90.7GB 4295MB linux-swap(v1) 4 90.7GB 1000GB 909GB
I have created the other arrays fine however I cannot create the raid for the 1st and 2nd partition.
]# cat /proc/mdstat Personalities : [raid10] md3 : active raid10 sdh3 sdg3 sdf3 sde3 sdd3 sdc3 sdb3 sda3 16766976 blocks super 1.2 512K chunks 2 near-copies [8/8] [UUUUUUUU] resync=DELAYED md4 : active raid10 sdh4 sdg4 sdf4 sde4 sdd4 sdc4 sdb4 sda4 3552147456 blocks super 1.2 512K chunks 2 near-copies [8/8] [UUUUUUUU] [========>............] resync = 42.5% (1513033344/3552147456) finish=76.2min speed=445722K/sec unused devices: <none>
Can anyone offer any advice, do I need to boot in to a rescue disk and create the arrays for / and /boot while they are not mounted?