Host setup
Before setting up the host, NetApp SAN host utilities must be downloaded from the NetApp Support site and installed on the HANA servers. The host utility documentation includes information about additional software that must be installed depending on the FCP HBA used.
The documentation also contains information on multipath configurations that are specific to the Linux version used. This document covers the required configuration steps for SLES 12 SP1 or higher and RHEL 7. 2 or later, as described in the Linux Host Utilities 7.1 Installation and Setup Guide.
Configure multipathing
|
Steps 1 through 6 must be executed on all worker and standby hosts in an SAP HANA multiple-host configuration. |
To configure multipathing, complete the following steps:
-
Run the Linux
rescan-scsi-bus.sh -a
command on each server to discover new LUNs. -
Run the
sanlun lun show
command and verify that all required LUNs are visible. The following example shows thesanlun lun show
command output for a 2+1 multiple-host HANA system with two data LUNs and two log LUNs. The output shows the LUNs and the corresponding device files, such as LUNFC5_data_mnt00001
and the device file/dev/sdag
Each LUN has eight FC paths from the host to the storage controllers.sapcc-hana-tst:~ # sanlun lun show controller(7mode/E-Series)/ device host lun vserver(cDOT/FlashRay) lun-pathname filename adapter protocol size product --------------------------------------------------------------------------------------------------------------- svm1 FC5_log_mnt00002_2 /dev/sdbb host21 FCP 500g cDOT svm1 FC5_log_mnt00002_1 /dev/sdba host21 FCP 500g cDOT svm1 FC5_log_mnt00001_2 /dev/sdaz host21 FCP 500g cDOT svm1 FC5_log_mnt00001_1 /dev/sday host21 FCP 500g cDOT svm1 FC5_data_mnt00002_2 /dev/sdax host21 FCP 1t cDOT svm1 FC5_data_mnt00002_1 /dev/sdaw host21 FCP 1t cDOT svm1 FC5_data_mnt00001_2 /dev/sdav host21 FCP 1t cDOT svm1 FC5_data_mnt00001_1 /dev/sdau host21 FCP 1t cDOT svm1 FC5_log_mnt00002_2 /dev/sdat host21 FCP 500g cDOT svm1 FC5_log_mnt00002_1 /dev/sdas host21 FCP 500g cDOT svm1 FC5_log_mnt00001_2 /dev/sdar host21 FCP 500g cDOT svm1 FC5_log_mnt00001_1 /dev/sdaq host21 FCP 500g cDOT svm1 FC5_data_mnt00002_2 /dev/sdap host21 FCP 1t cDOT svm1 FC5_data_mnt00002_1 /dev/sdao host21 FCP 1t cDOT svm1 FC5_data_mnt00001_2 /dev/sdan host21 FCP 1t cDOT svm1 FC5_data_mnt00001_1 /dev/sdam host21 FCP 1t cDOT svm1 FC5_log_mnt00002_2 /dev/sdal host20 FCP 500g cDOT svm1 FC5_log_mnt00002_1 /dev/sdak host20 FCP 500g cDOT svm1 FC5_log_mnt00001_2 /dev/sdaj host20 FCP 500g cDOT svm1 FC5_log_mnt00001_1 /dev/sdai host20 FCP 500g cDOT svm1 FC5_data_mnt00002_2 /dev/sdah host20 FCP 1t cDOT svm1 FC5_data_mnt00002_1 /dev/sdag host20 FCP 1t cDOT svm1 FC5_data_mnt00001_2 /dev/sdaf host20 FCP 1t cDOT svm1 FC5_data_mnt00001_1 /dev/sdae host20 FCP 1t cDOT svm1 FC5_log_mnt00002_2 /dev/sdad host20 FCP 500g cDOT svm1 FC5_log_mnt00002_1 /dev/sdac host20 FCP 500g cDOT svm1 FC5_log_mnt00001_2 /dev/sdab host20 FCP 500g cDOT svm1 FC5_log_mnt00001_1 /dev/sdaa host20 FCP 500g cDOT svm1 FC5_data_mnt00002_2 /dev/sdz host20 FCP 1t cDOT svm1 FC5_data_mnt00002_1 /dev/sdy host20 FCP 1t cDOT svm1 FC5_data_mnt00001_2 /dev/sdx host20 FCP 1t cDOT svm1 FC5_data_mnt00001_1 /dev/sdw host20 FCP 1t cDOT
-
Run the
multipath -r
andmultipath -ll
command to get the worldwide identifiers (WWIDs) for the device file names.In this example, there are eight LUNs. sapcc-hana-tst:~ # multipath -r sapcc-hana-tst:~ # multipath -ll 3600a098038314e63492b59326b4b786d dm-7 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:2 sdaf 65:240 active ready running |- 20:0:5:2 sdx 65:112 active ready running |- 21:0:4:2 sdav 66:240 active ready running `- 21:0:6:2 sdan 66:112 active ready running 3600a098038314e63492b59326b4b786e dm-9 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:4 sdah 66:16 active ready running |- 20:0:5:4 sdz 65:144 active ready running |- 21:0:4:4 sdax 67:16 active ready running `- 21:0:6:4 sdap 66:144 active ready running 3600a098038314e63492b59326b4b786f dm-11 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:6 sdaj 66:48 active ready running |- 20:0:5:6 sdab 65:176 active ready running |- 21:0:4:6 sdaz 67:48 active ready running `- 21:0:6:6 sdar 66:176 active ready running 3600a098038314e63492b59326b4b7870 dm-13 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:8 sdal 66:80 active ready running |- 20:0:5:8 sdad 65:208 active ready running |- 21:0:4:8 sdbb 67:80 active ready running `- 21:0:6:8 sdat 66:208 active ready running 3600a098038314e63532459326d495a64 dm-6 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:1 sdae 65:224 active ready running |- 20:0:5:1 sdw 65:96 active ready running |- 21:0:4:1 sdau 66:224 active ready running `- 21:0:6:1 sdam 66:96 active ready running 3600a098038314e63532459326d495a65 dm-8 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:3 sdag 66:0 active ready running |- 20:0:5:3 sdy 65:128 active ready running |- 21:0:4:3 sdaw 67:0 active ready running `- 21:0:6:3 sdao 66:128 active ready running 3600a098038314e63532459326d495a66 dm-10 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:5 sdai 66:32 active ready running |- 20:0:5:5 sdaa 65:160 active ready running |- 21:0:4:5 sday 67:32 active ready running `- 21:0:6:5 sdaq 66:160 active ready running 3600a098038314e63532459326d495a67 dm-12 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:7 sdak 66:64 active ready running |- 20:0:5:7 sdac 65:192 active ready running |- 21:0:4:7 sdba 67:64 active ready running `- 21:0:6:7 sdas 66:192 active ready running
-
Edit the
/etc/multipath.conf
file and add the WWIDs and alias names.The example output shows the content of the /etc/multipath.conf
file, which includes alias names for the four LUNs of a 2+1 multiple-host system. If there is no multipath.conf file available, you can create one by running the following command:multipath -T > /etc/multipath.conf
.sapcc-hana-tst:/ # cat /etc/multipath.conf multipaths { multipath { wwid 3600a098038314e63492b59326b4b786d alias svm1-FC5_data_mnt00001_2 } multipath { wwid 3600a098038314e63492b59326b4b786e alias svm1-FC5_data_mnt00002_2 } multipath { wwid 3600a098038314e63532459326d495a64 alias svm1-FC5_data_mnt00001_1 } multipath { wwid 3600a098038314e63532459326d495a65 alias svm1-FC5_data_mnt00002_1 } multipath { wwid 3600a098038314e63492b59326b4b786f alias svm1-FC5_log_mnt00001_2 } multipath { wwid 3600a098038314e63492b59326b4b7870 alias svm1-FC5_log_mnt00002_2 } multipath { wwid 3600a098038314e63532459326d495a66 alias svm1-FC5_log_mnt00001_1 } multipath { wwid 3600a098038314e63532459326d495a67 alias svm1-FC5_log_mnt00002_1 } }
-
Run the
multipath -r
command to reload the device map. -
Verify the configuration by running the
multipath -ll
command to list all the LUNs, alias names, and active and standby paths.The following example output shows the output of a 2+1 multiple-host HANA system with two data and two log LUNs. sapcc-hana-tst:~ # multipath -ll svm1-FC5_data_mnt00001_2 (3600a098038314e63492b59326b4b786d) dm-7 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:2 sdaf 65:240 active ready running |- 20:0:5:2 sdx 65:112 active ready running |- 21:0:4:2 sdav 66:240 active ready running `- 21:0:6:2 sdan 66:112 active ready running svm1-FC5_data_mnt00002_2 (3600a098038314e63492b59326b4b786e) dm-9 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:4 sdah 66:16 active ready running |- 20:0:5:4 sdz 65:144 active ready running |- 21:0:4:4 sdax 67:16 active ready running `- 21:0:6:4 sdap 66:144 active ready running svm1-FC5_data_mnt00001_1 (3600a098038314e63532459326d495a64) dm-6 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:1 sdae 65:224 active ready running |- 20:0:5:1 sdw 65:96 active ready running |- 21:0:4:1 sdau 66:224 active ready running `- 21:0:6:1 sdam 66:96 active ready running svm1-FC5_data_mnt00002_1 (3600a098038314e63532459326d495a65) dm-8 NETAPP,LUN C-Mode size=1.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:3 sdag 66:0 active ready running |- 20:0:5:3 sdy 65:128 active ready running |- 21:0:4:3 sdaw 67:0 active ready running `- 21:0:6:3 sdao 66:128 active ready running svm1-FC5_log_mnt00001_2 (3600a098038314e63492b59326b4b786f) dm-11 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:6 sdaj 66:48 active ready running |- 20:0:5:6 sdab 65:176 active ready running |- 21:0:4:6 sdaz 67:48 active ready running `- 21:0:6:6 sdar 66:176 active ready running svm1-FC5_log_mnt00002_2 (3600a098038314e63492b59326b4b7870) dm-13 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:8 sdal 66:80 active ready running |- 20:0:5:8 sdad 65:208 active ready running |- 21:0:4:8 sdbb 67:80 active ready running `- 21:0:6:8 sdat 66:208 active ready running svm1-FC5_log_mnt00001_1 (3600a098038314e63532459326d495a66) dm-10 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:5 sdai 66:32 active ready running |- 20:0:5:5 sdaa 65:160 active ready running |- 21:0:4:5 sday 67:32 active ready running `- 21:0:6:5 sdaq 66:160 active ready running svm1-FC5_log_mnt00002_1 (3600a098038314e63532459326d495a67) dm-12 NETAPP,LUN C-Mode size=500G features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 alua' wp=rw `-+- policy='service-time 0' prio=50 status=active |- 20:0:4:7 sdak 66:64 active ready running |- 20:0:5:7 sdac 65:192 active ready running |- 21:0:4:7 sdba 67:64 active ready running `- 21:0:6:7 sdas 66:192 active ready running