Re: looking for advice on raid0+raid5 array recovery with mdadm and sector offset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Neil,

thanks again for spending time on this when you're already swamped, I
appreciate it much

the commands look logical for my setup (just a type on the chunk size,
needs tobe capital K)
I did not dare to fire off the last command last time, but as missing
seems to be available for imsm, I re-processed all of the commands
again

the Raid0 is created without any trouble (only stating it is already
part of an array, confirmed with Y), but the raid5 array won't.
After it also stated sdc sdd sde are part of an array, and confirming
with Y for the create, it gives the following:

"mdadm: unable to add 'missing' disk to container"
I'm using mdadm - v3.2.6 - 25th October 2012.
Could it be the 3.2.6 does not support missing for imsm?

best regards Dennis


On Mon, Jan 20, 2014 at 1:16 AM, NeilBrown <neilb@xxxxxxx> wrote:
> On Thu, 16 Jan 2014 22:03:00 +0100 den Hoog <speedyden@xxxxxxxxx> wrote:
>
>> Hi Neil
>>
>> can you try to make 'missing' working for imsm?
>>
>> probably not on the short list of things to do, but if you are willing
>> to help me out, I'll appreciate it much!
>
> Hi Dennis,
>
> it seems that "missing" already works with IMSM.  I thought I remembered that
> it didn't, but I was wrong.
>
> So you should be able to create the raid0 using the first parts of the
> devices, then create the RAID5.
> When creating the RAID5, list the devices that should  make up the RAID5 in
> the correct order.
> So something like:
>
>  mdadm -C /dev/md/imsm -e imsm -n 4 /dev/sd[bcde]
>  mdadm -C /dev/md0 -l0 -n4 -c 128k -z 512G /dev/md/imsm
>  mdadm -C /dev/md1 -l5 -n4 -c 128k missing /dev/sdc /dev/sdd /dev/sde
>
> Then /dev/md1 should be your RAID5 array.
>
> You should double-check the above command to make sure you agree with ever
> part, and ask if there is anything that doesn't seem right.
>
> NeilBrown
>
--
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




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux