Solved

LILO and LVM with ATA-RAID?

Posted on 2001-08-21
9
477 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
 
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now