it worked (kind of). Thanks.
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.
they all complain with the same error
mount: Mounting /dev/mdX on /tmp/mountpoint failed: no such file or directory
Any ideas?
On Thu, Dec 31, 2009 at 11:42 AM, Luciano Rocha <strange@xxxxxxxxxxxxx> wrote:
I've collected an howto somewhere from the 'net:On Thu, Dec 31, 2009 at 11:39:25AM -0400, robert mena wrote:
> Hi,
>
> I lost my mdadm.conf (and /proc/mdadm shows nothing useful) and I'd like to
> mount the filesystem again. So I've booted using rescue but I was wondering
> if I can do a command like this safely (i.e without losing the data
> previously stored).
>
> mdadm -C /dev/md0 --level=raid0 --raid-devices=2 /dev/sda1 /dev/sdb1
>
> Where of course the raid devices and the /dev/x are the correct ones
$ cat docs/sysadm/mdadm_recovery.txt
## define possible devices with arrays
echo 'DEVICE /dev/hd[a-l]* /dev/sd[a-l]*' > mdadm.conf
## scan
mdadm --examine --scan --config=mdadm.conf >> mdadm.conf
## review configuration, copy to /etc
cp mdadm.conf /etc/
## create devices
MAKEDEV md || { for ((i=0; i <= 31; i++)); do mknod /dev/md$i b 9 $i;
done; }
## start arrays
mdadm --assemble --scan
Best of luck,
--
lfr
0/0
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos