CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - General Support
  Need information about customizing ISO images

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  marty_one
      marty_one
Need information about customizing ISO images
#1
Newbie
Joined: 2009/11/4
From
Posts: 8
I know there are similar topics about this that have been posted, but the information I need I cannot find. Im in a situation where I have two new HP DL360 G6 servers, both have a HP Smart Array B110i Sata Raid Controller. Since the raid controller is so new CentOS 5.3/5.4 and RHEL 5.3/5.4 do not have support built into the installer.

I do have a driver for the raid controller which I have used and successfully installed CentOS 5.3 on one of the systems.

The reason I need to customize an ISO is because I need the raid controller driver as part of the installation disc. As these systems are servers and are going to be deployed remotely I will not have physical access to these systems if they need to be rebuilt. I also have to build machines remotely as well using iLO (having a floppy image or usb image of the drivers does not work through iLO).

The installation rpm's can be as is, I do not need to make any changes there. I just need to make sure that the raid controller driver is loaded into memory from the media rather than another media source, before the installer kicks in.

Also please remember I am a bit of a newb here and where I work there is no-one else who knows about this stuff.

Regards
Martin.
Posted on: 2009/11/4 5:31
Create PDF from Post Print
Top
  •  arrfab
      arrfab
Re: Need information about customizing ISO images
#2
Moderator
Joined: 2005/1/3
From /country/belgium
Posts: 859
There is no need (at least for such a basic problem) to rebuild a modified iso (with a modified initrd that contains the .ko for the raid controller) : just specify dd= and point to the necessary driver disk (can be on http/ftp/nfs remote folder)
On the other hand i'm surprized that a HP/Compaq raid controller isn't handled by the cciss .ko module .. I don't have time to search for you but are you sure that it's a real raid controller and not a fake one ?
_________________
idea=`grep -i clue /dev/brain` ; test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer-the-forum
Posted on: 2009/11/4 19:31
Create PDF from Post Print
Top
  •  marty_one
      marty_one
Re: Need information about customizing ISO images
#3
Newbie
Joined: 2009/11/4
From
Posts: 8
Do you have an example of syntax required for the dd command to include the driver in the iso image?
Posted on: 2009/11/4 22:40
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Need information about customizing ISO images
#4
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
The "dd=" parameter is to specify a "driver disk" for the installer to load. It has nothing to do with the "dd" command, nor creating a new ISO image.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/5 2:07
Create PDF from Post Print
Top
  •  marty_one
      marty_one
Re: Need information about customizing ISO images
#5
Newbie
Joined: 2009/11/4
From
Posts: 8
Quote:

pschaff wrote:
The "dd=" parameter is to specify a "driver disk" for the installer to load. It has nothing to do with the "dd" command, nor creating a new ISO image.


Im sorry but this does not solve the problem i am faced with. With the types of systems I deal with, sometimes I wont have physical access to these system to build. I have to do it through iLO (hardware based remote access to the server). At the moment the only solution I can see that will work is to re-author the iso image of CentOS 5.3 to inlcude the raid controller driver when it loads all the other drivers before the installation application starts.

Is there any official documentation/faq/howto to do this?

Regards
Martin.
Posted on: 2009/11/5 5:21
Create PDF from Post Print
Top
  •  arrfab
      arrfab
Re: Need information about customizing ISO images
#6
Moderator
Joined: 2005/1/3
From /country/belgium
Posts: 859
Quote:

marty_one wrote:
Quote:

pschaff wrote:
The "dd=" parameter is to specify a "driver disk" for the installer to load. It has nothing to do with the "dd" command, nor creating a new ISO image.


Im sorry but this does not solve the problem i am faced with. With the types of systems I deal with, sometimes I wont have physical access to these system to build. I have to do it through iLO (hardware based remote access to the server).


Yes it solves the problem you're faced to (assuming your hardware manufacturer gives you a driver disk). What's the problem with the dd= parameter we gave you ? The only time i had to modify the initrd.img file was when i had to setup over the network *and* that the network card wasn't included, which isn't your problem here. You don't need physical access to that system for the dd= parameter to work (see http://www.centos.org/docs/5/html/5.2/Installation_Guide/ch-bootopts-x86.html)

BTW you still haven't answered the 'fakeraid' question, which i think is the real issue here : i doubt such embedded controller is a real raid adapter, and i even think that it's only based on the ICH10 chipset. When you boot the installer, do you see two independant volumes ? If so , forget about that fakeraid configuration and use linux software raid instead ...
_________________
idea=`grep -i clue /dev/brain` ; test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer-the-forum
Posted on: 2009/11/5 7:21
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Need information about customizing ISO images
#7
Moderator
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
Quote:

marty_one wrote:
...the only solution I can see that will work is to re-author the iso image of CentOS 5.3 to inlcude [sic] the raid controller driver...


The current release is 5.4, so starting with 5.3 is not recommended. I strongly agree with arrfab that dd= should do what you need, and that you need to give some consideration to the RAID. Please see http://wiki.centos.org/HowTos/SoftwareRAIDonCentOS5 for some discussion of the issues.
_________________
Phil
Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2009/11/5 11:13
Create PDF from Post Print
Top
  •  marty_one
      marty_one
Re: Need information about customizing ISO images
#8
Newbie
Joined: 2009/11/4
From
Posts: 8
Quote:

BTW you still haven't answered the 'fakeraid' question, which i think is the real issue here : i doubt such embedded controller is a real raid adapter, and i even think that it's only based on the ICH10 chipset. When you boot the installer, do you see two independant volumes ? If so , forget about that fakeraid configuration and use linux software raid instead


To be honest im not sure about what you mean by real raid/fake raid as there is a built in hardware controller for it. I might agree with you that it might be a fake raid as in the past with these systems, the raid controller that came with them I not only had to create the raid config but build the array as well. With these new ones you create the raid config but you dont build the array!

Quote:

You don't need physical access to that system for the dd= parameter to work (see http://www.centos.org/docs/5/html/5.2/Installation_Guide/ch-bootopts-x86.html)


Thanks for the link, as you said it definately does answer my question. I was getting really frustrated that everything i tried before getting on the forums wasnt working.

I have one question though. The way HP releases the drivers is in a format created by the dd command (iso format I think), will I need to get the files extracted and put into the same directory layout if i put the files on a nfs/http location?
Posted on: 2009/11/5 21:16
Create PDF from Post Print
Top
  •  marty_one
      marty_one
Re: Need information about customizing ISO images
#9
Newbie
Joined: 2009/11/4
From
Posts: 8
I have been trying the dd= option as suggested. I have extracted the files as they were out of the iso image(hpahcisr-1.2.1-6.rhel5.x86_64.dd) provided by HP. The list of files from the archive are:

[ ]	fix_driver_order	06-Nov-2009 19:33 	362
[ ]	modinfo	06-Nov-2009 19:33 	69
[ ]	modules.alias	06-Nov-2009 19:33 	132
[ ]	modules.cgz	06-Nov-2009 19:33 	399K
[TXT]	modules.dep	06-Nov-2009 19:33 	0
[ ]	pcitable	06-Nov-2009 19:33 	158
[ ]	rhdd	06-Nov-2009 19:33 	32 


i then copied these files to a apache webserver that is local to my network (ie: http://192.168.X.X/hpb110i). when the boot loader came up i entered:

linux dd=http://192.168.X.X/hpb110i


but it didnt load or find anything. I also tried:

linux dd=nfs://192.168.X.X/opt/hpb110i


I even extracted out the "hpahcisr.ko" for the 2.6.18-128.el5 kernel (default for CentOS 5.3) and tried to reference it specifically

linux dd=http://192.168.X.X/hpb110i/hpahcisr.ko


after changing the extension of hpahcisr-1.2.1-6.rhel5.x86_64.dd from dd to iso/img (they are the same format arent they?) i tried:

linux dd=http://192.168.X.X/hpb110i/hpahcisr-1.2.1-6.rhel5.x86_64.img


and still didnt work. Is there something basic that i might be missing?

also I am stuck with having to use CentOS 5.3 as the default supported kernel by the driver is 2.6.18.128.el5 or 2.6.18-92.el5. There is no newer releases yet. I have even gone as far as trying RHEL 5.4 (the driver doesnt work with the kernel in this version, i know this because I have built one of the two servers following the steps outlined in the text files, ie: writing the image to a usbkey, running "linux dd" at the boot prompt, pluging in the usbkey to the server for the bootloader to find and load the drivers)
Posted on: 2009/11/5 23:28
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: Need information about customizing ISO images
#10
Professional Board Member
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4294
Something to try.

Quote:

<snip>
[ ] modules.cgz 06-Nov-2009 19:33 399K
<snip>

The modules.cgz file contains the driver module. It's a gzip'ed cpio archive, so you could extract the .ko file from it and attempt to use it . . . ?
_________________
Alan.

100% CentOS, Linux & Unix. Co-founder of ELRepo.
Posted on: 2009/11/6 14:33
Create PDF from Post Print
Top
  •  arrfab
      arrfab
Re: Need information about customizing ISO images
#11
Moderator
Joined: 2005/1/3
From /country/belgium
Posts: 859
Let's split the thread in two parts : the raid/fakeraid discussion and the dd one
Quote:

To be honest im not sure about what you mean by real raid/fake raid as there is a built in hardware controller for it. I might agree with you that it might be a fake raid as in the past with these systems, the raid controller that came with them I not only had to create the raid config but build the array as well. With these new ones you create the raid config but you dont build the array!

When you don't specifiy dd= (and so don't use a driver disk), what are you able to see in the disk partitioning step ? No disks at all or two separate volumes ? If so that confirms that it's a "fakeraid", meaning a mix of proprietary software driver to simulate a raid1 controller (and that uses ~10% of cpu just for the IOs).
Let's answer first that part ..
_________________
idea=`grep -i clue /dev/brain` ; test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer-the-forum
Posted on: 2009/11/6 15:40
Create PDF from Post Print
Top
  •  marty_one
      marty_one
Re: Need information about customizing ISO images
#12
Newbie
Joined: 2009/11/4
From
Posts: 8
Quote:

arrfab wrote:

When you don't specifiy dd= (and so don't use a driver disk), what are you able to see in the disk partitioning step ? No disks at all or two separate volumes ? If so that confirms that it's a "fakeraid", meaning a mix of proprietary software driver to simulate a raid1 controller (and that uses ~10% of cpu just for the IOs).
Let's answer first that part ..


If the driver is not loaded when the boot loader starts, the installer finds two seperate disks sda/sdb. In the older server you have to build the array with the bios utilities. With the newer one you just create the raid config and thats it, no build option, nothing. Even with the kick start software that HP include (which is able to talk to the raid controller) doesnt have an option to build the array. So i'm going to say (based on your descriptions) that it is a fakeraid array.
Posted on: 2009/11/9 0:51
Create PDF from Post Print
Top
  •  marty_one
      marty_one
Re: Need information about customizing ISO images
#13
Newbie
Joined: 2009/11/4
From
Posts: 8
Quote:

AlanJBartlett wrote:
Something to try.

Quote:

<snip>
[ ] modules.cgz 06-Nov-2009 19:33 399K
<snip>

The modules.cgz file contains the driver module. It's a gzip'ed cpio archive, so you could extract the .ko file from it and attempt to use it . . . ?


Well in the modules.cgz archive, there are 4 directories, one for each of the four kernels supported by the driver:

* 2.6.18-128.el5
* 2.6.18-128.el5xen
* 2.6.18-92.el5
* 2.6.18-92.el5xen

Would there be a better chance of it working if I created a new modules.cgz archive with just the .ko for the default kernel that is installed?
Posted on: 2009/11/9 0:55
Create PDF from Post Print
Top
  •  arrfab
      arrfab
Re: Need information about customizing ISO images
#14
Moderator
Joined: 2005/1/3
From /country/belgium
Posts: 859
Quote:

marty_one wrote:
If the driver is not loaded when the boot loader starts, the installer finds two seperate disks sda/sdb. In the older server you have to build the array with the bios utilities. With the newer one you just create the raid config and thats it, no build option, nothing. Even with the kick start software that HP include (which is able to talk to the raid controller) doesnt have an option to build the array. So i'm going to say (based on your descriptions) that it is a fakeraid array.


Okay so now we're sure that it's a fakeraid. Don't even try to load a proprietary binary driver that "emulates" a raid1 and do that directly within Linux with software raid (with mdadm). You'll save yourself time and pains : the problem with such driver (that taints the kernel) is that they are tied to a specific kernel version and so cause you pain when you want to just update your kernel. That problem doesn't occur of course with linux software raid. I've seen also that it's better/faster on the IO level to use the included software raid than a proprietary solution (I migrated two small servers for a customer who wanted to use the proprietary driver and those machines were suffering during work time : iowait , while they were reinstalled using simple linux software raid and work like a charm now)
_________________
idea=`grep -i clue /dev/brain` ; test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer-the-forum
Posted on: 2009/11/9 7:44
Create PDF from Post Print
Top
  •  marty_one
      marty_one
Re: Need information about customizing ISO images
#15
Newbie
Joined: 2009/11/4
From
Posts: 8
Quote:

arrfab wrote:

Okay so now we're sure that it's a fakeraid. Don't even try to load a proprietary binary driver that "emulates" a raid1 and do that directly within Linux with software raid (with mdadm). You'll save yourself time and pains : the problem with such driver (that taints the kernel) is that they are tied to a specific kernel version and so cause you pain when you want to just update your kernel. That problem doesn't occur of course with linux software raid. I've seen also that it's better/faster on the IO level to use the included software raid than a proprietary solution (I migrated two small servers for a customer who wanted to use the proprietary driver and those machines were suffering during work time : iowait , while they were reinstalled using simple linux software raid and work like a charm now)


hmmmm......i think I might have to talk with my manager and HP about the raid card setup and get some more information. These systems that I am using, have in the past had hardware bought that supports redundancy, dual power supplies, raid, etc... This is the first system that we have had with the raid like this.

I guess I will have to lookup some information about the linux software raid setup. Are there any gotchya's with the linux software raid (IE: what happens when one of the drives fails, etc)?
Posted on: 2009/11/9 21:58
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com