<p>> > So I booted from a rescue CD, used mdadmin to start RAID device, mounted the<br>
> > device and tried to chroot into the mount directory and don't work, don't<br>
> > seem to have chroot binary in my rescue environment.<br>
><br>
> If this is the centos rescue environment, it definitely should include<br>
> chroot. The approach you're taking seems fine to me. I've done this in<br>
> the past.</p>
<p>This eventually worked. I have now been able to bring up one of the RAID device up fully. This is md0 which is RAID1. I have struggled with md2 though which is a RAID5 device. Here is how it looks.</p>
<p> mdadm --query --detail /dev/md2</p>
<p>/dev/md2: Version : 1.2 Creation Time : Thu Dec 13 11:04:35 2012 Raid Level : raid5 Used Dev Size : -1 Raid Devices : 3 Total Devices : 2 Persistence : Superblock is persistent</p>
<p>Update Time : Thu Nov 21 09:20:07 2013 State : active, degraded, Not Started Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0</p>
<p>Layout : left-symmetric Chunk Size : 512K</p>
<p>Name : <a href="http://gfs1.jamar.com:2">gfs1.jamar.com:2</a> (local to host <a href="http://gfs1.jamar.com">gfs1.jamar.com</a>) UUID : 0202547e:d9a3bd67:fdeaf168: a780aa38 Events : 6292</p>
<p>Number Major Minor RaidDevice State 0 0 0 0 removed 1 8 18 1 active sync /dev/sdb2 3 8 34 2 active sync /dev/sdc2</p>
<p>mdadm --add /dev/md2 /dev/sda2 mdadm: add new device failed for /dev/sda2 as 4: Invalid argument</p>
<p>On dmesg, I see the error</p>
<p>MD2: ADD_NEW_DISK not supported</p>
<p>(The above actually worked for the RAID 1 device on the same system. It has two partition, RAID 1 being system and RAID 5 being data partition).</p>
<p>mdadm --examine /dev/sd[abc]2 | egrep 'dev|Update|Role|State|Chunk Size' /dev/sda2: State : active Update Time : Thu Nov 21 09:20:07 2013 Device Role : spare Array State : AAA ('A' == active, '.' == missing) /dev/sdb2: State : active Update Time : Thu Nov 21 09:20:07 2013 Device Role : Active device 1 Array State : AAA ('A' == active, '.' == missing) /dev/sdc2: State : active Update Time : Thu Nov 21 09:20:07 2013 Device Role : Active device 2 Array State : AAA ('A' == active, '.' == missing) <br>
</p>
<p>What does "used device size" mean when the number is negative?</p>
<p>Anybody see something I may have approached wrongly? Its a back up system so not too worried for now. Plan to just destroy the device and create a new if I can't bring it up by end week. Would be satisfying though to bring it back though</p>
<p>William <br>
><br>
> Also, in the unfortunate event that you have problems during the<br>
> rebuild, be aware that unless the first failed disk is completely<br>
> fubared, you may be able to use some of its data if required.<br>
> Hopefully not, but keep it in mind.<br>
><br>
> Thanks<br>
> -Ben<br>
> --<br>
> The Toronto Linux Users Group. Meetings: <a href="http://gtalug.org/">http://gtalug.org/</a><br>
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
> How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists">http://gtalug.org/wiki/Mailing_lists</a></p>