LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2009, 09:29 AM   #1
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Rep: Reputation: 0
RAID 1 Sync


Greetings,

After searching the forums I didn't find the exact answer I was looking for, so I thought i'd come here and ask.

I am currently running CentOS v5.3 (64-bit) with a RAID 1 configuration. The drives are also partitioned in half (with Vista on the other half).

I recently had to remove one of the hard drives in order to replace my video card. Upon reboot, I found that the RAID 1 array (software RAID, Intel chipset IHC7) was no longer in sync. I was able to boot into Vista and use Dell's matrix raid software to resync the drives. However, upon booting into CentOS, I am taken to a command prompt with the follownig error messages:

fsck.ext3: Device or resource busy while trying to open /dev/sda5
Kernel alive [FAILED]
An error occured during the file system check.
Dropping you to a shell; the system will reboot when you leave the shell
Give root password for maintenance

sda5 is my Linux partition and sda1 is Vista

As you might have noticed already, i'm not very knowledgable with repairing Linux problems, so any help is greatly appreciated!

Best regards,

Jason
 
Old 11-04-2009, 10:35 AM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
sda5 is my Linux partition and sda1 is Vista
or they were prior to your fix.

Better post your fstab -l and your menu.lst from /boot/grub. You do that by opening up a terminal window from a rescue disk, or just typing it from your command prommpt might work as well, assuming you have access to your filesystem from that command prompt.

I presume you setup CentOS with the drives already setup in RAID using the same firmware? CentOS should then be using dmraid to recognize the drives and not mdadm. You might want to read up about the difference if you don't know; it'll be helpful later, perhaps.
 
Old 11-04-2009, 03:11 PM   #3
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, the RAID (intel isw) was configured and setup when I purchased the computer. From the startup disc i'm using I cannot run fstab (command not found).

dmraid -r gives:

/dev/sdb: isw, "isw_biaeideiab", GROUP, ok, 1250263726 sectors, data@ 0
/dev/sda: isw, "isw_biaeideiab", GROUP, ok, 1250263726 sectors, data@ 0

sudo dmraid -ay isw_biaeideiab_Volume0 says that:

RAID set "isw_biaeideiab_Volume0" already active
RAID set "isw_biaeideiab_Volume01" already active
RAID set "isw_biaeideiab_Volume02" already active
RAID set "isw_biaeideiab_Volume03" already active
RAID set "isw_biaeideiab_Volume05" already active

Sorry for my ignorance on this issue, but i'm still learning many of the basics, and I don't have a system admin to turn to.

Best regards,

Jason
 
Old 11-04-2009, 03:16 PM   #4
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
You'll have to find a rescue disk that can run fstab, mount your dmraid disks so we can look at your grub menu and so forth. Knoppix is a popular choice.
 
Old 11-04-2009, 03:16 PM   #5
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
The fstab file in /etc/fstab contains:

aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0

...and that's all
 
Old 11-04-2009, 03:17 PM   #6
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Hmm that's your temporary fstab. You'll have to mount your arrays with a rescue disk and look at the (no longer) running system. If you can, you should be able to look in /dev/mapper and find the isw_biaeideiab_Volume0X devices to mount.

Something like

mount -t ext3(or whatever) /dev/mapper/isw_biaeideiab_Volume0 /mnt/example

but you HAVE to mount the right one. Probably best to do it read-only. Some of those may be pieces of the RAID, the other one will be the RAID.

Last edited by mostlyharmless; 11-04-2009 at 03:24 PM. Reason: changed to /dev/mapper from /dev; added info
 
Old 11-04-2009, 03:39 PM   #7
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
I have done the following per your request:

sudo mount -t ext3 /dev/mapper/isw_biaeideiab_Volume05 /mnt/

The files are now mounted under /mnt

I am downloading Koppix now and will run fstab -l

Thanks for all the help (and patience) so far. I have to take off now, so I will post the fstab results tomorrow I'll read more about dmraid so that I can give you more information tomorrow.

Regards,
Jason
 
Old 11-04-2009, 03:41 PM   #8
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Great! when you look in /mnt, you should find /mnt/boot/menu.lst, which is grub's configuration file for booting. Post it too please.
 
Old 11-06-2009, 10:20 AM   #9
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, sorry for the late reply, but I was doing some reading to solidify my background a little before posting.

I thought i'd just spit out some info, and see if anyone can help me make anything out of it.

First off, grub:

#find /grub/stage1
(hd0,1)
(hd0,0)

#fdisk -l

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 40794 327675904 7 HPFS/NTFS
/dev/sda2 40795 40807 104422+ 83 Linux
/dev/sda3 40808 41851 8385930 82 Linux swap /Solaris
/dev/sda4 41852 77825 288961155 5 Extended
/dev/sda5 41852 77825 288961123+ 83 Linux

Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 40794 327675904 7 HPFS/NTFS
/dev/sdb2 40795 40807 104422+ 83 Linux
/dev/sdb3 40808 41851 8385930 82 Linux swap /Solaris
/dev/sdb4 41852 77825 288961155 5 Extended
/dev/sdb5 41852 77825 288961123+ 83 Linux

Secondly, my menu.lst file is located in /mnt/sysimage/boot/grub:

#boot=/dev/mapper/isw_biaeideiab_Volume0
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.2.1.e15)
root (hd0,1)
kernel /vmlinuz-2.6.18-128.2.1.e15 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-128.2.1.e15.img
title CentOS (2.6.18-128.2.1.e15)
root (hd0,1)
kernel /vmlinuz-2.6.18-128.2.1.e15 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-128.2.1.e15.img
title CentOS (2.6.18-128.e15)
root (hd0,1)
kernel /vmlinuz-2.6.18-128.e15 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-128.e15.img
title Vista 64bit
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1

Are the menu.lst and grub.conf files supposed to be the same?

Also, I loaded the Knoppix live CD and could not run fstab on it. "Command not found". I am not currently working in rescue mode.

Regards,
Jason
 
Old 11-06-2009, 11:07 AM   #10
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
I should also mention that when I now boot my computer it gets hung-up at "GRUB loading stage1.5". I can get past this by going into rescue mode, but it's still there nonetheless.
 
Old 11-06-2009, 12:35 PM   #11
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry for the spammage, but I thought this info may also be helpful.

contents of /dev/mapper:

isw_biaeideiab_Volume0
isw_biaeideiab_Volume0p1
isw_biaeideiab_Volume0p2
isw_biaeideiab_Volume0p3
isw_biaeideiab_Volume0p4
isw_biaeideiab_Volume0p5

My fstab is located in /mnt/sysimage/etc and reads:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-isw_biaeid /swap swap defaults 0 0

Regards,
Jason
 
Old 11-09-2009, 09:31 AM   #12
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Hmm, if you're getting stuck at stage 1.5 and you re-made your RAID, I'll bet that either you just need to reinstall grub, which you can do with a grub floppy, SuperGrub or grub-install (not sure with CentOS). If you change your root(hd0,1) to root (hd0,0) in menu.lst, it'l probably work too, but you'll still have a corrupt grub on the other disk.

Last edited by mostlyharmless; 11-09-2009 at 03:21 PM.
 
Old 11-09-2009, 02:31 PM   #13
keech
LQ Newbie
 
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9

Original Poster
Rep: Reputation: 0
Problem is finally solved. In fstab, the LABELs were picking up the images (i.e. /dev/sda5) instead of pointing to the actual drives (i.e. /dev/mapper/isw_biaeideiab_VolumeX).

Re-syncing RAID 1 with dmraid now should be simple.

Thanks for all of your input.

Jason
 
  


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
Recovering data from out-of-sync RAID 5 petrijooste Linux - Server 3 10-21-2009 03:01 PM
Software Raid : Sync after install baddah Linux - General 2 10-08-2009 01:55 AM
RAID 1 Configuration doesn't sync kartikrajus Linux - Newbie 4 12-11-2008 07:37 AM
Will RAID-1 sync changes made under another OS ? cbonar Linux - Hardware 0 01-08-2005 12:20 PM
RAID 1 / Partition won't sync? georgee Linux - Software 0 10-23-2004 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:22 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