Upgrading NIC or RAID Controller Card Drivers in Batches
Background
You can use the batch distribution function of SmartKit to upgrade the NIC and RAID controller card drivers at the same time or separately.
Prerequisites
- Ensure that a PC is properly communicating with the OSs of target servers, the IPMI, SNMP, and SSH communication ports are enabled, and the server OS IP addresses can be pinged from the local PC.
- The server whose driver needs to be upgraded has been identified.
- You have obtained the ISO image file of the driver.
Importing OS Devices in Batches
If the server OS is not imported, import the device in advance by referring to Importing OS Devices in Batches. Otherwise, skip this step.
Upgrading the NIC or RAID Controller Card Driver
- You are advised to upgrade the NIC and RAID controller card drivers of one server first. If the upgrade is successful, upgrade the drivers of multiple severs in batches.
- It is recommended that the number of servers to be operated in batches be less than or equal to 50.
- On the Home page, choose Server > Upgrade/Patch Installation > Batch Distribution.
The Batch Distribution wizard window is displayed.
- Click Device Selection. In the device list, select the OS host whose driver needs to be upgraded.
- Click OK to return to the wizard window.
- Click Batch Distribution.
The Batch Distribution page is displayed, as shown in Figure 1-12.
You can set the number of servers that can be operated in batches at the same time in the Number of concurrent tasks (1 to 50) text box. The value ranges from 1 to 50. The default value is 20.
- Select a device and click Config Service.
The Task Configuration page is displayed.
Perform the following operations to configure the driver installation task. The commands in the following task configuration are used as an example. Replace them with the actual paths and image file.
- Add a File Transfer task to upload the iDriver ISO image stored on the local host to the /root/driveriso path on the target host.
Perform the following operations on the task configuration page:
- Select File Transfer from the first drop-down list and click Add a Task.
- Set the parameters by referring to Table 1-10.
Table 1-10 File Transfer parameters
Parameter
Description
Task Name
User-defined, for example, UploadiDriverISO.
Task Description
User-defined, for example, "Upload the iDriver ISO image stored on the local host to the specified directory on the target host OS."
Transfer Direction
Select From Local to Remote.
Local Path
Local path for storing the iDriver ISO image.
Remote Path
Target host path to which the iDriver ISO image is uploaded, for example, /root/driveriso.
Other configuration items
Retain the default values.
- Click Save, and then click OK.
- Add a Command Execution task to create a path for mounting the iDriver ISO image file on the host using the mkdir /mnt/driver command.
Perform the following operations on the task configuration page:
- Select Command Execution from the first drop-down list and click Add a Task.
- Set the parameters by referring to Table 1-11.
Table 1-11 Command Execution parameters
Parameter
Description
Task Name
User-defined, for example, CreateDirectory1.
Task Description
User-defined, for example, "Create a path for mounting the iDriver ISO image file on the host."
Run Directory
Directory to which the command is to be executed on the host. If the command needs to be executed in a specified directory, enter the directory path. Otherwise, this parameter is optional.
Run Command
Command to be executed on the host, for example, mkdir /mnt/driver.
Other configuration items
Retain the default values.
- Click Save, and then click OK.
- Add a Command Execution task to mount the iDriver ISO image by running the mount -o loop command in the /root/driveriso directory on the host.
mount -o loop onboard_driver_*.iso /mnt/driver
- Set Run Directory to /root/driveriso.
- Configure the task by referring to the preceding step. The operations of subsequent Command Execution task are similar and are not described here.
- Add a Command Execution task to create a target path for copying the iDriver ISO image file on the host.
mkdir /root/driver
- Add a Command Execution task to run the cp command on the host to copy the files in the iDriver ISO mounting path to the specified path.
cp -vr /mnt/driver/* /root/driver/
- Add a Command Execution task to perform the upgrade.Each command corresponds to a Command Execution task.Table 1-12 Upgrading the driver
Task
Procedure
Upgrading the RAID controller card
For details about how to manually install the driver, see the onboard_driver_xxx.iso driver file list and manual driver installation guide in the readme file of the iDriver package.
Example:
For Ubuntu 18.04.1:
- MSCC SmartRAID 3152-8i and MSCC SmartHBA 2100-8i RAID controller cards
Run the following command in the /root/driveriso directory on the host:
dpkg -i RAID-PM8204_PM8222-Ubuntu18.04.1-smartpqi-1.2.10-025-aarch64.deb
- SP580 NIC
- Run the following command in the /root/driveriso directory on the host:
dpkg -i NIC-IN200-Ubuntu18.04.1-hinic-2.3.2.1-aarch64.deb
- Run the following command in the /root/driveriso directory on the host:
rmmod hinic;modprobe hinic
- Run the following command in the /root/driveriso directory on the host:
Upgrading the NIC
Upgrading the RAID controller card and NIC simultaneously
- Grant the execute permission on the driver installation script in the /root/driver directory on the host.
chmod +x install.sh
- In the /root/driver directory on the host, run the one-click upgrade script for the NIC and RAID controller card drivers.
./install.sh install all
- MSCC SmartRAID 3152-8i and MSCC SmartHBA 2100-8i RAID controller cards
- If the host needs to be restarted for the new driver to take effect, add a Command Execution task to run the reboot command.
reboot
- After setting the parameters, click Save.
The Batch Distribution page is displayed.
You are advised to click Export on the task configuration page to save the configured service flow to the local host. You can directly import the service flow for subsequent O&M operations.
- Click Run Service.
The service flow starts to be executed, as shown in Figure 1-13.
You can click Stop Service to stop a service flow that is being executed.
- Wait until the execution is complete.Click Export Report to export the service flow execution result report to the local host.
Local path for storing reports: C:\Huawei SmartKit\tools\BatchDistribution\work\report