[go: up one dir, main page]

CN113064877B - Big data interaction method and system for server multi-level management unit - Google Patents

Big data interaction method and system for server multi-level management unit Download PDF

Info

Publication number
CN113064877B
CN113064877B CN202110329827.7A CN202110329827A CN113064877B CN 113064877 B CN113064877 B CN 113064877B CN 202110329827 A CN202110329827 A CN 202110329827A CN 113064877 B CN113064877 B CN 113064877B
Authority
CN
China
Prior art keywords
level
bmc
usb device
level bmc
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110329827.7A
Other languages
Chinese (zh)
Other versions
CN113064877A (en
Inventor
曲勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110329827.7A priority Critical patent/CN113064877B/en
Publication of CN113064877A publication Critical patent/CN113064877A/en
Application granted granted Critical
Publication of CN113064877B publication Critical patent/CN113064877B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/188Virtual file systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a big data interaction method and a big data interaction system for a server multi-level management unit, wherein the method comprises the steps of establishing a virtual disk and a file system at a second-level BMC (baseboard management controller) end and mounting the file system; the second-level BMC creates a virtual USB device and redirects the USB device to the first-level BMC; and copying data between the first-level BMC and the second-level BMC based on the virtual USB device. The invention uses the memory of the second-level BMC to register the virtual USB device and redirect to the Host end (the first-level management unit), and the first-level BMC can directly copy the big data file to the memory of the second-level BMC like accessing the memory space of the first-level BMC, thereby realizing the high-efficiency interaction of the big data file between the two-level management units. Through actual measurement, the data interaction time of the scheme is shorter than 30 seconds, and compared with the time consumption of the existing I2C, the transmission rate is obviously improved.

Description

一种服务器多级管理单元大数据交互方法及系统Big data interaction method and system for server multi-level management unit

技术领域technical field

本发明涉及服务器数据交互技术领域,尤其是一种服务器多级管理单元大数据交互方法及系统。The invention relates to the technical field of server data interaction, in particular to a large data interaction method and system of a server multi-level management unit.

背景技术Background technique

BMC(Baseboard Management Controller,基板管理控制器)是服务器系统的管理单元,其主要功能为服务器硬件监控与故障告警、散热调速、电源管理及固件升级等。通用服务器主板上一般只设置第一级管理单元,而在池化服务器系统上多设置第二级管理单元,第一级管理单元与第二级管理单元间往往需要进行日志文件、固件镜像等大数据交互,其大数据交互方式关乎多级管理单元间管理效率的提升。BMC (Baseboard Management Controller, Baseboard Management Controller) is the management unit of the server system. Its main functions are server hardware monitoring and fault alarm, heat dissipation speed regulation, power management and firmware upgrade, etc. Generally, only the first-level management unit is set on the general-purpose server motherboard, while the second-level management unit is usually set up on the pooled server system, and the first-level management unit and the second-level management unit often need to perform large-scale operations such as log files and firmware mirroring. Data interaction, the big data interaction method is related to the improvement of management efficiency between multi-level management units.

现有方案中多级管理单元间大数据交互多是通过I2C交互。硬件设计时需要将两级管理单元间的I2C信号接到一起,两级管理单元大数据交互时直接通过I2C读写或IPMB(Intelligent Platform Management Bus,智能平台管理总线)接口协议进行通信。In the existing solution, the big data interaction between multi-level management units is mostly through I2C interaction. During hardware design, it is necessary to connect the I2C signals between the two-level management units. When the two-level management units interact with each other, they can directly communicate through I2C reading and writing or IPMB (Intelligent Platform Management Bus, Intelligent Platform Management Bus) interface protocol.

现有交互方案传输效率低,大数据需分段多次传输,受限于驱动中中断等待等处理过程,实际传输速率远远达不到设置的I2C频率,实测32M数据传输时间约15分钟,传输速率慢。The transmission efficiency of existing interactive schemes is low, and large data needs to be transmitted multiple times in segments. Due to the limitation of processing such as interruption and waiting in the drive, the actual transmission rate is far below the set I2C frequency. The measured 32M data transmission time is about 15 minutes. The transfer rate is slow.

发明内容Contents of the invention

本发明提供了一种服务器多级管理单元大数据交互方法及系统,用于解决现有数据交互速率低的问题。The invention provides a large data interaction method and system of a multi-level management unit of a server, which are used to solve the problem of low data interaction rate in the prior art.

为实现上述目的,本发明采用下述技术方案:To achieve the above object, the present invention adopts the following technical solutions:

本发明第一方面提供了一种服务器多级管理单元大数据交互方法,所述方法包括以下步骤:The first aspect of the present invention provides a method for interacting with large data of a server multi-level management unit, and the method includes the following steps:

在第二级BMC端创建虚拟磁盘及文件系统,并将文件系统挂载;Create a virtual disk and file system on the second-level BMC, and mount the file system;

第二级BMC创建虚拟的USB设备,并将USB设备重定向至第一级BMC;The second-level BMC creates a virtual USB device and redirects the USB device to the first-level BMC;

基于所述虚拟的USB设备,进行第一级BMC与第二级BMC间的数据拷贝。Based on the virtual USB device, data copying between the first-level BMC and the second-level BMC is performed.

进一步地,在所述步骤第二级BMC端创建虚拟磁盘之前还包括步骤:Further, steps are also included before creating a virtual disk at the second-level BMC end of the step:

建立两级BMC之间USB端口的硬件连接。Establish the hardware connection of the USB port between the two levels of BMCs.

进一步地,在第二级BMC端创建虚拟磁盘及文件系统,并将文件系统挂载的具体过程为:Further, the specific process of creating a virtual disk and a file system on the second-level BMC side and mounting the file system is as follows:

用指定大小的块拷贝文件,并在拷贝的同时进行指定的转换;Copies the file in blocks of the specified size, and performs the specified transformation while copying;

创建DOS文件系统;Create a DOS file system;

将所述文件系统挂载至/var/usb0路径下。Mount the file system to the /var/usb0 path.

进一步地,所述第二级BMC创建虚拟的USB设备,并将USB设备重定向至第一级BMC的具体过程为:Further, the second-level BMC creates a virtual USB device, and the specific process of redirecting the USB device to the first-level BMC is:

加载USB驱动程序,获取并填充USB描述符,将系统文件所在路径注册陈虚拟USB设备;Load the USB driver, obtain and fill the USB descriptor, and register the path of the system file as a virtual USB device;

发送USB连接指令,进行USB设备的重定向。Send a USB connection command to redirect the USB device.

进一步地,所述步骤进行USB设备的重定向之后还包括:Further, after the steps carry out the redirection of the USB device, it also includes:

第一级BMC端驱动识别所述USB设备,并将所述USB设备挂载至第一级BMC端的/var/usb0目录下。The first-level BMC driver identifies the USB device, and mounts the USB device to the /var/usb0 directory of the first-level BMC.

进一步地,所述基于所述虚拟的USB设备,进行第一级BMC与第二级BMC间的数据拷贝包括第一级BMC向第二级BMC的数据拷贝和第二级BMC向第一级BMC的数据拷贝。Further, said copying data between the first-level BMC and the second-level BMC based on the virtual USB device includes copying data from the first-level BMC to the second-level BMC and from the second-level BMC to the first-level BMC data copy.

进一步地,所述第一级BMC向第二级BMC的数据拷贝的具体过程为:Further, the specific process of data copying from the first-level BMC to the second-level BMC is:

第一级BMC将要交互的数据文件拷贝至/var/usb0目录下;The first-level BMC copies the data files to be interacted with to the /var/usb0 directory;

执行sync指令,将磁盘缓冲的所有数据写入第二级BMC的磁盘。Execute the sync command to write all the data buffered in the disk to the disk of the second-level BMC.

进一步地,所述第二级BMC向第一级BMC的数据拷贝的具体过程为:Further, the specific process of copying data from the second-level BMC to the first-level BMC is:

第二级BMC将要交互的数据文件拷贝至USB虚拟磁盘;The second-level BMC copies the data files to be interacted with to the USB virtual disk;

将所述虚拟磁盘内的数据文件挂载至第一级BMC。Mount the data files in the virtual disk to the first-level BMC.

进一步地,在完成数据拷贝之后,还包括步骤:Further, after the data copy is completed, further steps are included:

卸载虚拟BMC设备,处理/var/usb0目录下接收的数据文件,释放内存空间。Uninstall the virtual BMC device, process the data files received in the /var/usb0 directory, and release the memory space.

本发明第二方面提供了一种服务器多级管理单元大数据交互系统,包括第一级BMC和第二级BMC,所述第一级BMC包括指令发送单元和数据发送单元,所述指令发送单元用于向第二级BMC发送操作指令,所述数据发送单元用于向第二级BMC发送数据;所述第二级BMC包括设备创建单元,所述设备创建单元基于所述指令发送单元的指令,在第二级BMC端创建虚拟USB设备,并将USB设备重定向至第一级BMC,所述虚拟USB设备用于接收第一级BMC发送的数据。The second aspect of the present invention provides a server multi-level management unit big data interaction system, including a first-level BMC and a second-level BMC, the first-level BMC includes an instruction sending unit and a data sending unit, and the instruction sending unit For sending operation instructions to the second-level BMC, the data sending unit is used to send data to the second-level BMC; the second-level BMC includes a device creation unit, and the device creation unit is based on the instruction of the instruction sending unit , creating a virtual USB device on the second-level BMC, and redirecting the USB device to the first-level BMC, where the virtual USB device is used to receive data sent by the first-level BMC.

发明内容中提供的效果仅仅是实施例的效果,而不是发明所有的全部效果,上述技术方案中的一个技术方案具有如下优点或有益效果:The effects provided in the summary of the invention are only the effects of the embodiments, rather than all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

本发明用第二级BMC的内存注册虚拟USB设备并重定向到Host端(第一级管理单元),第一级BMC可以像访问自身内存空间那样,直接将大数据文件拷贝至第二级BMC的内存中,从而实现两级管理单元间大数据文件的高效交互。经实测,利用本方案的数据交互时间小于30秒,相比于现有I2C的用时,传输速率得到了显著提高。同时在多级管理单元之间只有一路I2C通信的情况下可降低因大数据交互时间过长引发的散热风险,提升了系统稳健性。The present invention registers the virtual USB device with the memory of the second-level BMC and redirects it to the Host end (the first-level management unit). The first-level BMC can directly copy large data files to the second-level BMC as accessing its own memory space. memory, so as to realize the efficient interaction of large data files between the two management units. According to the actual measurement, the data interaction time using this solution is less than 30 seconds, and the transmission rate has been significantly improved compared with the existing I2C. At the same time, when there is only one I2C communication between multi-level management units, it can reduce the heat dissipation risk caused by the long interaction time of big data, and improve the system robustness.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings on the premise of not paying creative work.

图1是本发明所述方法的示意图;Fig. 1 is a schematic diagram of the method of the present invention;

图2是本发明所述系统的结构示意图。Fig. 2 is a schematic structural diagram of the system of the present invention.

具体实施方式Detailed ways

为能清楚说明本方案的技术特点,下面通过具体实施方式,并结合其附图,对本发明进行详细阐述。下文的公开提供了许多不同的实施例或例子用来实现本发明的不同结构。为了简化本发明的公开,下文中对特定例子的部件和设置进行描述。此外,本发明可以在不同例子中重复参考数字和/或字母。这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施例和/或设置之间的关系。应当注意,在附图中所图示的部件不一定按比例绘制。本发明省略了对公知组件和处理技术及工艺的描述以避免不必要地限制本发明。In order to clearly illustrate the technical features of this solution, the present invention will be described in detail below through specific implementation modes and in conjunction with the accompanying drawings. The following disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in different instances. This repetition is for the purpose of simplicity and clarity and does not in itself indicate a relationship between the various embodiments and/or arrangements discussed. It should be noted that components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted herein to avoid unnecessarily limiting the present invention.

如图1所示,本发明一种服务器多级管理单元大数据交互方法,包括以下步骤:As shown in Figure 1, a method for interacting with big data of a server multi-level management unit in the present invention comprises the following steps:

S1,在第二级BMC端创建虚拟磁盘及文件系统,并将文件系统挂载;S1, create a virtual disk and a file system on the second-level BMC side, and mount the file system;

S2,第二级BMC创建虚拟的USB设备,并将USB设备重定向至第一级BMC;S2, the second-level BMC creates a virtual USB device, and redirects the USB device to the first-level BMC;

S3,基于所述虚拟的USB设备,进行第一级BMC与第二级BMC间的数据拷贝。S3. Based on the virtual USB device, copy data between the first-level BMC and the second-level BMC.

在所述步骤S1之前还包括步骤:建立两级BMC之间USB端口的硬件连接。具体为将第二级管理单元BMC的USB PortA与第一级管理单元BMC的USB PortB连接到一起,同时在数据线缆中增加该信号。Before the step S1, a step is also included: establishing a hardware connection of the USB port between the two levels of BMCs. Specifically, the USB PortA of the second-level management unit BMC is connected with the USB PortB of the first-level management unit BMC, and the signal is added to the data cable.

步骤S1中,一级BMC通过I2C给二级BMC发送IPMI指令-Create Image,第二级BMC执行创建虚拟磁盘及文件系统,并将文件系统挂载的操作,具体包括执行dd if=/dev/zeroof="/var/usb.img"bs=64K count=1K,实现用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的转换;执行mkdosfs-S 512-cIn step S1, the first-level BMC sends the IPMI command-Create Image to the second-level BMC through I2C, and the second-level BMC executes the operation of creating a virtual disk and a file system, and mounting the file system, specifically including executing dd if=/dev/ zeroof="/var/usb.img" bs=64K count=1K, realize copying a file with blocks of specified size, and perform specified conversion while copying; execute mkdosfs -S 512-c

/var/usb.img,实现DOS文件系统的创建;执行mount/var/usb.img/var/usb0,将文件系统挂载至/var/usb0路径下。/var/usb.img, realize the creation of DOS file system; execute mount/var/usb.img/var/usb0, mount the file system to the path of /var/usb0.

步骤S2的具体过程为:一级BMC通过I2C给二级BMC发送IPMI指令-StartRedirection,二级BMC收到指令后加载USB驱动程序,然后发送驱动指令获取设备信息(描述符),填充USB描述符,将/var/usb.img注册成虚拟USB设备,然后发送USB Connect指令实现USB设备重定向。Host端USB驱动会自动识别USB设备,并将该设备挂载到Host端/var/usb0目录下。The specific process of step S2 is: the first-level BMC sends the IPMI instruction-StartRedirection to the second-level BMC through I2C, and the second-level BMC loads the USB driver after receiving the instruction, then sends the driver instruction to obtain device information (descriptor), and fills the USB descriptor , register /var/usb.img as a virtual USB device, and then send the USB Connect command to realize USB device redirection. The USB driver on the Host side will automatically recognize the USB device and mount the device to the /var/usb0 directory on the Host side.

步骤S3中,基于虚拟的USB设备,进行第一级BMC与第二级BMC间的数据拷贝包括第一级BMC向第二级BMC的数据拷贝和第二级BMC向第一级BMC的数据拷贝。In step S3, based on the virtual USB device, data copying between the first-level BMC and the second-level BMC includes data copying from the first-level BMC to the second-level BMC and data copying from the second-level BMC to the first-level BMC .

所述第一级BMC向第二级BMC的数据拷贝的具体过程为:第一级BMC将要交互的数据文件拷贝至/var/usb0目录下;执行sync指令,将磁盘缓冲的所有数据写入第二级BMC的磁盘。The specific process of the data copying of the first-level BMC to the second-level BMC is: the first-level BMC will copy the data files to be interacted with under the /var/usb0 directory; execute the sync command to write all the data buffered by the disk into the second level The disk of the secondary BMC.

所述第二级BMC向第一级BMC的数据拷贝的具体过程为:第二级BMC将要交互的数据文件拷贝至USB虚拟磁盘;将所述虚拟磁盘内的数据文件挂载至第一级BMC。The specific process of the data copy of the second-level BMC to the first-level BMC is: the second-level BMC copies the data files to be interacted with to the USB virtual disk; the data files in the virtual disk are mounted to the first-level BMC .

在完成数据拷贝之后,还包括步骤:卸载虚拟BMC设备,处理/var/usb0目录下接收的数据文件,释放内存空间。具体为:一级BMC通过I2C给二级BMC发送IPMI指令(StopRedirection),二级BMC收到指令后发送终止信号,给驱动发送USB Disconnect指令并Disable USB设备。一级BMC通过I2C给二级BMC发送IPMI指令(Delete Image),二级BMC收到指令后处理/var/usb0目录下接收的数据文件,然后释放内存空间。After the data copy is completed, further steps are included: unloading the virtual BMC device, processing the data files received in the /var/usb0 directory, and freeing up memory space. Specifically: the first-level BMC sends an IPMI command (StopRedirection) to the second-level BMC through I2C, and the second-level BMC sends a termination signal after receiving the command, sends a USB Disconnect command to the driver and disables the USB device. The first-level BMC sends an IPMI command (Delete Image) to the second-level BMC through I2C, and the second-level BMC processes the data files received in the /var/usb0 directory after receiving the command, and then releases the memory space.

如图2所示,本发明一种服务器多级管理单元大数据交互系统,包括第一级BMC1和第二级BMC2。第一级BMC1包括指令发送单元11和数据发送单元12,所述指令发送单元11用于向第二级BMC2发送操作指令,所述数据发送单元12用于向第二级BMC2发送数据;所述第二级BMC2包括设备创建单元21,所述设备创建单元基于所述指令发送单元的指令,在第二级BMC2端创建虚拟USB设备22,并将USB设备22重定向至第一级BMC1,所述虚拟USB设备22用于接收第一级BMC1发送的数据。As shown in FIG. 2 , a server multi-level management unit big data interactive system of the present invention includes a first-level BMC1 and a second-level BMC2. The first level BMC1 comprises instruction transmission unit 11 and data transmission unit 12, and described instruction transmission unit 11 is used for sending operation instruction to second level BMC2, and described data transmission unit 12 is used for sending data to second level BMC2; The second-level BMC2 includes a device creation unit 21, and the device creation unit creates a virtual USB device 22 at the second-level BMC2 end based on the instruction of the instruction sending unit, and redirects the USB device 22 to the first-level BMC1, so that The virtual USB device 22 is used to receive the data sent by the first-level BMC1.

上述服务器多级管理单元大数据交互系统能够实现所述方法的各步骤,并取得相同的效果。The above-mentioned server multi-level management unit big data interaction system can realize each step of the method and achieve the same effect.

上述虽然结合附图对本发明的具体实施方式进行了描述,但并非对本发明保护范围的限制,所属领域技术人员应该明白,在本发明的技术方案的基础上,本领域技术人员不需要付出创造性劳动即可做出的各种修改或变形仍在本发明的保护范围以内。Although the specific implementation of the present invention has been described above in conjunction with the accompanying drawings, it does not limit the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, those skilled in the art do not need to pay creative work Various modifications or variations that can be made are still within the protection scope of the present invention.

Claims (7)

1.一种服务器多级管理单元大数据交互方法,其特征是,所述方法包括以下步骤:1. a server multi-level management unit big data interaction method, it is characterized in that, described method comprises the following steps: 在第二级BMC端创建虚拟磁盘及文件系统,并将文件系统挂载;Create a virtual disk and file system on the second-level BMC, and mount the file system; 第二级BMC创建虚拟的USB设备,并将USB设备重定向至第一级BMC;The second-level BMC creates a virtual USB device and redirects the USB device to the first-level BMC; 基于所述虚拟的USB设备,进行第一级BMC与第二级BMC间的数据拷贝;Based on the virtual USB device, copy data between the first-level BMC and the second-level BMC; 在第二级BMC端创建虚拟磁盘及文件系统,并将文件系统挂载的具体过程为:The specific process of creating a virtual disk and file system on the second-level BMC and mounting the file system is as follows: 用指定大小的块拷贝文件,并在拷贝的同时进行指定的转换;Copies the file in blocks of the specified size, and performs the specified transformation while copying; 创建DOS文件系统;Create a DOS file system; 将所述文件系统挂载至/var/usb0路径下;Mount the file system to the /var/usb0 path; 所述第二级BMC创建虚拟的USB设备,并将USB设备重定向至第一级BMC的具体过程为:The second-level BMC creates a virtual USB device, and the specific process of redirecting the USB device to the first-level BMC is: 加载USB驱动程序,获取并填充USB描述符,将系统文件所在路径注册成虚拟USB设备;Load the USB driver, obtain and fill the USB descriptor, and register the path where the system file is located as a virtual USB device; 发送USB连接指令,进行USB设备的重定向;Send a USB connection command to redirect the USB device; 所述步骤进行USB设备的重定向之后还包括:After the steps carry out the redirection of the USB device, it also includes: 第一级BMC端驱动识别所述USB设备,并将所述USB设备挂载至第一级BMC端的/var/usb0目录下。The first-level BMC driver identifies the USB device, and mounts the USB device to the /var/usb0 directory of the first-level BMC. 2.根据权利要求1所述服务器多级管理单元大数据交互方法,其特征是,在所述步骤第二级BMC端创建虚拟磁盘之前还包括步骤:2. according to the described server multi-level management unit big data interaction method of claim 1, it is characterized in that, before described step second level BMC end creates virtual disk, also comprises the step: 建立两级BMC之间USB端口的硬件连接。Establish the hardware connection of the USB port between the two levels of BMCs. 3.根据权利要求1所述服务器多级管理单元大数据交互方法,其特征是,所述基于所述虚拟的USB设备,进行第一级BMC与第二级BMC间的数据拷贝包括第一级BMC向第二级BMC的数据拷贝和第二级BMC向第一级BMC的数据拷贝。3. according to the described server multilevel management unit big data interactive method of claim 1, it is characterized in that, described based on described virtual USB device, carry out the data copy between the first level BMC and the second level BMC comprises the first level Data copy from BMC to second-level BMC and data copy from second-level BMC to first-level BMC. 4.根据权利要求3所述服务器多级管理单元大数据交互方法,其特征是,所述第一级BMC向第二级BMC的数据拷贝的具体过程为:4. according to the described server multilevel management unit big data interactive method of claim 3, it is characterized in that, the specific process of described first level BMC to the data copy of second level BMC is: 第一级BMC将要交互的数据文件拷贝至/var/usb0目录下;The first-level BMC copies the data files to be interacted with to the /var/usb0 directory; 执行sync指令,将磁盘缓冲的所有数据写入第二级BMC的磁盘。Execute the sync command to write all the data buffered in the disk to the disk of the second-level BMC. 5.根据权利要求3所述服务器多级管理单元大数据交互方法,其特征是,所述第二级BMC向第一级BMC的数据拷贝的具体过程为:5. according to the described server multilevel management unit big data interactive method of claim 3, it is characterized in that, the specific process of described second level BMC to the data copy of first level BMC is: 第二级BMC将要交互的数据文件拷贝至USB虚拟磁盘;The second-level BMC copies the data files to be interacted with to the USB virtual disk; 将所述虚拟磁盘内的数据文件挂载至第一级BMC。Mount the data files in the virtual disk to the first-level BMC. 6.根据权利要求1-5任一项所述服务器多级管理单元大数据交互方法,其特征是,在完成数据拷贝之后,还包括步骤:6. According to any one of claims 1-5, the multi-level management unit big data interaction method of the server is characterized in that, after the data copy is completed, further comprising the steps of: 卸载虚拟BMC设备,处理/var/usb0目录下接收的数据文件,释放内存空间。Uninstall the virtual BMC device, process the data files received in the /var/usb0 directory, and release the memory space. 7.一种服务器多级管理单元大数据交互系统,包括第一级BMC和第二级BMC,其特征是,所述第一级BMC包括指令发送单元和数据发送单元,所述指令发送单元用于向第二级BMC发送操作指令,所述数据发送单元用于向第二级BMC发送数据;所述第二级BMC包括设备创建单元,所述设备创建单元基于所述指令发送单元的指令,在第二级BMC端创建虚拟USB设备,并将USB设备重定向至第一级BMC,所述虚拟USB设备用于接收第一级BMC发送的数据;7. A server multi-level management unit big data interactive system, comprising first level BMC and second level BMC, it is characterized in that, described first level BMC comprises instruction sending unit and data sending unit, and described instruction sending unit uses For sending operation instructions to the second-level BMC, the data sending unit is used to send data to the second-level BMC; the second-level BMC includes a device creation unit, and the device creation unit is based on the instruction of the instruction sending unit, Create a virtual USB device at the second-level BMC end, and redirect the USB device to the first-level BMC, and the virtual USB device is used to receive data sent by the first-level BMC; 在第二级BMC端创建虚拟磁盘及文件系统,并将文件系统挂载的具体过程为:The specific process of creating a virtual disk and file system on the second-level BMC and mounting the file system is as follows: 用指定大小的块拷贝文件,并在拷贝的同时进行指定的转换;Copies the file in blocks of the specified size, and performs the specified transformation while copying; 创建DOS文件系统;Create a DOS file system; 将所述文件系统挂载至/var/usb0路径下;Mount the file system to the /var/usb0 path; 所述第二级BMC创建虚拟的USB设备,并将USB设备重定向至第一级BMC的具体过程为:The second-level BMC creates a virtual USB device, and the specific process of redirecting the USB device to the first-level BMC is: 加载USB驱动程序,获取并填充USB描述符,将系统文件所在路径注册成虚拟USB设备;Load the USB driver, obtain and fill the USB descriptor, and register the path where the system file is located as a virtual USB device; 发送USB连接指令,进行USB设备的重定向;Send a USB connection command to redirect the USB device; 所述步骤进行USB设备的重定向之后还包括:After the steps carry out the redirection of the USB device, it also includes: 第一级BMC端驱动识别所述USB设备,并将所述USB设备挂载至第一级BMC端的/var/usb0目录下。The first-level BMC driver identifies the USB device, and mounts the USB device to the /var/usb0 directory of the first-level BMC.
CN202110329827.7A 2021-03-26 2021-03-26 Big data interaction method and system for server multi-level management unit Active CN113064877B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110329827.7A CN113064877B (en) 2021-03-26 2021-03-26 Big data interaction method and system for server multi-level management unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110329827.7A CN113064877B (en) 2021-03-26 2021-03-26 Big data interaction method and system for server multi-level management unit

Publications (2)

Publication Number Publication Date
CN113064877A CN113064877A (en) 2021-07-02
CN113064877B true CN113064877B (en) 2023-02-28

Family

ID=76564114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110329827.7A Active CN113064877B (en) 2021-03-26 2021-03-26 Big data interaction method and system for server multi-level management unit

Country Status (1)

Country Link
CN (1) CN113064877B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257652B2 (en) * 2003-07-07 2007-08-14 Sun Microsystems, Inc. Method and system for filesystem mounted on a root directory wherein data is redirected from a first storage system to a second storage system
US9118584B2 (en) * 2013-03-15 2015-08-25 American Megatrends, Inc. Dynamic scalable baseboard management controller stacks on single hardware structure
CN105791362B (en) * 2014-12-24 2019-07-26 联想(北京)有限公司 A kind of server operating system dispositions method and server
CN104766007B (en) * 2015-03-27 2017-07-21 杭州安恒信息技术有限公司 A kind of method that the fast quick-recovery of sandbox is realized based on file system filter driver
CN111177052A (en) * 2019-12-21 2020-05-19 苏州浪潮智能科技有限公司 A system for redirecting the serial port of a computer external device to the remote end of the network
CN111858433A (en) * 2020-07-17 2020-10-30 苏州浪潮智能科技有限公司 A method, system, device and medium based on SSH serial port redirection

Also Published As

Publication number Publication date
CN113064877A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN111901164B (en) OCP NIC network card adaptation control method, device, equipment and system
US5867648A (en) High speed heterogeneous coupling of computer systems using channel-to-channel protocol
CN103455363B (en) Command processing method, device and physical host of virtual machine
CN112559407B (en) STP link layer state machine optimization method
CN106959935B (en) A method compatible with I2C communication and IPMB communication
US8082370B2 (en) Apparatus, method, and system for controlling communication between host device and USB device
CN111459863A (en) NVME-MI-based chassis management system and method
CN101778138A (en) Memory system and data transmission method
JP2012048707A (en) Method and apparatus for improving performance in serial advanced technology attachment
KR20080020574A (en) A method of transitioning a port from an active state to a standby state, a device for use in a communication device, and a data communication system
CN113064877B (en) Big data interaction method and system for server multi-level management unit
CN116723190A (en) Multi-node management system, method, computer equipment and storage medium
CN116974809A (en) Fault information acquisition method and device, baseboard management controller, system and medium
CN117111525A (en) Multi-CPU-based trusted redundant control system and control method
CN115048255B (en) Automated testing method, device, host and storage medium
CN112015597A (en) Fault isolation method, device, equipment and computer readable storage medium
CN107294759A (en) server system and data access method
CN112612741B (en) Multi-path server
CN111309127B (en) PCIE (peripheral component interface express) equipment resetting method and device based on CPLD (Complex programmable logic device) and storage medium
CN116881091B (en) System event log reporting method, device, chip, equipment and storage medium
CN118916312A (en) Data transmission method, device, system, computer equipment and storage medium
CN118964092A (en) Device reset method, device, system and electronic device
WO2025102607A1 (en) Real-time simulation data transmission method, apparatus and device, and storage medium
CN113220231B (en) Adaptive flow control method and device supporting STP application
CN101441661A (en) System and method for sharing file resource between multiple embedded systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant