LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-10-2008, 03:10 PM   #1
georgew2
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Interesting problem


I am working on a consulting project, to add raid to an existing embeded system.

The system is sarge based, but running a backported kernel from lenny...

The reason is the code was written for sarge, but the latest hardware build uses SATA drives for both hd and cd.

They have a nice build, with a cool backup/bootable restore environment... My job is to add raid.

I successfully moved everything to a raid drive, and got the non-raid grub booting the raid array. When I moved the original drive to raid, that all went well... untill I rebooted... Grub sould start, but not find itself. So I booted a lenny cd in recovery mode, and fixed grub so it worked fine. So in recovery mode I had all drives working, and /boot looked good.

Upon reboot, grub runs fine, /root mounts and boots fine, but now /boot and the rest of the other filesystems will not mount.

I know /boot is good, because it will boot all day long. but I get a error "wrong fs type, bad option, bad superblock, on /dev/md0" when I try to mount it.

I have tried all sorts of fixes, but short of re-making the filesystem, I'm not getting anywhere. Has anyone seen this?

I'll hammer my way through it eventually...


George
 
Old 08-11-2008, 01:53 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Perhaps the below link can help. It talks about SW raid, but perhaps it applies to your HW raid too.
http://www.linuxforums.org/forum/ubu...0-livedvd.html

Anyway, what are the mount options?
 
Old 08-12-2008, 06:54 AM   #3
georgew2
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Hey there!

Actually this IS a software raid... The clue there is the /dev/md0 device. Hardware raid is usually /dev/sda (a psudo-scsi device).

In any event I managed to find a tool to fix my problem. The command mdrun would bypass all of the problems and connect the drives so they could be mounted.

I think the source of my problem is that the newer kernel I was running was not providing the same API that the older tools were expecting.

mdrun was supposed to run if the /etc/mdadm/mdadm.conf file was empty or missing, but I tried emptying and deleting it with no lucj, so I just put the command in the md startup scripts in three different places to make sure it ran... I tested it, and it does nothing if run more than once... I'll go back and clean that up later...

The next step is to make a script to create a new system from tarballs of the old system.

The previous engineers used mkcdrec as source material for their backup system... They have an hd2cd.sh script that makes tarballs of the filesystems, then it builds a bootable cd image, and burns it to cdr or cdrw media, or makes the iso available for download. The bootable cd has a cd2hd.sh that will install the complete system... Very sweet! So my next step is to re-write cd2hd.sh to build the raid array. I'm half way done with that, I just have to add the filesystem support to the bootable image.

I already have a simple script to rebuild the array after a drive failure...

After I'm all done I must write up instructions and integrate the instructions with the system so that they are on-hand for every step of the process, so that the tech has in-context guides as he does his field work. This project will be installed in unmanned field stations all over the country.


George
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Interesting Video Problem with ATI Radeon 9800 Pro (not a 3D accel based problem) binarynova Linux - Hardware 1 08-27-2005 09:49 PM
An interesting problem about C++ zyzyis Programming 4 10-11-2004 02:38 PM
Interesting problem with date zulfilee Linux - Software 2 06-25-2004 11:41 PM
an interesting problem dlpmdr Linux - Distributions 2 03-30-2003 12:47 AM
Interesting mouse problem mydini General 0 09-09-2002 05:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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