Steps for installing the megasr RHEL 7 kmod (RPM) Package

1) Install the megasr-kmod rpm using the following command:

./install_rpm.sh <ahci|isci|ahci_g>

  If megasr rpm is to be installed to claim SCU controller, run  "install_rpm.sh" by typing the following command.
   "install_rpm.sh isci" .
"install_rpm.sh" script is available in the driver package. 
   This will prevent the native/installed isci driver from claiming SCU controller on RHEL 7.

   If megasr rpm is to be installed to claim AHCI controller, run "install_rpm.sh" by typing the following command.
   "install_rpm.sh ahci"
   This will prevent the native achi driver from claiming AHCI controller.

   If megasr rpm is installed to claim the other AHCI controller (configured in RAID mode) on Grantley Server, run "install_rpm.sh" by typing the following command.
   "install_rpm.sh ahci_g"
   This will change the Module load order, so that megasr Driver will be loaded first and claim the AHCI controller which is configured in RAID mode.

 
2) Reboot the system to verify that the driver has been updated.



Steps for upgrading the megasr RHEL 7 kmod (RPM) Package


1) If the OS is installed through RHEL 7 DUD image then to upgrade the megasr Driver, use the following command to upgrade:

	rpm -Uvh kmod-megasr-*.rpm --force

Reboot the system to verify that the driver has been upgraded.

2) If the initial megasr driver is installed through kmod RPM package then also use the following command to upgrade:

	rpm -Uvh kmod-megasr-*.rpm --force

Reboot the system to verify that the driver has been upgraded.

3) Providing megasr DKMS rpm for Supported RHEL 6 & SLES11 OS's is stopped,
	instead megasr KMOD rpms are provided for supported RHEL 6 OS's & megasr KMP rpms are
	provided for supported SLES11 OS's.

	Below are the stepts for upgrading driver with KMP, KMOD rpms on the systems where megasr dkms
	rpm is installed previously,

	Steps are same for RHEL and SLES OS's.
	======================================
	a) Query the installed dkms rpm:
		rpm -qa | grep "megasr-18.0"
		megasr-18.01.2018.0427-1

	b) Remove the installed rpm
		sles11sp3x8664:/tmp/tmp # rpm -e megasr-18.02.2018.0427-1
		-------- Uninstall Beginning --------
		Module:  megasr
		Version: 18.02.2018.0427
		Kernel:  3.0.76-0.11-default (x86_64)
		-------------------------------------
		DKMS: uninstall Completed.

	c) Install kmp module:
		rpm -ivh lsi-megasr-kmp-3.0.76-0.11.sles11SP3.x86_64.rpm

	Verify rpm installation;
		rpm -qa | grep "megasr"
		lsi-megasr-kmp-default-18.01.2018.0604_3.0.76_0.11-1

	Check driver version:
		modinfo megasr | more

		filename:       /lib/modules/3.0.76-0.11-default/updates/megasr.ko
		retpoline:      Y
		license:        LSI Proprietary
		description:    LSI Software RAID5 Driver
		version:        18.01.2018.0604
		author:         LSI Corporation
