Installing and Uninstalling the MZ522 Drivers in Linux
The following describes how to install and uninstall the MZ522 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 MZ522 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-209.
To install the drivers, perform the following steps:
- Copy the RPM driver 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-210.
- 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