CN107526616B - Method and device for writing and reading data of BMC by host - Google Patents

Method and device for writing and reading data of BMC by host Download PDF

Info

Publication number
CN107526616B
CN107526616B CN201710780255.8A CN201710780255A CN107526616B CN 107526616 B CN107526616 B CN 107526616B CN 201710780255 A CN201710780255 A CN 201710780255A CN 107526616 B CN107526616 B CN 107526616B
Authority
CN
China
Prior art keywords
bmc
image file
host
virtual memory
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
CN201710780255.8A
Other languages
Chinese (zh)
Other versions
CN107526616A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710780255.8A priority Critical patent/CN107526616B/en
Publication of CN107526616A publication Critical patent/CN107526616A/en
Application granted granted Critical
Publication of CN107526616B publication Critical patent/CN107526616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Abstract

The invention discloses a method and a device for writing and reading data into and from BMC by a host, wherein the method comprises the following steps: creating an image file in a storage device of the BMC; virtualizing the image file into a virtual memory, and mounting the virtual memory on the host machine so as to enable the host machine to write data into the virtual memory; the BMC reads data from the virtual memory. The invention enables the high-speed data interaction between the host and the BMC of the intelligent equipment such as the server and the like, can transmit larger files between the host and the BMC, and has the advantages of convenient realization, low cost and good user experience.

Description

Method and device for writing and reading data of BMC by host
Technical Field
The invention relates to the field of data processing, in particular to a method for writing data into BMC by a host, a method for reading the data from the BMC by the host and a device for writing the data into the BMC by the host.
Background
Currently, in the use process of an intelligent device such as a server, a Host (Host) of the intelligent device needs to perform data communication with a BMC (baseboard management controller) of the intelligent device, and in the current communication mode, the Host and the BMC perform data communication by using an interface (such as a KCS interface) of the BMC under an IPMI protocol, but the data transmission rate of the communication mode is very slow, and the Host and the BMC cannot transmit large files due to the limitation of a transmission protocol, so that the functions of the intelligent device such as the server are limited (for example, the upgrading operation of the BMC involving a large upgrading packet cannot be performed), and the use of the intelligent device such as the server is inconvenient for a user.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for writing and reading data to and from a BMC by a host, where the method can improve a data transmission rate between the host and the BMC and can transmit a large file between the host and the BMC.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme: a method for writing data to BMC by a host comprises the following steps:
creating an image file in a storage device of the BMC;
virtualizing the image file into a virtual memory, and mounting the virtual memory on the host machine so as to enable the host machine to write data into the virtual memory;
the BMC reads data from the virtual memory.
Preferably, the creating an image file in the storage device of the BMC includes: acquiring storage information of the storage device, and selecting a pre-storage space which is adaptive to the image file in the storage device according to the storage information; and creating the image file in the pre-storage space according to the creation command.
Preferably, the virtualizing the image file into a virtual memory, and the mounting the virtual memory on the host specifically includes: virtualizing the image file into a U disk, and establishing a data path between the host and the U disk through the BMC so as to electrically connect the U disk to the host.
Preferably, the reading, by the BMC, data from the virtual memory includes: unloading the virtual memory from the host, and restoring the virtual memory into the mirror image file; and the BMC mounts the image file so as to enable the BMC to read data from the image file.
The embodiment of the invention also provides a method for reading the data of the BMC by the host, which comprises the following steps:
creating an image file in a storage device of the BMC, wherein the image file contains data written by the BMC;
virtualizing the image file into a virtual memory, and mounting the virtual memory on the host machine so as to enable the host machine to read data from the virtual memory.
Preferably, the creating an image file in the storage device of the BMC includes: acquiring storage information of the storage device, and selecting a pre-storage space which is adaptive to the image file in the storage device according to the storage information; and creating the image file in the pre-storage space according to the creation command.
Preferably, the virtualizing the image file into a virtual memory, and the mounting the virtual memory on the host specifically includes: virtualizing the image file into a U disk, and establishing a data path between the host and the U disk through the BMC so as to electrically connect the U disk to the host.
The embodiment of the invention also provides a device for writing data into the BMC by the host, which comprises a creation module, a virtual module and a mounting module:
the creation module is configured to create an image file in a storage device of the BMC;
the virtual module is configured to virtualize the image file into a virtual memory;
the mount module is configured to mount the virtual memory on the host to cause the host to write data to the virtual memory and mount the virtual memory on the BMC to cause the BMC to read data from the virtual memory.
Preferably, the creation module comprises a selection unit and a creation unit; the selecting unit is configured to acquire storage information of the storage device and select a pre-storage space adapted to the image file in the storage device according to the storage information; the creating unit is configured to create the image file in the pre-storage space according to a creation command.
Preferably, the mount module is further configured to, when the BMC reads data from the virtual memory, uninstall the virtual memory from the host, and mount the image file to the BMC, where the image file is restored from the virtual memory by the virtual module.
The embodiment of the invention has the beneficial effects that: the BMC of the intelligent equipment such as the host and the server can perform high-speed data interaction, large files can be transmitted between the host and the BMC, and meanwhile, the method is convenient to implement, low in cost and good in user experience.
Drawings
FIG. 1 is a flowchart of a method for a host to write data to a BMC according to an embodiment of the invention;
FIG. 2 is a flowchart illustrating a process of creating an image file in a storage device of a BMC when a host writes data to the BMC according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a BMC reading data from a virtual memory according to an embodiment of the invention;
FIG. 4 is a flowchart of a method for a host to read data from a BMC according to an embodiment of the invention;
FIG. 5 is a flowchart illustrating a specific process of writing data to the BMC by the host according to an embodiment of the invention;
fig. 6 is a block diagram illustrating a specific connection relationship between a host and a BMC according to an embodiment of the present invention.
Description of the reference numerals
1-device for data writing 2-creation module 3-virtual module
4-mounting module 5-host 6-BMC
7-mirror image file 8-eMMC
Detailed Description
Various aspects and features of the present invention are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the invention herein. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Other modifications will occur to those skilled in the art which are within the scope and spirit of the invention.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with a general description of the invention given above, and the detailed description of the embodiments given below, serve to explain the principles of the invention.
These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It should also be understood that, although the invention has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of the invention, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present invention will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the invention, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the invention in unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present invention in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the invention.
In the method for writing data into the BMC 6 by the host 5 according to the embodiment of the present invention, the BMC 6(Baseboard Management Controller) of the intelligent device such as the server and the like supports an IPMI specification of an industry standard, the specification describes a Management function that has been built in a motherboard of the intelligent device such as the server and the like, and Management of each managed device by system Management software can be implemented by the BMC 6. The intelligent terminals such as the host 5 can perform fast write operation on the BMC 6 and realize transmission of a large file, as shown in fig. 1, the data writing method includes:
s1, create the image file 7 in the storage device of the BMC 6. The image file 7 is a file in which a specific series of files are made into a single file in a certain format for use. The BMC 6 has a storage device to store data, for example, a flash memory chip having the eMMC 8 in the BMC 6, and may create the image file 7 in the eMMC 8, the storage space required by the image file 7 itself may be provided by the eMMC 8, and the size and format of the image file 7 may be preset according to actual needs.
S2, virtualize the image file 7 as a virtual memory, and mount the virtual memory on the host 5, so that the host 5 writes data to the virtual memory. The virtual memory can be a virtual USB flash disk, a hard disk or an optical disk and the like, the virtual memory has the advantages of high reading and writing speed, large files can be stored, mounting is convenient and the like, the mounting can be regarded as mounting and loading, a data path between the host 5 and the virtual memory can be opened up after the mounting, the host 5 can identify and register the virtual memory mounted on the host, and the like. For example, the virtual memory is virtualized to be a usb disk, the usb disk is mounted on the host 5, the host 5 can quickly identify the usb disk and install a corresponding driver, so that the host 5 can use the usb disk, and if the host 5 needs to write data into the BMC 6, the data can be written into the usb disk first for later transferring to the BMC 6, which is convenient to operate and increases the writing speed.
S3, BMC 6 reads data from the virtual memory. Since the virtual memory is essentially in the storage device of the BMC 6, and the virtual memory is provided in the flash memory chip of the eMMC 8 of the BMC 6 as mentioned above, the BMC 6 can read data from the virtual memory at a very high speed, and can read a large file. The BMC 6 reads data from the virtual memory, the data writing operation of the host 5 to the BMC 6 is objectively realized, the whole writing process is high in speed, and the writing of a large file can be realized.
In an embodiment of the present invention, as shown in fig. 2, creating an image file 7 in a storage device of the BMC 6 when the host 5 writes data to the BMC 6 includes: and S11, acquiring the storage information of the storage device, and selecting a pre-storage space corresponding to the image file 7 in the storage device according to the storage information. The storage information of the storage device includes information such as capacity, medium, format, or read/write speed of the storage device, and the storage device may be analyzed in advance to obtain corresponding storage information, and then a pre-storage space corresponding to the image file 7 is selected in the storage device according to the storage information to satisfy corresponding characteristics of the image file 7, for example, a storage area with an appropriate capacity is selected as the pre-storage space corresponding to the image file 7 for building the image file 7. And S12, creating the image file 7 in the pre-storage space according to the creation command. The host 5 may issue a creation command for requesting to create the image file 7, where the creation command may define at least one of parameters such as a type, a capacity, a format, or a read/write speed of the image file 7, and may create the image file 7 in a pre-stored space according to the creation command, so that the created image file 7 meets the requirements of the host 5.
In an embodiment of the present invention, the virtualizing the image file 7 as a virtual memory, and the mounting the virtual memory on the host 5 specifically includes: the image file 7 is virtualized to be a U disk, and a data path between the host 5 and the U disk is created through the BMC 6, so that the U disk is electrically connected to the host 5. The U disk has the advantages of small occupied space, high operation speed, large storage capacity and reliable performance, can be virtualized into various different formats, can meet the requirements of the host 5, easily meets the requirements of the storage device of the BMC 6 and is easy to create. After the image file 7 is virtualized as a usb disk, a data path between the host 5 and the usb disk may be created through the BMC 6, and the host 5 may perform operations such as registration on the usb disk, and finally electrically connect the usb disk to the host 5, so that the host 5 may perform write operations on the usb disk.
In an embodiment of the present invention, as shown in fig. 3, the BMC 6 reads data from the virtual memory includes: s31, the virtual storage is unloaded from the host 5, and the virtual storage is restored to the image file 7. The unloading is similar to the unloading of the physical usb disk from the smart device, and the host 5 does not write data to the virtual memory any more, and restores the virtual memory to the image file 7 so that the BMC 6 resumes the operation of the image file 7. S32, the BMC 6 mounts the image file 7, so that the BMC 6 reads data from the image file 7. In one embodiment, the image file 7 may be mounted to the file system of the BMC 6 itself according to a command of the host 5, and the BMC 6 can perform a read operation on the image file 7 after the mounting, and then perform a subsequent operation, such as executing read data. In order to more clearly illustrate the above steps, the following description is given by way of example. The BMC 6 of the intelligent device such as the server and the like needs to perform upgrading operation, the corresponding upgrading package is large, but the host 5 needs to send the upgrading package to the BMC 6 to upgrade the upgrading package, at the moment, the host 5 can write the upgrading package into a virtual USB flash disk, the virtual USB flash disk is formed by virtualizing a mirror image file 7 established in a storage device of the BMC 6, after the upgrading package is written into the USB flash disk, the host 5 sends a command to unload the USB flash disk from the host 5 and drive the BMC 6 to mount the mirror image file 7 restored by the USB flash disk, the BMC 6 reads the upgrading package from the mirror image file 7, and therefore the process that the host 5 performs data writing into the BMC 6 is completed, and then the BMC 6 can execute the upgrading package to perform upgrading operation. The process has high writing efficiency and easy operation, and realizes large file transmission (writing).
The following briefly describes the whole process of the host 5 writing data to the BMC 6 with reference to fig. 5 and a specific embodiment: (1) the host 5 sends a command to the BMC 6 to mount the image file 7 with a specified size format; (2) the BMC 6 finds a space with a proper size in the eMMC 8 and creates an image file 7; (3) the BMC virtualizes the image file 7 into a USB flash disk and mounts the USB flash disk to the host 5; (4) the host finds the USB flash disk and writes files into the USB flash disk; (5) the host 5 sends a command to the BMC 6 to uninstall the U disk and requests the BMC 6 to read a specified file from the U disk; (6) the BMC 6 mounts the image file 7 on its own file system, reads the file therein, and thereby completes data writing from the host 5 to the BMC 6.
In the method for reading data from the BMC 6 by the host 5 according to the embodiment of the present invention, the host 5 and other intelligent terminals may perform a read operation on the BMC 6 and realize transmission of a large file, as shown in fig. 4, the method for reading data includes:
and S4, creating an image file 7 in the storage device of the BMC 6, wherein the image file 7 contains data written by the BMC 6. The image file 7 is a file in which a specific series of files are made into a single file in a certain format for use. The BMC 6 has a storage device to store data, for example, a flash memory chip having the eMMC 8 in the BMC 6, and may create the image file 7 in the eMMC 8, the storage space required by the image file 7 itself may be provided by the eMMC 8, and the size and format of the image file 7 may be preset according to actual needs. The image file 7 contains data which is written by the BMC 6 in advance and needs to be read by the host 5, for example, the BMC 6 writes corresponding data into the image file 7 according to a call command of the host 5.
S5, virtualize the image file 7 as a virtual memory, and mount the virtual memory on the host 5, so that the host 5 reads data from the virtual memory. The virtual memory can be a virtual USB flash disk, a hard disk or an optical disk and the like, the virtual memory has the advantages of high reading and writing speed, large files can be stored, mounting is convenient and the like, the mounting can be regarded as hanging and loading, a data path between the host 5 and the virtual memory can be opened up after the mounting, the host 5 can identify and register the virtual memory mounted on the host, and the like. For example, the virtual memory is virtualized to be a usb disk, the usb disk is mounted on the host 5, the host 5 can quickly identify the usb disk and install a corresponding driver, so that the host 5 can use the usb disk, and if the host 5 needs to read data from the BMC 6, the data can be written into the usb disk for subsequent reading by the host 5. Since the virtual memory is essentially in the storage device of the BMC 6, and the virtual memory is provided in the flash memory chip of the eMMC 8 of the BMC 6 as mentioned above, the host 5 can read data from the virtual memory at a very high speed, and can read a large file. The host 5 reads data from the virtual memory, so that the data reading operation of the BMC 6 by the host 5 is objectively realized, the whole reading process is high in speed, and the reading of a large file can be realized.
In an embodiment of the present invention, with reference to fig. 2, creating an image file 7 in a storage device of the BMC 6 when the host 5 reads data from the BMC 6 includes: and S41, acquiring the storage information of the storage device, and selecting a pre-storage space corresponding to the image file 7 in the storage device according to the storage information. The storage information of the storage device includes information such as capacity, medium, format, or read/write speed of the storage device, and the storage device may be analyzed in advance to obtain corresponding storage information, and then a pre-storage space corresponding to the image file 7 is selected in the storage device according to the storage information to satisfy corresponding characteristics of the image file 7, for example, a storage area with an appropriate capacity is selected as the pre-storage space corresponding to the image file 7 for building the image file 7. And S42, creating the image file 7 in the pre-storage space according to the creation command. The host 5 may issue a creation command for requesting to create the image file 7, where the creation command may define at least one of parameters such as a type, a capacity, a format, or a read/write speed of the image file 7, and may create the image file 7 in a pre-stored space according to the creation command, so that the created image file 7 meets the requirements of the host 5.
In an embodiment of the present invention, the virtualizing the image file 7 as a virtual memory, and the mounting the virtual memory on the host 5 specifically includes: the image file 7 is virtualized to be a U disk, and a data path between the host 5 and the U disk is created through the BMC 6, so that the U disk is electrically connected to the host 5. The U disk has the advantages of small occupied space, high operation speed, large storage capacity and reliable performance, can be virtualized into various different formats, can meet the requirements of the host 5, easily meets the requirements of the storage device of the BMC 6 and is easy to create. After the image file 7 is virtualized as a usb disk, a data path between the host 5 and the usb disk may be created through the BMC 6, and the host 5 may perform operations such as registration on the usb disk, and finally electrically connect the usb disk to the host 5, so that the host 5 may perform a read operation on the usb disk.
In the device 1 for writing data to the BMC 6 by the host 5 according to the embodiment of the present invention, as shown in fig. 6, the device 1 for writing data includes a creating module 2, a virtual module 3, and a mounting module 4:
the creation module 2 is configured to create an image file 7 in a storage device of the BMC 6. The image file 7 is a file in which a specific series of files are made into a single file in a certain format for use. The BMC 6 has a storage device to store data, for example, the BMC 6 has a flash memory chip with an eMMC 8, the creation module 2 may create the image file 7 in the eMMC 8, a storage space required by the image file 7 may be provided by the eMMC 8, and a size and a format of the image file 7 may be preset according to actual needs.
The virtualization module 3 is configured to virtualize the image file 7 as a virtual memory. The virtual memory can be a virtual U disk, a hard disk or an optical disk and the like, and has the advantages of high reading and writing speed, capability of storing larger files, convenience in mounting and the like.
The mount module 4 is configured to mount the virtual memory onto the host 5 to cause the host 5 to write data to the virtual memory and mount the virtual memory onto the BMC 6 to cause the BMC 6 to read data from the virtual memory. The mount can be regarded as a mount load, the mount module 4 can open up a data path between the host 5 and the virtual memory after mounting the virtual memory on the host 5, the host 5 can identify and register the virtual memory mounted thereon, and the like, and the mount module 4 can realize the quick write operation of the host 5 on the virtual memory and write a larger file into the virtual memory due to the fact that the read-write speed of a U disk, a hard disk or an optical disk is high and a larger file can be stored. With reference to fig. 5 and 6, for example, the virtual module 3 virtualizes the virtual memory as a usb disk, the mount module 4 mounts the usb disk onto the host 5, and the host 5 can quickly identify the usb disk and install a corresponding driver, so that the host 5 can use the usb disk, and if the host 5 needs to write data into the BMC 6, the data can be written into the usb disk first for later forwarding to the BMC 6, which is convenient to operate and increases the writing speed. Since the virtual memory is essentially in the storage device of the BMC 6, and the virtual memory is provided in the flash memory chip of the eMMC 8 of the BMC 6 as mentioned above, the BMC 6 can read data from the virtual memory at a very high speed, and can read a large file. The BMC 6 reads data from the virtual memory, the data writing operation of the host 5 to the BMC 6 is objectively realized, the whole writing process is high in speed, and the writing of a large file can be realized.
In one embodiment of the invention, the creation module 2 comprises a selection unit and a creation unit. The selection unit is configured to obtain storage information of the storage device and select a pre-storage space corresponding to the image file 7 in the storage device according to the storage information. The storage information of the storage device includes information such as capacity, medium, format or read-write speed of the storage device, the selection unit may analyze the storage device in advance to obtain corresponding storage information, and then select a pre-storage space corresponding to the image file 7 in the storage device according to the storage information to satisfy corresponding characteristics of the image file 7, for example, the selection unit selects a storage area with an appropriate capacity as the pre-storage space corresponding to the image file 7 to prepare for creating the image file 7.
The creation unit is configured to create the image file 7 in a pre-stored space according to the creation command. The host 5 may send a creation command requesting the created image file 7 to the creation unit, where the creation command may define at least one of parameters such as the type, capacity, format, or read/write speed of the image file 7, and the creation unit may create the image file 7 in a pre-stored space according to the creation command, so that the created image file 7 meets the requirements of the host 5.
In one embodiment of the present invention, the virtual module 3 is further configured to virtualize the image file 7 as a usb disk, so that the usb disk is electrically connected to the host 5 through the data path created by the BMC 6.
The mounting module 4 is further configured to, when the BMC 6 reads data from the virtual memory, unload the virtual memory from the host 5 and mount the image file 7 to the BMC 6, wherein the image file 7 is restored from the virtual memory by the virtual module 3. The unloading operation of the mount module 4 is similar to the unloading operation of an entity U disk from an intelligent device, the host 5 does not write data to the virtual memory any longer, the virtual memory is restored to the mirror image file 7 by the virtual module 3, the mount module 4 mounts the mirror image file 7, the operation of the mirror image file 7 can be recovered by the BMC 6, and the BMC 6 can read data from the mirror image file 7. In an embodiment, the mount module 4 may mount the image file 7 to a file system of the BMC 6 itself according to a command of the host 5, and the BMC 6 can perform a read operation on the image file 7 after the mount, and then perform a subsequent operation, such as executing read data. For a more clear description of the above steps, reference is made to fig. 5 and 6 for example. The BMC 6 of the intelligent device such as a server and the like needs to perform upgrading operation, the corresponding upgrading package is large, but the host 5 needs to send the upgrading package to the BMC 6 to upgrade the intelligent device, at the moment, the host 5 can write the upgrading package into a virtual U disk, the virtual U disk is formed by virtualizing a mirror image file 7 by a virtual module 3, the mirror image file 7 is formed by creating a module 2 in a storage device of the BMC 6, after the upgrading package is written into the U disk, a mounting module 4 unloads the U disk from the host 5 according to a command sent by the host 5, mounts the mirror image file 7 reduced by the U disk to the BMC 6, and the BMC 6 reads the upgrading package from the mirror image file 7, so that the process that the host 5 performs data writing to the BMC 6 is completed, and then the BMC 6 can execute the upgrading package to perform upgrading operation. The process has high writing efficiency and easy operation, and realizes large file transmission (writing).
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (8)

1. A method for writing data to BMC by a host comprises the following steps:
creating an image file in a storage device of the BMC;
virtualizing the image file into a virtual memory, mounting the virtual memory on the host, and establishing a data path between the host and the virtual memory so that the host performs operations of identifying, registering and/or installing a driver on the virtual memory, and further writes data into the virtual memory;
the BMC reads data from the virtual memory; wherein the content of the first and second substances,
the BMC reading data from the virtual memory, including: unloading the virtual memory from the host, and restoring the virtual memory into the mirror image file; and the BMC mounts the image file so as to enable the BMC to read data from the image file.
2. The method of claim 1, wherein the creating an image file in a storage device of the BMC comprises: acquiring storage information of the storage device, and selecting a pre-storage space which is adaptive to the image file in the storage device according to the storage information; and creating the image file in the pre-storage space according to the creation command.
3. The data writing method according to claim 1, wherein virtualizing the image file as a virtual memory, and mounting the virtual memory on the host specifically includes: virtualizing the image file into a U disk, and establishing a data path between the host and the U disk through the BMC so as to electrically connect the U disk to the host.
4. A method for a host to read data of a BMC (baseboard management controller) comprises the following steps:
creating an image file in a storage device of the BMC, wherein the image file contains data written by the BMC;
virtualizing the image file into a virtual memory, mounting the virtual memory on the host, and establishing a data path between the host and the virtual memory so that the host performs operations of identifying, registering and/or installing a driver on the virtual memory, and further reads data from the virtual memory; wherein the content of the first and second substances,
the operation corresponding to the data written by the BMC comprises the following steps: unloading the virtual memory from the host, and restoring the virtual memory into the mirror image file; and the BMC mounts the image file so as to write data into the image file.
5. The method of claim 4, wherein the creating an image file in a storage device of the BMC comprises: acquiring storage information of the storage device, and selecting a pre-storage space which is adaptive to the image file in the storage device according to the storage information; and creating the image file in the pre-storage space according to the creation command.
6. The data reading method according to claim 4, wherein the virtualizing the image file as a virtual memory, and the mounting the virtual memory on the host specifically includes: virtualizing the image file into a U disk, and establishing a data path between the host and the U disk through the BMC so as to electrically connect the U disk to the host.
7. The device for writing data to the BMC by the host comprises a creating module, a virtual module and a mounting module:
the creation module is configured to create an image file in a storage device of the BMC;
the virtual module is configured to virtualize the image file into a virtual memory;
the mounting module is configured to mount the virtual memory on the host, and establish a data path between the host and the virtual memory, so that the host performs operations of identifying, registering and/or installing a driver on the virtual memory, and further writes data into the virtual memory; and mounting the virtual memory on the BMC to enable the BMC to read data from the virtual memory; wherein the content of the first and second substances,
the mounting module is further configured to: when the BMC reads data from the virtual memory, the virtual memory is unloaded from the host, and the image file is mounted on the BMC, wherein the image file is formed by restoring the virtual memory by the virtual module.
8. The apparatus for data writing of claim 7, the creation module comprising a selection unit and a creation unit; the selecting unit is configured to acquire storage information of the storage device and select a pre-storage space adapted to the image file in the storage device according to the storage information; the creating unit is configured to create the image file in the pre-storage space according to a creation command.
CN201710780255.8A 2017-09-01 2017-09-01 Method and device for writing and reading data of BMC by host Active CN107526616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710780255.8A CN107526616B (en) 2017-09-01 2017-09-01 Method and device for writing and reading data of BMC by host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710780255.8A CN107526616B (en) 2017-09-01 2017-09-01 Method and device for writing and reading data of BMC by host

Publications (2)

Publication Number Publication Date
CN107526616A CN107526616A (en) 2017-12-29
CN107526616B true CN107526616B (en) 2021-04-13

Family

ID=60683276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710780255.8A Active CN107526616B (en) 2017-09-01 2017-09-01 Method and device for writing and reading data of BMC by host

Country Status (1)

Country Link
CN (1) CN107526616B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965382B (en) 2018-05-31 2021-06-29 郑州云海信息技术有限公司 File transfer method, device, equipment and medium based on BMC (baseboard management controller)
CN111061692A (en) * 2018-10-16 2020-04-24 阿里巴巴集团控股有限公司 Data access method, device, system and storage medium
CN110519391A (en) * 2019-09-05 2019-11-29 曙光信息产业(北京)有限公司 Document transmission method, device and readable storage medium storing program for executing
CN112395165A (en) * 2020-11-27 2021-02-23 中电科技(北京)有限公司 Method and equipment for acquiring resource utilization rate of server and server
CN115061701B (en) * 2022-08-16 2022-11-25 新华三信息技术有限公司 Out-of-band installation method and device for server

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI595364B (en) * 2015-08-18 2017-08-11 神雲科技股份有限公司 Automatic image recovery method and server system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100458699C (en) * 2007-04-10 2009-02-04 北京中星微电子有限公司 Method and system for updating fastener
CN105117246A (en) * 2015-08-04 2015-12-02 晶晨半导体(上海)有限公司 Method for rapidly booting electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI595364B (en) * 2015-08-18 2017-08-11 神雲科技股份有限公司 Automatic image recovery method and server system

Also Published As

Publication number Publication date
CN107526616A (en) 2017-12-29

Similar Documents

Publication Publication Date Title
CN107526616B (en) Method and device for writing and reading data of BMC by host
US10866912B2 (en) Integrated heterogeneous solid state storage drive
CN107209681B (en) Storage device access method, device and system
US8893146B2 (en) Method and system of an I/O stack for controlling flows of workload specific I/O requests
US20180032471A1 (en) Self-configuring ssd multi-protocol support in host-less environment
US20140006659A1 (en) Driver-assisted base address register mapping
US10956326B2 (en) Storage system with data management and protection mechanism and method of operation thereof
CN111198663B (en) Method, system, apparatus and storage medium for controlling data access operation
US10025510B1 (en) Technique for copying unallocated logical regions of thin logical units
US8930968B2 (en) Method and driver for processing data in a virtualized environment
CN105739930A (en) Storage framework as well as initialization method, data storage method and data storage and management apparatus therefor
KR20200001208A (en) Convergence Semiconductor Apparatus and Operation Method Thereof, Stacked Memory Apparatus Having the Same
US9454495B2 (en) Memory system capable of prohibiting access to application software and system software
CN114706531A (en) Data processing method, device, chip, equipment and medium
CN114417373A (en) Data access method and device for NVMe-oF user mode client
US9588691B2 (en) Dynamically managing control information in a storage device
CN111352899A (en) Path aggregation method, access method, communication device and storage medium
US10853255B2 (en) Apparatus and method of optimizing memory transactions to persistent memory using an architectural data mover
CN113377278A (en) Solid state disk, garbage recycling and controlling method, equipment, system and storage medium
CN113849379B (en) Method, device, equipment and readable medium for collecting server asset information
CN105100901B (en) A kind of virtual memory card configuration method and system
US20160188528A1 (en) Electronic system with storage control mechanism and method of operation thereof
CN113722147A (en) Method for keeping service connection and related equipment
US8667188B2 (en) Communication between a computer and a data storage device
US11144496B2 (en) Self-configuring SSD multi-protocol support in host-less environment

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