?
Solved

LILO and LVM with ATA-RAID?

Posted on 2001-08-21
9
Medium Priority
?
495 Views
Last Modified: 2013-12-15
I have an ASUS A7V133 motherboard with a Promise PDC 20265 ATA100 RAID controller on it. Connected to it are 2 IBM IC35L040 Harddisks (40 GB each) in RAID0 Stripe Mode.

After some fiddling, everything works fine with Win98 and Win2k, even to boot from the RAID. But I also need to run Linux :). I've installed SuSE 7.2 and made my own kernel from the 2.4.8-ac4 sources, as my old one (2.4.4) oops'd at boot when it saw the Promise in RAID mode. The new kernel works fine, it finds the RAID controller, sees the two disks on it and I even figured out to use devices with block-major 114 to access the RAID.

Now to my probs:
If possible, I would like to only have these two disks in my system, but I can't get LILO to write a boot sector to the RAID. It just says "Don't know how to handle device 0x7202" (i. e. major 114/minor 2). Do you have any idea how to get LILO to write a boot sector to an ATA-RAID or maybe another boot manager that does the job instead of LILO?

OK, at the moment I have an additional harddisk as normal primary master IDE to boot from. If that's my fate it has to remain in the system.

The second wish I have is to set up the LVM on the RAID, but there are similar problems with that: `pvcreate /dev/ataraid/hda10` just says: 'pvcreate -- invalid physical volume name "/dev/ataraid/hda10"'. Does anyone know what to do here or is it just impossible what I want?
0
Comment
Question by:Asem
9 Comments
 
LVL 14

Expert Comment

by:xberry
ID: 6412974
I don't think it's possible to have LILO write a bootsector to a RAID

You might have a chance with GRUB though. Please judge yourself:

http://www.gnu.org/software/grub/grub.en.html
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6424216
It's perfectly possible to have LILO write to the boot sector on a real RAID controller (as far as I'm concerned the Promise is more of a winraid). I have no problems with my Adaptec, Mylex, or 3Ware RAID controllers (IDE & SCSI). All of my systems with those controllers have only RAID volumes and as far as Linux is concerned the volumes look just like an ordinary disk drive.
0
 
LVL 2

Author Comment

by:Asem
ID: 6424988
<i>jlevie:</i> if you use one of the mentioned controllers, do you access them with the normal '/dev/hd?' or '/dev/sd?' devices? As I mentioned above, I had to create special block devices with major 114 to access the RAID array. Additionally I see each single harddisk as '/dev/hde' and '/dev/hdg', but that isn't very useful as with the only supported mode of this controller (RAID 0; striping) data is spread across the two disks. Or will the bootsector just be read from the first disk, so I can simply write it to '/dev/hde1'?

<i>xberry:</i> I'll give GRUB a try...
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 40

Expert Comment

by:jlevie
ID: 6425281
On my SCSI RAID controllers the devices appear as sda, sdb, etc., just like they would if I had a SCSI disk. I know that the Adaptec EIDE controllers show the volumes as sda..., I can't remember for sure if the 3Ware does the same and can't get a system with one of those to look right now. Looking at one of my SCSI RAID systems I see:

plato> df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda8              2016016   1445676    467928  76% /
/dev/sda1                23302      7623     14476  35% /boot
/dev/sda9            131982660   6990456 118287880   6% /nfs0
/dev/sda5              4032092    209500   3617768   6% /opt
/dev/sda7              2016016     22016   1891588   2% /var

Oh yeah all of the RAID controllers that I've mentioned support at least RAID 0, 1, & 5 and some also support 10 & 50.
0
 

Expert Comment

by:SirSmokeALot
ID: 6459713
I have the same problem , Promise support told me there will be a driver available soon. Let's see if its true.

Did you try to set the disk options in lilo.conf ?
0
 
LVL 2

Author Comment

by:Asem
ID: 6462396
yes, I tried this:

[...]
disk=/dev/ataraid/hda
  bios=0x80
[...]

But I don't know if that does matter, as LILO doesn't say it can't determine the drive's geometry rather it pretends not being able to access the device at all. Or what do you think? What's the right BIOS code at all? The LILO doc mentions a DOS program "DPARAM.COM", but where to get it from?

But there currently *IS* a "driver" or better a module for the controller called "pdcraid" and for the RAID called "ataraid", so I am able to access it using block devices with major 114. Only LILO can't write its boot sector to it.
0
 

Expert Comment

by:CleanupPing
ID: 9086714
Asem:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 2

Expert Comment

by:fciii
ID: 9668195
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQd and points refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

fciii
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9710040
PAQed, with points refunded (222)

Computer101
E-E Admin
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question