FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 12-31-2009, 02:39 PM
robert mena
 
Default Lost mdadm.conf

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 12-31-2009, 02:42 PM
Luciano Rocha
 
Default Lost mdadm.conf

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

I've collected an howto somewhere from the 'net:

$ 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@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 06:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org