LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-04-2006, 09:03 AM   #1
cruiserparts
Member
 
Registered: Jun 2005
Posts: 31

Rep: Reputation: 15
FC5 installer software RAID maker messed up old /dev/md0


Now I've done it.

I had a perfectly working server that I cherished. I swear next time I will be satisfied with "it works perfectly."

My plan was to leave my server running FC4, but to install FC5 on my scsi disks (and have fc4 on one disk and fc5 on the scsi raid and when it was working right, drop the fc4). I was going to see if FC5 would make the software raid and do the install (to test the new feature more than anything). I chickened out ("wow, why am I doing this, something is bound to go wrong," I thought), and almost everything was fine

HERE is what was running fine before my misguided exploration.
1. A single 20G disk that was running FC4 OS pretty much flawlessly.
2. A pair of ata drives that had all my files, music, photos, everything, which was software raided (/dev/md0/) and also worked pretty much flawlessly.
3. An experimental /dev/md5 scsi array that I was going to install the fc5 on.
4. A fresh (like 30 minutes old) tape backup of, hopefully, everything on /dev/md0. This is reassuring, but I hope it doesn't come to this.

HERE is what I did.
1. edited mdadm.conf to remove the md5 array before i started with fc5. There is a possiblity that I accidently changed the /dev/md0 at the same time.
2. Proceeded to install FC5. I did not tell it to do anything on the 20g disk (where the fc4 was) or the /dev/md0 array or disks. Meaning I always unchecked any of those. I told it to install on the sda and sdb scsi disks, but I never started the install. I did go to the disk druid to see if it would make the raid 0 array and at one point, I did tell it to make the array (I wanted to see if the installer would actually do it). This may have changed something which messed up the /dev/md0 array, but I don't know what.
3. I hit control alt del to stop the installation. This is where I chickened out.

NOW here is what it does.
1. Machine will run through the boot, will load the kernel, go into fedora gui and attempt to continue booting...
2. Then it dumps out of gui mode and spits out this.....
mdadm: no devices found for /dev/md0
...
...
...
fsck.ext3: invalid argument while trying to open /dev/md0 FAILED
An error occurred during the filesystem check.... them some more stuff...
..
..
Give root password for maintence......

AFTER THIS I tried to figure out the problem with fsck and e2fsk (whatever the command is), but I didn't get anywhere.

THIS MAY BE RELEVANT: my fstab file has the following for the /dev/md0 entry:
/dev/md0 mnt/alldata ext3 defaults 1 2

ONE MORE IMPORTANT ITEM. I went back into the fc5 installer, not to install, but to look at the disks. The /dev/hdd1 and /dev/hdc1 which make up /dev/md0 seem to be present, like always, with the same partitioning info. I now have a /dev/md5 (which is what I originally called the scsi raid) in the disk druid, which seems odd b/c I never saw the /dev/md0 in the disk druid (the disk druid is the thing the fc5 installer uses to show the disk structure. It sort of reminds me of the "hardware profiler"). A little later, after a bout of panic induced insomnia, I tried to mount the individual drives hdd1 and hdc1 (while in maintence mode) and they MOUNTED (yea!) and it appears as if both drives are intact and complete. (Does the disk druid use raidtools, by any chance, to make that array? If so, is it possible that is what is messing everything up. I am using mdadm to make all arrays and I think raidtools conflicts. Just thinking out loud here. The odd thing is that /dev/md5 comes up in mdadm --detail --scan even though I "commented it out" of the mdadm.conf file before I started this mess. I may be confused here, though).

So basically fc4 is fine (it was on a seperate disk), and it gets most of the way through the boot process and runs into a problem with /dev/md0, which was never a problem before I started this. I am not savy enough to just scrap it and try to restore from the tapes. I can do it if necessary, but I would rather find some way to fix the problem before I got that route. No telling what might happen.

Let me know if this is adequate or I can confuse you more !!!! Maybe this is an easy fix....

Thanks
 
Old 04-05-2006, 08:14 AM   #2
cruiserparts
Member
 
Registered: Jun 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cruiserparts
Now I've done it.

I had a perfectly working server that I cherished. I swear next time I will be satisfied with "it works perfectly."

My plan was to leave my server running FC4, but to install FC5 on my scsi disks (and have fc4 on one disk and fc5 on the scsi raid and when it was working right, drop the fc4). I was going to see if FC5 would make the software raid and do the install (to test the new feature more than anything). I chickened out ("wow, why am I doing this, something is bound to go wrong," I thought), and almost everything was fine

HERE is what was running fine before my misguided exploration.
1. A single 20G disk that was running FC4 OS pretty much flawlessly.
2. A pair of ata drives that had all my files, music, photos, everything, which was software raided (/dev/md0/) and also worked pretty much flawlessly.
3. An experimental /dev/md5 scsi array that I was going to install the fc5 on.
4. A fresh (like 30 minutes old) tape backup of, hopefully, everything on /dev/md0. This is reassuring, but I hope it doesn't come to this.

HERE is what I did.
1. edited mdadm.conf to remove the md5 array before i started with fc5. There is a possiblity that I accidently changed the /dev/md0 at the same time.
2. Proceeded to install FC5. I did not tell it to do anything on the 20g disk (where the fc4 was) or the /dev/md0 array or disks. Meaning I always unchecked any of those. I told it to install on the sda and sdb scsi disks, but I never started the install. I did go to the disk druid to see if it would make the raid 0 array and at one point, I did tell it to make the array (I wanted to see if the installer would actually do it). This may have changed something which messed up the /dev/md0 array, but I don't know what.
3. I hit control alt del to stop the installation. This is where I chickened out.

NOW here is what it does.
1. Machine will run through the boot, will load the kernel, go into fedora gui and attempt to continue booting...
2. Then it dumps out of gui mode and spits out this.....
mdadm: no devices found for /dev/md0
...
...
...
fsck.ext3: invalid argument while trying to open /dev/md0 FAILED
An error occurred during the filesystem check.... them some more stuff...
..
..
Give root password for maintence......

AFTER THIS I tried to figure out the problem with fsck and e2fsk (whatever the command is), but I didn't get anywhere.

THIS MAY BE RELEVANT: my fstab file has the following for the /dev/md0 entry:
/dev/md0 mnt/alldata ext3 defaults 1 2

ONE MORE IMPORTANT ITEM. I went back into the fc5 installer, not to install, but to look at the disks. The /dev/hdd1 and /dev/hdc1 which make up /dev/md0 seem to be present, like always, with the same partitioning info. I now have a /dev/md5 (which is what I originally called the scsi raid) in the disk druid, which seems odd b/c I never saw the /dev/md0 in the disk druid (the disk druid is the thing the fc5 installer uses to show the disk structure. It sort of reminds me of the "hardware profiler"). A little later, after a bout of panic induced insomnia, I tried to mount the individual drives hdd1 and hdc1 (while in maintence mode) and they MOUNTED (yea!) and it appears as if both drives are intact and complete. (Does the disk druid use raidtools, by any chance, to make that array? If so, is it possible that is what is messing everything up. I am using mdadm to make all arrays and I think raidtools conflicts. Just thinking out loud here. The odd thing is that /dev/md5 comes up in mdadm --detail --scan even though I "commented it out" of the mdadm.conf file before I started this mess. I may be confused here, though).

So basically fc4 is fine (it was on a seperate disk), and it gets most of the way through the boot process and runs into a problem with /dev/md0, which was never a problem before I started this. I am not savy enough to just scrap it and try to restore from the tapes. I can do it if necessary, but I would rather find some way to fix the problem before I got that route. No telling what might happen.

Let me know if this is adequate or I can confuse you more !!!! Maybe this is an easy fix....

Thanks

UPDATE: I have determined that the /dev/md0 array, and the disks that build it /hdc1/ and /hdd1 are working, in sync, and have the proper UUIDs (and most importantly, at this point have all the data on them!). I can manually build the arrays and mount them. But when I restart I don't get any change.

The odd thing is that the fc4 is somehow mounting the array that the Disk Druid assembled without reading my mdadm.conf file. I believe this becaue it is mounting /dev/md5, and it's not even specified in the mdadm.conf file. I may be off base on this, but this seems to be what is happening.
 
Old 04-05-2006, 08:43 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Did you read the release notes re udev? Is it possible that the FC4 stuff in /etc/udev/ (if any) was changed, or that a new /etc/udev.d/ was added?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
can not mount RAID 0 /dev/md0 dysenteryduke Linux - Software 3 09-15-2005 03:19 PM
RAID 1 ... everyime I reboot, /dev/md0 is broken... rrohde Red Hat 1 10-26-2004 02:03 PM
Raid Weirdness -- /dev/md0: Invalid argument spiritwing Linux - Software 3 04-02-2004 09:52 PM
Raid Weirdness -- /dev/md0: Invalid argument spiritwing Linux - Hardware 0 04-02-2004 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration