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, 04:04 PM
James Bensley
Default Lost mdadm.conf

---------- Forwarded message ----------
From: robert mena <robert.mena@gmail.com>
Date: 2009/12/31
Subject: Re: [CentOS] Lost mdadm.conf
To: CentOS mailing list <centos@centos.org>

each map to a different mdX. * I've been able to mount the /boot but no other.

So have you got one RAID0 which is partitioned into /boot, /tmp, / .....etc etc?

If /boot is mounting then try booting the machine normally?


Samuel Goldwyn - "I don't think anyone should write their
autobiography until after they're dead." -
CentOS mailing list
Old 12-31-2009, 04:19 PM
Les Mikesell
Default Lost mdadm.conf

James Bensley wrote:
> 2009/12/31 Luciano Rocha <strange@nsk.no-ip.org>:
>> 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 can't say this with 100% certainty but I would of thought that it
> would been fine. I've lost my mdadm.conf (reinstalled OS) with a
> separate 4 disk RAID 5 array and re-assembled the array and carried on
> as if nothing had happened.

Yes, I thought mdadm.conf wasn't really necessary these days and if the
partitions are type FD (autodetect) the md devices are assembled before you'd be
able to read /etc anyway. If your partitions aren't set to autodetect, you
might be able to change that, reboot, and come up working.

> Use "sudo mdadm -E --scan" do get a list of discovered RAID devices
> like this example:
> ARRAY /dev/md0 level=raid0 num-devices=2 UUID=fde94900:3f3f3bf6
> Pop the results in your mdadm.conf and that should sort you out after
> a reboot (I think). Also try something like "sudo mdadm --assemble
> /dev/md1
> /dev/sdb1 /dev/sdc1" to assemble the RAID manually.

'cat /proc/mdstat' should show the status of the md devices and the partitons
that are working so far.

Les Mikesell
CentOS mailing list

Thread Tools

All times are GMT. The time now is 09:52 AM.

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