Note: nvme-stas is supported on SUSE Linux Enterprise 15, Service Pack 4 and later.
High level steps for automated discovery are as follows:
- Install prerequisites and nvme-stas on the Linux host.
- Optional: Identify any advanced settings that may need to be modified for your solution.
- Configure CDC IPs manually if the host and CDC IP are not on the same subnet.
- Install prerequisites and nvme-stas on the Linux host.
- Ensure nvme-stas package dependencies are handled automatically by zypper using the steps recommended by SUSE to configure an OS repository: How to add SLES repository on SLES server
- Install nvme-stas, avahi, and nvme-cli with the zypper in nvme-stas avahi nvme-cli command. Enter y when prompted to continue.
Note: nvme-cli is installed as it can be useful in troubleshooting scenarios.
lin02:/ # zypper in nvme-stas avahi nvme-cli
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 4 NEW packages are going to be installed:
avahi nss-mdns nvme-cli nvme-stas
4 new packages to install.
Overall download size: 787.0 KiB. Already cached: 0 B. After the operation, additional 1.7 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package avahi-0.8-150400.5.73.x86_64 (1/4), 136.6 KiB (431.3 KiB unpacked)
Retrieving: avahi-0.8-150400.5.73.x86_64.rpm ..........[done]
Retrieving package nss-mdns-0.14.1-150400.8.6.x86_64 (2/4), 39.7 KiB (132.0 KiB unpacked)
Retrieving: nss-mdns-0.14.1-150400.8.6.x86_64.rpm .....[done]
Retrieving package nvme-cli-2.0-150400.1.6.x86_64 (3/4), 558.7 KiB (959.9 KiB unpacked)
Retrieving: nvme-cli-2.0-150400.1.6.x86_64.rpm ........[done]
Retrieving package nvme-stas-1.0-150400.1.14.x86_64 (4/4), 52.0 KiB (179.2 KiB unpacked)
Retrieving: nvme-stas-1.0-150400.1.14.x86_64.rpm ......[done]
(...)
Checking for file conflicts: ......[done]
(1/4) Installing: avahi-0.8-150400.5.73.x86_64 ................[done]
(2/4) Installing: nss-mdns-0.14.1-150400.8.6.x86_64 ...........[done]
(3/4) Installing: nvme-cli-2.0-150400.1.6.x86_64 ..............[done]
(4/4) Installing: nvme-stas-1.0-150400.1.14.x86_64 ............[done]
lin02:/# - Verify NVMe services are Active.
- Verify that stafd, stacd, and avahi-daemon are enabled with the systemctl status stafd stacd avahi-daemon command.
lin02:/ # systemctl status stafd stacd avahi-daemon
o stafd.service - STorage Appliance Finder (STAF)
Loaded: loaded (/usr/lib/systemd/system/stafd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2022-07-18 07:23:30 CDT; 2min 45s ago
(…)
o stacd.service - STorage Appliance Connector (STAC)
Loaded: loaded (/usr/lib/systemd/system/stacd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2022-07-18 07:23:30 CDT; 2min 45s ago
(…)
o avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-07-18 07:23:30 CDT; 2min 45s ago
(truncated)
- Verify that stafd, stacd, and avahi-daemon are enabled with the systemctl status stafd stacd avahi-daemon command.
- Check advanced settings in the nvme-stas documentation, such as I/O controller connection management. Some parameters may need to be modified to better suit the solution. To see the full list of editable parameters in the stafd and stacd files, view the man pages, or select the documentation for your nvme-stas version here: https://nvme-stas.readthedocs.io.
- If the Linux host and CDC IP are not on the same subnet, specify the CDC IP addresses in the /etc/stas/stafd.conf file using the controller command.
lin02:/ # vi /etc/stas/stafd.conf
. . .
controller=transport=tcp;traddr=172.18.23.250;trsvcid=8009 controller=transport=tcp;traddr=172.18.24.250;trsvcid=8009 - To load the changes into the corresponding process, run the systemctl reload stafd.conf command.
lin02:/ # systemctl reload stafd.conf
lin02:/ #