LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-14-2005, 12:05 PM   #1
creeble
LQ Newbie
 
Registered: Aug 2004
Posts: 20

Rep: Reputation: 0
raid 1 problems fedora core 3 - fsck fails


Going a little nuts here.

used:
mdadm --create --level 1 -n2 /dev/md1 /dev/hda2 /dev/hdb2
(both hda2 & hdb2 have ext3 fs on them)
This works fine, eventually copies over everything and /proc/mdstat finds the array. This is going to be mounted as root.

Then, as I did for the /boot partition (which seems to mount fine), I did:
fsck -f /dev/md1
and it eventually finished. Then according to the HOWTO, I ran:
resize2fs /dev/md1
to get the superblock to say the right thing for raid. Everything fine so far, I can mount /dev/md1 no problem (running rescue).
I change lilo.conf to have:
root=/dev/md1
and chroot/lilo, and it tells me it's updating two disks (correct).

But when I reboot, it fails the fsck, complaining about wrong superblock info! This didn't happen with /boot (/dev/md0). I can't figure it out.

Yes, both hda2 and hdb2 (and hda1/hdb1, the /boot partitions) are set to 'fd' in fdisk. They get detected at boot, but the fsck just fails.

Any ideas?

Eric.
 
Old 01-14-2005, 02:14 PM   #2
kwlskwlguy
LQ Newbie
 
Registered: Apr 2004
Distribution: Slackware 10.1, SUSE 9.1 Pro, FreeBSD 5.4
Posts: 14

Rep: Reputation: 0
Being a Newb myself I can only throw a guess, But I think i remember reading something about the /boot partition not being able to accept a RAID, I set my /boot to /dev/hda1 and on /dev/hdb1 I backup the Kernel info. The other partitions are set up with a RAID1 but the superblock is a special sector (I think, and could very well be wrong) and won't sync with the RAID. The fsck fails because of the inconsistancy between the two parititons super/lack of superblock diff.
 
Old 02-08-2005, 10:20 AM   #3
shaggn85
LQ Newbie
 
Registered: Dec 2003
Posts: 1

Rep: Reputation: 0
Hey, I am having the same problem myself. Its very irritating. Hope someone has an answer. I followed the HOWTO on tldp.org and its just a mess. Tried it like 5 times with some slight variations. If anyone is running a completely mirrored system drive on FC3 please help...

thanks
dave
 
Old 02-08-2005, 11:44 AM   #4
creeble
LQ Newbie
 
Registered: Aug 2004
Posts: 20

Original Poster
Rep: Reputation: 0
I did finally get it to work, the key was creating a new initrd. Apparently, the FC3 initrd doesn't have "personality 3" for raid, whatever the hell that is.

mkinitrd --with=raid1 /boot/initrd-.....img `uname -r`

where .... is 2.6.9-1.667 in my case. This I learned *after* having copied the whole system to a spare drive, which I think I wouldn't have needed to do if I had tried this in the first place (could have just done as the rest of the HOWTO says and it would automatically mirror my existing disk over to disk2).

Don't forget to run lilo (I don't use grub) after you make the new initrd if you're a lilo user.

Eric.
 
Old 02-08-2005, 11:47 AM   #5
creeble
LQ Newbie
 
Registered: Aug 2004
Posts: 20

Original Poster
Rep: Reputation: 0
also....

I'm able to run the /boot partition as raid too, no problems. Here's my df:

Filesystem Size Used Avail Use% Mounted on
/dev/md1 230G 110G 109G 51% /
/dev/md0 99M 9.3M 85M 10% /boot
none 189M 0 189M 0% /dev/shm

and my /proc/mdstat:

Personalities : [raid1]
md1 : active raid1 hdb2[1] hda2[0]
244083456 blocks [2/2] [UU]

md0 : active raid1 hdb1[1] hda1[0]
104320 blocks [2/2] [UU]


and my lilo.conf:

prompt
timeout=20
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
linear

image=/boot/vmlinuz-2.6.9-1.667
label=linux
initrd=/boot/initrd-2.6.9-1.667.img
read-only
root=/dev/md1
append="hdc=ide-scsi"


Eric.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora core 4 installation fails 1inxs Fedora - Installation 14 03-08-2006 03:24 AM
Fedora Core 4 Problem. fsck? Mark07 Linux - General 0 11-25-2005 12:15 PM
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Linux - Hardware 1 09-17-2005 03:14 AM
Fedora 2 Raid Autodetect Fails kheldar Linux - Newbie 5 07-22-2004 02:36 AM
Fedora Core 1 Fails to Install z2168235 Fedora - Installation 2 03-07-2004 09:29 AM


All times are GMT -5. The time now is 06:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration