Hi,<div><br></div><div>it worked (kind of). Thanks.</div><div><br></div><div>I was able to recreate (the all appear in /proc/mdstat) and in the rescue I've mounted the /boot which maps to /dev/md0. But I can't mount any other partition.</div>
<div><br></div><div>they all complain with the same error</div><div><br></div><div>mount: Mounting /dev/mdX on /tmp/mountpoint failed: no such file or directory</div><div><br></div><div><br></div><div>Any ideas?</div><div>
<br><br><div class="gmail_quote">On Thu, Dec 31, 2009 at 11:42 AM, Luciano Rocha <span dir="ltr"><<a href="mailto:strange@nsk.no-ip.org">strange@nsk.no-ip.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote:<br>
> Hi,<br>
><br>
> I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to<br>
> mount the filesystem again.  So I've booted using rescue but I was wondering<br>
> if I can do a command like this safely (i.e without losing the data<br>
> previously stored).<br>
><br>
> mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sda1 /dev/sdb1<br>
><br>
> Where of course the raid devices and the /dev/x are the correct ones<br>
<br>
</div></div>I've collected an howto somewhere from the 'net:<br>
<br>
$ cat docs/sysadm/mdadm_recovery.txt<br>
<br>
## define possible devices with arrays<br>
echo 'DEVICE /dev/hd[a-l]* /dev/sd[a-l]*' > mdadm.conf<br>
<br>
## scan<br>
mdadm --examine --scan --config=mdadm.conf >> mdadm.conf<br>
<br>
## review configuration, copy to /etc<br>
cp mdadm.conf /etc/<br>
<br>
## create devices<br>
MAKEDEV md || { for ((i=0; i <= 31; i++)); do mknod /dev/md$i b 9 $i;<br>
done; }<br>
<br>
## start arrays<br>
mdadm --assemble --scan<br>
<br>
Best of luck,<br>
<font color="#888888"><br>
--<br>
lfr<br>
0/0<br>
</font><br>_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
<br></blockquote></div><br></div>