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

Big data interaction method and system for multi-level management unit of server 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
bmc
level
usb
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; CALCULATING OR 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; CALCULATING OR 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; CALCULATING OR 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 multi-level management unit of server
Technical Field
The invention relates to the technical field of server data interaction, in particular to a method and a system for large data interaction of a server multilevel management unit.
Background
The BMC (Baseboard Management Controller) is a Management unit of the server system, and has main functions of server hardware monitoring and fault alarm, heat dissipation and speed regulation, power Management, firmware upgrade, and the like. The general server mainboard is generally provided with only a first-stage management unit, the pooling server system is additionally provided with a second-stage management unit, large data interaction such as log files, firmware images and the like is often required between the first-stage management unit and the second-stage management unit, and the large data interaction mode is concerned with the improvement of the management efficiency among the multi-stage management units.
In the existing scheme, the large data interaction among the multilevel management units is mostly through I2C interaction. When the hardware is designed, the I2C signals between the two levels of Management units need to be connected together, and when the two levels of Management units exchange big data, the big data directly communicates through I2C reading and writing or an IPMB (Intelligent Platform Management Bus) interface protocol.
The existing interactive scheme has low transmission efficiency, large data needs to be transmitted for multiple times in a segmented manner, the processing processes such as interruption waiting and the like in driving are limited, the actual transmission rate is far short of the set I2C frequency, the actual measurement time of 32M data is about 15 minutes, and the transmission rate is slow.
Disclosure of Invention
The invention provides a method and a system for large data interaction of a server multi-level management unit, which are used for solving the problem of low data interaction rate in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a server multi-level management unit big data interaction method in a first aspect, which comprises the following steps:
creating 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.
Further, before the step of creating the virtual disk by the second-level BMC terminal, the method further includes the steps of:
and establishing hardware connection of the USB port between the two stages of BMC.
Further, a virtual disk and a file system are created at the second-level BMC, and the specific process of mounting the file system is as follows:
copying the file by using blocks with specified size, and performing specified conversion while copying;
creating a DOS file system;
and mounting the file system to the/var/usb 0 path.
Further, the specific process of creating a virtual USB device by the second-level BMC and redirecting the USB device to the first-level BMC is as follows:
loading a USB driver, acquiring and filling a USB descriptor, and registering a path where a system file is located in a virtual USB device;
and sending a USB connection instruction, and redirecting the USB equipment.
Further, after the step of redirecting the USB device, the method further includes:
and the first-stage BMC end driver identifies the USB equipment and mounts the USB equipment to the var/USB0 directory of the first-stage BMC end.
Further, the 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 copying data from the second-level BMC to the first-level BMC.
Further, the specific process of copying the data from the first-level BMC to the second-level BMC is as follows:
copying the data files to be interacted to a/var/usb 0 directory by the first-level BMC;
and executing a sync command, and writing all data buffered by the disk into the disk of the second-level BMC.
Further, the specific process of copying the data from the second-level BMC to the first-level BMC is as follows:
copying the data files to be interacted to a USB virtual disk by the second-level BMC;
and mounting the data file in the virtual disk to the first-level BMC.
Further, after the data copy is completed, the method also comprises the following steps:
and unloading the virtual BMC equipment, processing the data file received in the var/usb0 directory, and releasing the memory space.
The second aspect of the invention provides a server multi-level management unit big data interaction system, which comprises a first-level BMC and a second-level BMC, wherein the first-level BMC comprises an instruction sending unit and a data sending unit, the instruction sending unit is used for sending an operation instruction to the second-level BMC, and the data sending unit is used for sending data to the second-level BMC; the second-level BMC comprises an equipment creating unit, the equipment creating unit creates a virtual USB equipment at the second-level BMC based on the instruction of the instruction sending unit and redirects the USB equipment to the first-level BMC, and the virtual USB equipment is used for receiving data sent by the first-level BMC.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
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 conventional I2C, the transmission rate is obviously improved. Meanwhile, under the condition that only one path of I2C communication exists among the multi-level management units, the heat dissipation risk caused by overlong large data interaction time can be reduced, and the system robustness is improved.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic representation of the process of the present invention;
fig. 2 is a schematic diagram of the system of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the present invention will be explained in detail by the following embodiments and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
As shown in fig. 1, the method for interacting big data of a server multi-level management unit of the present invention includes the following steps:
s1, creating a virtual disk and a file system at a second-level BMC (baseboard management controller) end, and mounting the file system;
s2, the second-level BMC creates a virtual USB device and redirects the USB device to the first-level BMC;
and S3, copying data between the first-level BMC and the second-level BMC based on the virtual USB device.
The method further comprises the following steps before the step S1: and establishing hardware connection of the USB port between the two stages of BMC. Specifically, the USB PortA of the second-level management unit BMC and the USB PortB of the first-level management unit BMC are connected together, and the signal is added to the data cable.
In step S1, the first-level BMC sends an IPMI instruction, create Image, to the second-level BMC through I2C, and the second-level BMC performs operations of creating a virtual disk and a file system and mounting the file system, specifically including performing dd if =/dev/zero of = "/var/usb.img" bs =64K count =1k, so as to copy a file with a block of a specified size and perform specified conversion while copying; executing mkdosfs-S512-c
Img, realizing the creation of a DOS file system; mount the file system to the/var/usb 0 path.
The specific process of the step S2 is as follows: the primary BMC sends an IPMI instruction-Start Redirection to the secondary BMC through the I2C, the secondary BMC loads a USB driver after receiving the instruction, then sends a driving instruction to obtain equipment information (descriptor), fills the USB descriptor, registers/var/usb.img as virtual USB equipment, and then sends a USB Connect instruction to realize USB equipment Redirection. The Host end USB driver can automatically identify the USB equipment and mount the equipment to the Host end/var/USB 0 directory.
In step S3, based on the virtual USB device, the data copy between the first-level BMC and the second-level BMC includes data copy from the first-level BMC to the second-level BMC and data copy from the second-level BMC to the first-level BMC.
The specific process of copying the data from the first-level BMC to the second-level BMC comprises the following steps: copying the data files to be interacted to a/var/usb 0 directory by the first-level BMC; and executing a sync command, and writing all data buffered by the disk into the disk of the second-level BMC.
The specific process of copying the data from the second-level BMC to the first-level BMC comprises the following steps: copying the data file to be interacted to a USB virtual disk by the second-level BMC; and mounting the data file in the virtual disk to the first-level BMC.
After the data copying is completed, the method further comprises the following steps: and unloading the virtual BMC equipment, processing the received data file in the var/usb0 directory, and releasing the memory space. The method specifically comprises the following steps: the primary BMC sends an IPMI instruction (Stop Redirection) to the secondary BMC through the I2C, and the secondary BMC sends a termination signal after receiving the instruction, sends a USB Disconnect instruction to the driver and disables the USB device. The primary BMC sends an IPMI instruction (Delete Image) to the secondary BMC through the I2C, the secondary BMC receives the instruction and processes the data file received under the/var/usb 0 directory, and then the memory space is released.
As shown in fig. 2, the big data interactive system of the server multi-level management unit of the present invention includes a first-level BMC1 and a second-level BMC2. The first-level BMC1 comprises an instruction sending unit 11 and a data sending unit 12, wherein the instruction sending unit 11 is used for sending an operation instruction to the second-level BMC2, and the data sending unit 12 is used for sending data to the second-level BMC 2; the second-level BMC2 includes a device creating unit 21, the device creating 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, where the virtual USB device 22 is configured to receive data sent by the first-level BMC 1.
The server multi-level management unit big data interaction system can realize the steps of the method and achieve the same effect.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive changes in the technical solutions of the present invention.

Claims (7)

1. A big data interaction method for a server multilevel management unit is characterized by comprising the following steps:
creating 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;
copying data between the first-level BMC and the second-level BMC based on the virtual USB device;
creating a virtual disk and a file system at the second-level BMC end, and mounting the file system in a specific process:
copying the file by using blocks with specified size, and performing specified conversion while copying;
creating a DOS file system;
mounting the file system to a/var/usb 0 path;
the specific process of creating a virtual USB device by the second-level BMC and redirecting the USB device to the first-level BMC is as follows:
loading a USB driver, acquiring and filling a USB descriptor, and registering a path where a system file is located as virtual USB equipment;
sending a USB connection instruction, and redirecting the USB equipment;
after the step of redirecting the USB equipment, the method also comprises the following steps:
and the first-stage BMC end drives and identifies the USB equipment, and mounts the USB equipment to the/var/USB 0 directory of the first-stage BMC end.
2. The big data interaction method of the server multilevel management unit according to claim 1, further comprising, before the step of creating the virtual disk at the second level BMC, the steps of:
and establishing hardware connection of the USB port between the two stages of BMC.
3. The method as claimed in claim 1, wherein the performing of the data copy between the first-level BMC and the second-level BMC based on the virtual USB device includes data copy from the first-level BMC to the second-level BMC and data copy from the second-level BMC to the first-level BMC.
4. The method as claimed in claim 3, wherein the specific process of copying the data from the first-level BMC to the second-level BMC comprises:
copying the data files to be interacted to a/var/usb 0 directory by the first-level BMC;
and executing a sync instruction, and writing all data buffered by the disk into a disk of the second-level BMC.
5. The big data interaction method of the server multi-level management unit as claimed in claim 3, wherein the specific process of copying the data from the second-level BMC to the first-level BMC is as follows:
copying the data files to be interacted to a USB virtual disk by the second-level BMC;
and mounting the data file in the virtual disk to the first-level BMC.
6. The server multi-level management unit big data interaction method of any one of claims 1-5, characterized by further comprising the steps of, after the data copy is completed:
and unloading the virtual BMC equipment, processing the data file received in the var/usb0 directory, and releasing the memory space.
7. A big data interaction system of a server multi-level management unit comprises a first-level BMC and a second-level BMC, and is characterized in that the first-level BMC comprises an instruction sending unit and a data sending unit, the instruction sending unit is used for sending an operation instruction to the second-level BMC, and the data sending unit is used for sending data to the second-level BMC; the second-level BMC comprises an equipment creating unit, the equipment creating unit creates a virtual USB equipment at the second-level BMC based on the instruction of the instruction sending unit and redirects the USB equipment to the first-level BMC, and the virtual USB equipment is used for receiving data sent by the first-level BMC;
creating a virtual disk and a file system at the second-level BMC end, and mounting the file system in a specific process:
copying the file by using blocks with specified size, and performing specified conversion while copying;
creating a DOS file system;
mounting the file system to a/var/usb 0 path;
the specific process of creating a virtual USB device by the second-level BMC and redirecting the USB device to the first-level BMC is as follows:
loading a USB driver, acquiring and filling a USB descriptor, and registering a path where a system file is located as virtual USB equipment;
sending a USB connection instruction, and redirecting the USB equipment;
after the step of redirecting the USB device, the method further comprises the following steps:
and the first-stage BMC end driver identifies the USB equipment and mounts the USB equipment to the var/USB0 directory of the first-stage BMC end.
CN202110329827.7A 2021-03-26 2021-03-26 Big data interaction method and system for multi-level management unit of server 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 multi-level management unit of server

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 multi-level management unit of server

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 multi-level management unit of server

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 苏州浪潮智能科技有限公司 System for redirecting serial port of computer peripheral equipment to network far end
CN111858433A (en) * 2020-07-17 2020-10-30 苏州浪潮智能科技有限公司 SSH (secure Shell) serial port redirection-based method, system, equipment and medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN111901164B (en) Adaptive control method, device, equipment and system of OCP NIC network card
US5867648A (en) High speed heterogeneous coupling of computer systems using channel-to-channel protocol
US9680930B2 (en) Data communication system for a storage management system and communication method thereof
CN109933554B (en) NVMe hard disk expansion device based on GPU server
US20120297100A1 (en) Storage system and data transmission method
CN113177015B (en) Frame header-based serial port communication method and serial port chip
CN113064877B (en) Big data interaction method and system for multi-level management unit of server
EP3896931B1 (en) Spark shuffle-based remote direct memory access system and method
CN112087430B (en) System and method for accessing MCTP (multimedia broadcast multicast service) equipment through SMASH (simple multimedia application service) interface
CN216014148U (en) Server and server backboard
US20040213277A1 (en) Method and related circuit for increasing network transmission efficiency by increasing a data updating rate of a memory
CN113190184B (en) Hardware cluster device and storage equipment management method
CN111124882B (en) Method and device for realizing application test, computer storage medium and terminal
US20230208676A1 (en) Data communication method and apparatus, electronic device, and storage medium
CN114168498B (en) Broken line maintaining method, device, equipment and computer storage medium
CN108304214B (en) Method and device for verifying integrity of immediate data
CN108810087B (en) Connection method, system and equipment of storage server
CN116755961A (en) Monitoring method, device, equipment and storage medium
CN117749718A (en) DMA transmission order-preserving processing method and device based on ACK and NOP mechanisms
CN117909170A (en) Data storage method, device, electronic equipment and storage medium
CN117787170A (en) PCIe device sideband signal processing method, device, equipment and storage medium
CN114064369A (en) Driving device, system and method for testing display module
CN114676085A (en) CCIX (computer communications interface) bus control method, device and medium
CN116132706A (en) Video processing method, injection method and electronic equipment
CN117130852A (en) Method, device, equipment and medium for BMC to identify hot plug equipment

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