Lsi megaraid sas driver linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

megaraid_sas linux driver, out-of-tree module source

License

npf/megaraid_sas

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Out-of-tree megaraid_sas driver version 7.x.y.z for GNU/Linux Debian Stretch and Jessie

Читайте также:  Linux public key file

As of Feb. 12th 2018, the megacli_sas driver version available in Debian Stretch (Linux 4.9) does not support Dell’s H740p raid controller. Neither do Jessie’s (Linux 3.16) and Jessie-backports’ (Linux 4.9) ones.

Dell and Broadcom however provide out-of-tree version of megaraid_sas for some distributions but not Debian.

This repository provides packages ready to be consumed by dkms on Debian systems, as well as binary modules packages for the usual kernel versions.

The driver files (sources) stored in this repository (directory dell and broadcom) can be retrieved again using the fetch.sh script (not needed for building/installing).

WARNING: getting the driver sources requires accepting the terms of distribution of the vendors (distribution agreement). Using the fetch script or the sources or the deb packages (dkms sources or binary drivers) included in this repository requires that you accepted beforehand the vendors conditions. This script is just a helper, provided with no warranty but the trust you can get by reading the scripts before using them and rebuilding everything yourself.

First choose the broadcom or the dell version of driver

$ cd broadcom_07.XXX.XX.XX or cd dell_07.XXX.XX.XX

To install the driver from sources:

$ dkms add ./dkms.conf $ dkms build megaraid_sas/07.XXX.XX.XX $ dkms install megaraid_sas/07.XXX.XX.XX 

To build the binary driver deb package:

$ dkms mkbmdeb megaraid_sas/07.XXX.XX.XX 

To build the dkms deb package:

$ ../dkms mkdeb megaraid_sas/07.XXX.XX.XX 

(Needs to use the dkms script provided in this repository to fix a bug with the mkdeb command, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=832558)

Generated deb files are stored in /var/lib/dkms/megaraid_sas/07.XXX.XX.XX.XX/deb . Files in the deb directory of this repository were copied from there after build.

Getting the packages with apt:

The following line can be added to a Debian sources.list file, in order to provide the generated deb packages stored in this repository:

deb [trusted=yes] https://github.com/npf/megaraid_sas/raw/master/deb / 

Using the driver in the Debian installer:

One can use a preseed file in order to have the last drivers provided here used in the Debian installer, making use of the d-i partman/early_command directive.

Such a preseed file is provided in this repository, and can be used as follows:

  1. when in the Debian installer boot menu, press ESC ;
  2. then type: install preseed/url=https://github.com/npf/megaraid_sas/raw/master/preseed.cfg .

Partman should see the disks. If not, check in the console ( Alt-F2 ) if the modules is indeed loaded ( lsmod , dmesg ). Check for a kernel version mismatch with regard to the files provided here.

Читайте также:  Linux скорость копирования на флешку

One could also setup a PXE netinstall embedding the preseed command to automate everything.

Watch for updates in the linux-stable branches at kernel.org. Current status:

Version 07.702.06.00-rc1 in linux-stable 4.14 but version 06.811.02.00-rc1 in linux-stable 4.9 and linux-stable-rc 4.9

About

megaraid_sas linux driver, out-of-tree module source

Источник

Lsi megaraid sas driver linux

Обновляем данные APT:
# apt-get clean all
# apt-get update

Устанавливаем нужное нам ПО:
# apt-get install build-essential kernel-package libncurses-dev libc6-dev zlib1g-dev linux-source-3.2 dkms debhelper bzip2 unzip linux-headers-3.2.0-4-amd64

Создаем временную рабочую папку:
# mkdir temp; cd temp

Скачиваем исходники драйвера со странички производителя (нам нужен файл Ubuntu_10.10_05.30.zip):
# wget http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/MR_Linux_Driver_6.600.18.00.tgz?source=1 -O MR_Linux_Driver_6.600.18.00.tgz

Распаковываем архив:
# tar xvf MR_Linux_Driver_6.600.18.00.tgz megaraid_sas-06.600.18.00-src.tar.gz
# tar xvf megaraid_sas-06.600.18.00-src.tar.gz

Копируем исходники драйвера:
# cp -va megaraid_sas-06.600.18.00 /usr/src/
# cd /usr/src/
# sed -i ‘/^PACKAGE\_VERSION/ ‘ megaraid_sas-06.600.18.00/dkms.conf
# cd megaraid_sas-06.600.18.00
# patch -p1 < patches/fc17.patch

Собираем пакет с драйвером:
# dkms add -m megaraid_sas -v 06.600.18.00
# dkms build -m megaraid_sas -v 06.600.18.00
# dkms mkdsc -m megaraid_sas -v 06.600.18.00 —source-only
# dkms mkdeb -m megaraid_sas -v 06.600.18.00 —source-only
# cp /var/lib/dkms/megaraid_sas/06.600.18.00/deb/megaraid-sas-dkms_06.600.18.00_all.deb ~/
# rm -rf /var/lib/dkms/megaraid_sas

Устанавливаем драйвер:
# dpkg -i ~/megaraid-sas-dkms_06.600.18.00_all.deb

Теперь перезагружаемся и смотрим, что у нас получилось в итоге:
# modinfo megaraid_sas

Источник

CentOS 8 add a storage driver (megaraid_sas) when booting the installation disk

Any IT here? Help Me!

Installing CentOS 8 in relatively old hardware maybe a real challenge because of an old hardware device like storage, network, or both.
This article shows how to make the CentOS 8 Installation wizard detect the storage – a hardware controller AOC-USAS2LP-H8iR (smc2108 with LSI 2108). Unfortunately, the CentOS 8 (in fact, RHEL 8 removed the support, too) team decided to remove support for the LSI SAS2008/2108/2116 storage controllers by removing the “megaraid_sas” kernel driver. There are still servers in production with similar controllers, which were sold 4-5 years ago from the big vendors such as DELL, HP, and so on.

The method here is to boot the installation CD/USB with modified kernel boot parameters to include an URL link to the installation driver iso (where the megaraid_sas driver is included).

The offered way to load the megaraid_sas (or any other driver) includes:

  1. Use assisted driver update to load an elrepo driver ISO during the first stage of the CentOS 8 Installation Wizard. elrepo is a famous community efford – http://elrepo.org/tiki/tiki-index.php. More on the assited diver update here – https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_an_advanced_rhel_installation/updating-drivers-during-installation_installing-rhel-as-an-experienced-user#performing-an-assisted-driver-update_updating-drivers-during-installation
  2. Configure the network of the server to be able to download the driver ISO in the early stage of the CentOS 8 Installation Wizard. Add boot parameters to set up a valid network configuration.
Читайте также:  Linux поиск узких мест

The installation CD/USB can download an iso with kernel drivers. And of course, to download a file from the Internet a network should be set in the earliest stage of the CentOS 8 installation wizard.
The added string to the boot CD/USB CentOS 8 Installation disk is:

inst.dd=https://elrepo.org/linux/dud/el8/x86_64/dd-megaraid_sas-07.710.50.00-1.el8_2.elrepo.iso ip=10.10.10.10::10.10.10.1:255.255.255.0::enp8s0f0:off nameserver=8.8.8.8

SCREENSHOT 1) Select with the arrows “Install CentOS Linux 8” and hit “TAB” button to edit the boot parameters.

main menu

As shown in the picture just add ” inst.dd=https://elrepo.org/linux/dud/el8/x86_64/dd-megaraid_sas-07.710.50.00-1.el8_2.elrepo.iso ip=10.10.10.10::10.10.10.1:255.255.255.0::enp8s0f0:off nameserver=8.8.8.8″. The “inst.dd” instructs the installation wizard where are the driver ISO located. The “ip” and “nameserver” command just sets a proper network in the early stage of the CentOS 8 Installation wizard to be able to download the driver ISO. Setting the network by these parameters is really important, because the download of the driver iso happens in this early stage of loading the installation wizard. Replace the IP and the whole network configuration if needed.

SCREENSHOT 2) The network is set up and the driver ISO downloaded and the driver megaraid_sas is extraced and loaded in the kernel.

main menu

SCREENSHOT 3) The CentOS 8 installation wizard continues loading the graphical setup after succesful load of the megaraid_sas kernel dirver.

main menu

SCREENSHOT 4) Select the “Installation Destination” to check whether the storage disks are detected.

main menu

SCREENSHOT 5) The two virtual drives in AOC-USAS2LP-H8iR are named starting with “SMC SMC2108”.

main menu

The detected storages are sda and sdc, probably because sdb is reseved by the installation wizard. After installing and booting in the OS there are sda and sdb only.

SCREENSHOT 6) Select the drives to install the CentOS 8 on them.

main menu

One thought on “CentOS 8 add a storage driver (megaraid_sas) when booting the installation disk”

Super useful, far cleaner than alternatives, thank you.. you helped my oVirt/Gluster hyperconverged deployment get off the ground.

Leave a Reply Cancel reply

Find Us

Address
101010010100 Main Street
Earth, EA 101010101010100

E-mail
info@ahelpme.com

Hours (in the TimeBank)
1000000:00:0:00:00 in time…

About This Site

Highly skilled hominins inhabited planet Earth a long long ago! And these hominins have a need to share some knowledge here.

Источник

Оцените статью
Adblock
detector