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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-04-2009, 09:29 AM
|
#1
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Rep:
|
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
|
|
|
11-04-2009, 10:35 AM
|
#2
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
|
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.
|
|
|
11-04-2009, 03:11 PM
|
#3
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Original Poster
Rep:
|
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
|
|
|
11-04-2009, 03:16 PM
|
#4
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
|
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.
|
|
|
11-04-2009, 03:16 PM
|
#5
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Original Poster
Rep:
|
The fstab file in /etc/fstab contains:
aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
...and that's all
|
|
|
11-04-2009, 03:17 PM
|
#6
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
|
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
|
|
|
11-04-2009, 03:39 PM
|
#7
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Original Poster
Rep:
|
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
|
|
|
11-04-2009, 03:41 PM
|
#8
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
|
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.
|
|
|
11-06-2009, 10:20 AM
|
#9
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Original Poster
Rep:
|
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
|
|
|
11-06-2009, 11:07 AM
|
#10
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Original Poster
Rep:
|
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.
|
|
|
11-06-2009, 12:35 PM
|
#11
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Original Poster
Rep:
|
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
|
|
|
11-09-2009, 09:31 AM
|
#12
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,857
|
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.
|
|
|
11-09-2009, 02:31 PM
|
#13
|
LQ Newbie
Registered: Nov 2009
Location: Omaha, NE
Distribution: CentOS
Posts: 9
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 05:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|