query on mdadm for support of adding a disk to a running linear array
I am using mdadm 2.6.4 for managing RAIDs on Linux kernel 2.6.18. I've a query like whenever i tried to add a new disk to a running linear array(JBOD)i get a message "cannot add new disk to this array"
The exact steps are as follows:
create a new array as:
mdadm -C /dev/md0 -llinear -n2 /dev/sata/ /dev/sata2
it is getting added and i am able to see with -D command.
Now add a new disk sata3 as follows:
mdadm --grow /dev/md0 --add /dev/sata3 I get the output as:
md: sdb has invalid sb, not importing!
md: md_import_device returned -22
mdadm: cannot add new disk to this array.
So my first doubt is whether mdadm 2.6.4 supports this features or not if it supports then do i need to change the driver?
It's saying that the superblock on sdb (the device you're adding, I suspect) is not valid for the operation. Prior to adding a drive to a RAID, I usualy:
thanks for your reply, i tried in the way you suggested but still the problem is same.
one more thing i've found out is that if we check this runnig array disk support for other RAID levels as i checked it for RAID5 it is adding the new disk to the runnig array as "spare", so is this what we mean by Hotadd or the new disk can be added as a active disk to the runnig array in any RAID level?
I created a linear two drive array:
You might want to recheck your steps, or update your software.
|All times are GMT -5. The time now is 12:02 PM.|