beautypg.com

Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 28

background image

LSI Corporation

- 28 -

MegaRAID SAS Device Driver Installation User Guide

December 2012

Chapter 6: FreeBSD Driver Installation

Installing the FreeBSD OS on Storage Managed by a MegaRAID Controller (Primary Storage)

6.4.2

Installing the FreeBSD OS on Storage Managed by a MegaRAID Controller

Use the following procedure if your boot unit will be managed by the MegaRAID controller.

The prerequisite for this procedure is an OS installation CD for the FreeBSD 7.4, FreeBSD 8.2, or FreeBSD 9.0 OSs (x86 or
amd64).

Perform the following steps to install the FreeBSD OS on storage managed by a MegaRAID controller:

1.

Disconnect all SCSI, ATA, and SAS devices in the system, except for the CD or the DVD, and the hard drives that are
connected to the MegaRAID controller.

2.

Create the RAID virtual drives on the MegaRAID controller using WebBIOS or Preboot CLI.

3.

Insert the FreeBSD Installation disk to CD/DVD drive and boot from it.

4.

At the FreeBSD boot menu, select Escape to loader prompt (option 6 in the FreeBSD 7.x and 8.x OSs, and
option 2 in the FreeBSD 9.x OS).

5.

Insert the diskette containing the driver_name.ko module for the specific version of the FreeBSD OS into the
diskette drive.

For the mfi driver, the driver_name.ko is mfi.ko.

For the mrsas driver, the driver_name.ko is mrsas.ko.

6.

Perform the following steps at the loader prompt:

a.

To disable the mpt driver, type the following commands and press Enter.

OK set hint.mpt.0.disable=1

OK set hint.mpt.1.disable=1

b.

To load a new driver from a diskette drive, type either of the following two commands and press Enter.

For the mfi driver, type the following command and press Enter:

OK load disk0:mfi.ko

For the mrsas driver, type the following command and press Enter:

OK load disk0:mrsas.ko

7.

To continue the installation procedure, type the following command, and press Enter.

OK boot

8.

Install the FreeBSD OS, including the kernel source.

It is very important to include the kernel source files.

9.

Remove both the FreeBSD installation disk from the CD/DVD drive, and the floppy disk from the floppy drive, and
reboot.

10. On bootup, repeat step

4

through step

7

.

NOTE This procedure is specific to the FreeBSD 7.4, FreeBSD 8.2, or FreeBSD 9.0 OSs because it requires a
compiled module. For other versions of a FreeBSD OS for which a compiled module is not supplied by LSI, you
must compile your own module from source files. See

Section 6.6.2, Compiling and Loading the Driver as a

Module by Using kldload (Dynamically Loadable Module)

.

NOTE If you have multiple units or devices for the OS installation, and the unit or device that you want
to use for the installation is not disk0; change disk0 to the appropriate number, such as disk1
or disk5.

NOTE At this point the old driver is not used, but it is still installed as a part of the new installation. The
installed kernel has to be rebuilt.