Installing and Uninstalling the MZ520 Drivers in Linux
This section uses RHEL 7.2 as an example. For details about the configuration on other OSs, see the OS documentation provided by the OS vendors.
The following describes how to install and uninstall the MZ520 drivers in RHEL 7.2 as an example.
For details about how to download the driver software package, see Installing Drivers and Firmware > Preparing for Installation in Huawei Server OS Installation Guide.
The MZ520 drivers in Linux include the Ethernet driver (bnx2x), FCoE driver (bnx2fc), iSCSI driver (bnx2i), and cNIC driver (cnic). Run the modinfo command to view the driver version information, as shown in Figure 4-220.
To install the drivers, perform the following steps:
- Use KVM over IP to mount the RPM driver packages to the computer node and copy the packages (for example, kmod-netxtreme2-7.14.15-1.rhel7u2.x86_64.rpm) to the OS.
- Go to the directory where the RPM driver packages are stored, and run the rpm -ivh command to install the packages. See Figure 4-221.
- Run the modprobe command to reload the drivers.
# modprobe -r bnx2x # modprobe -r bnx2fc # modprobe -r bnx2i # modprobe -r cnic # modprobe bnx2x # modprobe bnx2fc # modprobe bnx2i # modprobe cnic
Reloading the drivers will cause network interruption.
To uninstall the drivers, perform the following steps:
- Run the rpm command to uninstall the drivers.
# rpm -e kmod-netxtreme2
- Run the modprobe command to reload the drivers.
# modprobe -r bnx2x # modprobe -r bnx2fc # modprobe -r bnx2i # modprobe -r cnic # modprobe bnx2x # modprobe bnx2fc # modprobe bnx2i # modprobe cnic