NAS:VMWare SRP Guide: Difference between revisions
Line 16: | Line 16: | ||
== '''RedHat/CentOS SRP Target Server Setup''' == | == '''RedHat/CentOS 7.3 SRP Target Server Setup''' == | ||
These instructions are meant to be used with: | These instructions are meant to be used with: | ||
SCST 3.2.x (latest stable branch) as well as Mellanox OFED Drivers 3.4.2 (latest) ''[as the time of writing]'' | |||
Driver Download Page | They should be viable for Mellanox ConnectX-2/3/4 Adapters, with or without an Infiniband Switch. | ||
The basic order you want to do things in is: Install your base OS, and update it to current. Recommendation is Minimal OS installation. Highly recommended on OS installation that, you do NOT add any of the Infiniband or iSCSI packages that come with the OS. I can't guarantee they wont get in the way somewhere down the line. There may be some development type packages that show up as missing/required when making/installing, add them manually, and retry the step. | |||
Mellanox OFED Driver Download Page | |||
http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers | http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers | ||
Driver Direct Download Link for RHEL/CentOS 7.3 x64 (Latest w/ OFED) | My Driver Direct Download Link for RHEL/CentOS 7.3 x64 (Latest w/ OFED) | ||
http://www.mellanox.com/page/mlnx_ofed_eula?mtag=linux_sw_drivers&mrequest=downloads&mtype=ofed&mver=MLNX_OFED-3.4-2.0.0.0&mname=MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3-x86_64.tgz | http://www.mellanox.com/page/mlnx_ofed_eula?mtag=linux_sw_drivers&mrequest=downloads&mtype=ofed&mver=MLNX_OFED-3.4-2.0.0.0&mname=MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3-x86_64.tgz | ||
'''Step 1:''' Install the prerequisite packages required by the Mellanox OFED Driver package | '''Step 1:''' Install the prerequisite packages required by the Mellanox OFED Driver package | ||
{{Console|1=yum install tcl tk -y}} | {{Console|1= | ||
[root@NAS01 ~]$ yum install tcl tk -y | |||
}} | |||
'''Step 2:''' Download the Mellanox OFED drivers (.tgz version for this guide), and put them in /tmp | '''Step 2:''' Download the Mellanox OFED drivers (.tgz version for this guide), and put them in /tmp | ||
{{Console|1= | |||
[root@NAS01 ~]$ cd /tmp | |||
[root@NAS01 ~]$ tar xvf MLNX_OFED_LINUX-3.4-2.0.0.0-<span style="color:#555">rhel7.3-x86_64.tgz</span> | |||
[root@NAS01 ~]$ cd /MLNX_OFED_LINUX-3.4-2.0.0.0-<span style="color:#555">rhel7.3-x86_64</span> | |||
}} | |||
'''NOTE:''' If you just run the '''./mnlxofedinstall''' script, with the latest & greatest RedHat/CentOS kernel, you will fail 'later down the road' in the SCST installation, specifically in the ib_srpt module, which is required for this exercise. | '''NOTE:''' If you just run the '''./mnlxofedinstall''' script, with the latest & greatest RedHat/CentOS kernel, you will fail 'later down the road' in the SCST installation, specifically in the ib_srpt module, which is required for this exercise. | ||
'''Step 3:''' Initially run the '''mlnxofedinstall''' script with the '''--add-kernel-support''' flag '''(REQUIRED)''' | |||
{{Console|1= | |||
[root@NAS01 ~]$ ./mlnxofedinstall --add-kernel-support --without-fw-update | |||
}} | |||
'''NOTE:''' This will actually take the installation package, and use it to rebuild an entirely new installation package, customized for your specific Linux kernel. Note the name and location of the new .tgz package it creates. | |||
'''Step 4:''' Extract the new package that was just created, customized for your Linux kernel. | |||
{{Console|1= | {{Console|1= | ||
[root@NAS01 ~]$ cd /tmp | [root@NAS01 ~]$ cd /tmp/MLNX_OFED_LINUX-3.4-2.0.0.0-<span style="color:#555">3.10.0-514.el7.x86_64</span>/ | ||
[root@NAS01 ~]$ tar xvf MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3- | [root@NAS01 ~]$ tar xvf MLNX_OFED_LINUX-3.4-2.0.0.0-<span style="color:#555">rhel7.3-ext.tgz</span> | ||
[root@NAS01 ~]$ cd | [root@NAS01 ~]$ cd MLNX_OFED_LINUX-<span style="color:#555">3.4-2.0.0.0-rhel7.3-ext</span> | ||
}} | }} | ||
'''NOTE:''' In my example I'm using the RedHat 7.3 OFED Driver, so <span style="color:#555">my file names may differ from yours.Look for the -ext suffix before the .tgz extension.</span> | |||
'''Step 5:''' Now we can run the Mellanox OFED installation script | |||
{{Console|1= | {{Console|1= | ||
[root@NAS01 ~]$ ./mlnxofedinstall | [root@NAS01 ~]$ ./mlnxofedinstall | ||
}} | }} |
Revision as of 16:29, 23 January 2017
VMware SRP Guide
This wiki is meant to help people get Infiniband SRP Target working under RedHat/CentOS 7.3 to VMWare ESXi 6.0x SRP Initiator. (although the process should work under any RHEL / CentOS 7.x build)
This guide should cover all of the steps from Mellanox OFED Driver compiling/installing/configuring, to SCST compiling/installing, to adding ZFS on Linux (ZoL), and finally configuring the SCST with all of the above. As well as the few ESX steps required to remove all of the inband drivers, install the OFED drivers, and be an active SRP initiator.
Not all of these steps are required for everyone, but i'm sure *someone* will appreciate them all together in one place :)
For the purposes of this guide, the syntax assumes you are always logged in as 'root', or have equiv privileges.
VMware ESX 6.0x SRP Initiator Setup
RedHat/CentOS 7.3 SRP Target Server Setup
These instructions are meant to be used with: SCST 3.2.x (latest stable branch) as well as Mellanox OFED Drivers 3.4.2 (latest) [as the time of writing]
They should be viable for Mellanox ConnectX-2/3/4 Adapters, with or without an Infiniband Switch.
The basic order you want to do things in is: Install your base OS, and update it to current. Recommendation is Minimal OS installation. Highly recommended on OS installation that, you do NOT add any of the Infiniband or iSCSI packages that come with the OS. I can't guarantee they wont get in the way somewhere down the line. There may be some development type packages that show up as missing/required when making/installing, add them manually, and retry the step.
Mellanox OFED Driver Download Page
http://www.mellanox.com/page/products_dyn?product_family=26&mtag=linux_sw_drivers
My Driver Direct Download Link for RHEL/CentOS 7.3 x64 (Latest w/ OFED) http://www.mellanox.com/page/mlnx_ofed_eula?mtag=linux_sw_drivers&mrequest=downloads&mtype=ofed&mver=MLNX_OFED-3.4-2.0.0.0&mname=MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3-x86_64.tgz
Step 1: Install the prerequisite packages required by the Mellanox OFED Driver package
# [root@NAS01 ~]$ yum install tcl tk -y |
Step 2: Download the Mellanox OFED drivers (.tgz version for this guide), and put them in /tmp
# [root@NAS01 ~]$ cd /tmp
[root@NAS01 ~]$ tar xvf MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3-x86_64.tgz [root@NAS01 ~]$ cd /MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3-x86_64 |
NOTE: If you just run the ./mnlxofedinstall script, with the latest & greatest RedHat/CentOS kernel, you will fail 'later down the road' in the SCST installation, specifically in the ib_srpt module, which is required for this exercise.
Step 3: Initially run the mlnxofedinstall script with the --add-kernel-support flag (REQUIRED)
# [root@NAS01 ~]$ ./mlnxofedinstall --add-kernel-support --without-fw-update |
NOTE: This will actually take the installation package, and use it to rebuild an entirely new installation package, customized for your specific Linux kernel. Note the name and location of the new .tgz package it creates.
Step 4: Extract the new package that was just created, customized for your Linux kernel.
# [root@NAS01 ~]$ cd /tmp/MLNX_OFED_LINUX-3.4-2.0.0.0-3.10.0-514.el7.x86_64/
[root@NAS01 ~]$ tar xvf MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3-ext.tgz [root@NAS01 ~]$ cd MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.3-ext |
NOTE: In my example I'm using the RedHat 7.3 OFED Driver, so my file names may differ from yours.Look for the -ext suffix before the .tgz extension.
Step 5: Now we can run the Mellanox OFED installation script
# [root@NAS01 ~]$ ./mlnxofedinstall |