CN107357674A - A kind of information processing method, equipment and storage medium - Google Patents

A kind of information processing method, equipment and storage medium Download PDF

Info

Publication number
CN107357674A
CN107357674A CN201710518006.1A CN201710518006A CN107357674A CN 107357674 A CN107357674 A CN 107357674A CN 201710518006 A CN201710518006 A CN 201710518006A CN 107357674 A CN107357674 A CN 107357674A
Authority
CN
China
Prior art keywords
hard disk
image file
mirror
product information
disk mirror
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.)
Granted
Application number
CN201710518006.1A
Other languages
Chinese (zh)
Other versions
CN107357674B (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 CN201710518006.1A priority Critical patent/CN107357674B/en
Publication of CN107357674A publication Critical patent/CN107357674A/en
Application granted granted Critical
Publication of CN107357674B publication Critical patent/CN107357674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0712Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a virtual computing platform, e.g. logically partitioned 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The embodiment of the invention discloses a kind of information processing method, including:Obtain the first instruction of the hard disk product information for reading hard disk mirror-image file association;First instruction is performed, the hard disk product information being encapsulated in the hard disk mirror-image file is read from the hard disk mirror-image file.

Description

A kind of information processing method, equipment and storage medium
Technical field
The present invention relates to message area, more particularly to a kind of information processing method, device, equipment and storage medium.
Background technology
In the network for providing cloud service, physical machine can be to operate in physical machine as the carrier for providing resource Virtual machine provides a variety of virtual resources, e.g., virtual hard disk resource.The virtual machine run thereon for the ease of physical machine management is made Virtual hard disk resource, hard disk mirror-image File Technology arise at the historic moment.Hard disk mirror-image File Technology have read or write speed block and The advantages that hard disk size can dynamically be increased.
When physical machine uses hard disk mirror-image File Technology, physical machine firstly generates hard disk mirror-image file, configures and records Hard disk identifier corresponding to hard disk mirror-image file, hard disk mirror-image file is then distributed into virtual machine as virtual hard disk and used, Virtual machine is using the virtual hard disk space by the way of the physical hard disk of access entity on access hard disk image file.
Because hard disk identifier corresponding to hard disk mirror-image file needs to be configured by order line by operating personnel, and configure hard The order line of disc identifier is extremely complex, causes hard disk identifier to be easily configured mistake.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of information processing method, equipment and storage medium, can avoid Due to configuration error caused by the hard disk identifier of human configuration hard disk mirror-image file.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
In a first aspect, the embodiment of the present invention provides a kind of information processing method, methods described includes:Obtain hard for reading First instruction of the hard disk product information of disk mirroring file association;First instruction is performed, from the hard disk mirror-image file Read the hard disk product information being encapsulated in the hard disk mirror-image file.
Second aspect, the embodiment of the present invention provide a kind of computing device, including:Memory, processor and it is stored in storage Realized on device and the message handling program that can run on a processor, during the computing device described program described in first aspect Information processing method.
The third aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, including:It is stored with information processing journey Sequence, wherein, described information processing routine realizes the information processing method described in first aspect when being executed by processor the step of.
Information processing method provided in an embodiment of the present invention, by obtaining the hard disk for being used for reading hard disk mirror-image file association First instruction of product information;First instruction is performed, is read from the hard disk mirror-image file and is encapsulated in the hard disk mirror As the hard disk product information in file, because the hard disk product information of hard disk mirror-image file is stored in hard disk mirror-image file, because And when distributing hard disk resources to virtual machine, it is not necessary to hard disk identifier corresponding to manual configuration hard disk mirror-image file, so as to keep away Hard disk identifier configurations mistake corresponding to hard disk-free image file.
Brief description of the drawings
Fig. 1 is the schematic flow sheet one of the information processing method in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet two of the information processing method in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet three of the information processing method in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet four of the information processing method in the embodiment of the present invention;
Fig. 5 is the structural representation of the computing device in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Embodiment one:
Fig. 1 is the schematic flow sheet one of the information processing method in the embodiment of the present invention.As shown in figure 1, the above method can With including:
S101:Obtain the first instruction of the hard disk product information for reading hard disk mirror-image file association.
In embodiments of the present invention, hard disk mirror-image file is the hard disk resources presented in a software form, generally by being provided with The computing device generation of actual physical hard disk.Relative to physical hard disk, hard disk mirror-image file has read or write speed block, can dynamic Increase the improvements such as hard disk size, therefore the use of hard disk mirror-image file is very beneficial for the more rational allocation of storage resource. In practical application, for the memory space resource for making full use of actual physical hard disc apparatus can be provided, computing device can be adopted With hard disk mirror-image File Technology by the memory space resource on the actual physical hard disk on computing device, with hard disk mirror-image file Software form carries out division in logic.
After hard disk mirror-image file is generated, computing device can be to the behaviour run on other computing devices, computing device Make system, virtual machine or simulator and provide or distribute memory space resource corresponding to hard disk mirror-image file.In other realities of the invention Apply in example, the computing device that running has virtual machine or simulator is referred to as physical machine.The operation system run on computing device System can include:The operating system operated on computing device itself, the operating system operated on virtual machine or simulator.Then After image file is generated, computing device can be to the operating system or operation for asking hard disk resources on the computing device Virtual machine or simulator or the operating system that operates on virtual machine or simulator, there is provided or distribution hard disk mirror-image file Corresponding memory space resource.
In embodiments of the present invention, hard disk product information can be the resource identification of hard disk mirror-image file on the computing device Or for generating resource identification.For example, resource identification can be hard disk identifier.
For example, hard disk product information can be vital product data (Vital Product Data, VPD) or One or more information in VPD, or obtained according to VPD information.VPD can include range of information, such as product type Number, sequence number, device identification, HD vendor, the date of formation, unique name (World Wide Name, WWN) in the whole world etc..Its In, WWN is used as the resource identification of product due to its uniqueness, it might even be possible to unique mark as hard disk mirror-image file Know symbol.For the equipment with small computer system interface (Small Computer System Interface, SCSI), The VPD pages (VPD page) storage VPD information can be used, the VPD information being stored in VPD page can pass through inquiry INQUIRY orders are inquired about.
It should be noted that different from the VPD in actual physical hard disk produced by the manufacturing enterprise of production hard disc apparatus Write hard disk product when product dispatch from the factory, the hard disk product information of hard disk mirror-image file association in the embodiment of the present invention can be It is encapsulated in when generating hard disk mirror-image file in hard disk mirror-image file, for example, can be obtained described for reading hard disk mirror-image Before first instruction of the hard disk product information of file association, hard disk mirror-image file is generated according to default hard disk product information, Then the hard disk mirror-image file can include the hard disk product information.
In embodiments of the present invention, the first instruction can be by the operating system on computing device, the void on computing device Caused by plan machine or simulator or the operating system operated on virtual machine or simulator.For example, hard disk resources are asked Operating system or operation virtual machine on the computing device or simulator or operate on virtual machine or simulator Operating system, when needing to access or inquire about the memory space resource that hard disk mirror-image file is provided to computing device request, First instruction can be sent to computing device, with the hard disk product information of acquisition request hard disk mirror-image file.Exemplarily, institute The first instruction for obtaining the hard disk product information for being used to read hard disk mirror-image file association is stated, can be included:Obtain by operating in First instruction caused by operating system in physical machine;Or obtain and produced by the operating system run on a virtual machine It is described first instruction;Or obtain first instruction as caused by operating in the operating system on simulator.
In other embodiments of the present invention, exemplary, virtual machine or simulator can be based on virtual opetrating system mould Intend device QEMU technical operation.QEMU is widely used virtual machine and simulator on (SuSE) Linux OS.Based on QEMU's In virtual machine or simulator, virtual opetrating system simulator two generations Copy on write (qcow2) mirror-image format is commonly used in QEMU The form of hard disk mirror-image file.In other embodiments of the present invention, the form of hard disk mirror-image file also has not processed (raw) mirror As form, Copy on write (copy-on-right, cow) mirror-image format, virtual opetrating system simulator generation Copy on write Virtual hard disk form (the VMWare Virtual that (QEMU cow, qcow) mirror-image format, virtual machine prestige farsighted (VMWare) create Machine Disk Format, vmdk), etc..The embodiment of the present invention is not limited to the form of hard disk mirror-image file.
S102:The first instruction is performed, the hard disk product being encapsulated in hard disk mirror-image file is read from hard disk mirror-image file Information.
In embodiments of the present invention, due to itself being just packaged with hard disk mirror-image file after hard disk mirror-image file self-generating success Corresponding hard disk product information, computing device need to only preset storage address from hard disk mirror-image file corresponding to hard disk product information Middle reading hard disk product information can obtain hard disk product information corresponding to hard disk mirror-image file.In other embodiments of the invention In, computing device can also be modified to the hard disk product information in hard disk mirror-image file, and the embodiment of the present invention is not done to this Limitation.It is similar, the virtual machine or simulator that are run on computing device or operate in computing device or virtual machine or simulator On operating system can also read or change hard disk product information in hard disk mirror-image file.
Correspondingly, in other embodiments of the present invention, from hard disk mirror-image file read be encapsulated in hard disk mirror-image file In hard disk product information after, the virtual machine or simulator that are run on computing device, computing device or operate in calculating and set Operating system on standby or virtual machine or simulator, it is possible to which the hard disk product information in hard disk mirror-image file is to hard disk mirror As file is named, the resource identification of hard disk mirror-image file is obtained.Then, computing device, run on computing device it is virtual Machine or simulator or the operating system operated on computing device or virtual machine or simulator, it is possible to according to hard disk mirror-image The resource identification of file accesses the hard disk mirror-image file.Exemplary, if hard disk product information is VPD, can be believed according to VPD Sequence number information in breath configures hard disk identifier corresponding to hard disk mirror-image file.
Information processing method in the embodiment of the present invention, produced by obtaining the hard disk for being used to read hard disk mirror-image file association First instruction of product information;First instruction is performed, is read from the hard disk mirror-image file and is encapsulated in the hard disk mirror-image Hard disk product information in file, because the hard disk product information of hard disk mirror-image file is stored in hard disk mirror-image file, thus In the hard disk resources presented to virtual machine by hard disk mirror-image document form, it is not necessary to corresponding to manual configuration hard disk mirror-image file Hard disk identifier, so as to avoid hard disk identifier configurations mistake corresponding to hard disk mirror-image file.
Embodiment two:
On the basis of method shown in Fig. 1, the embodiment of the present invention also provides a kind of information processing method.Fig. 2 is the present invention The schematic flow sheet two of information processing method in embodiment.As shown in Fig. 2 the above method can include:
S201:Hard disk mirror-image file is generated according to default hard disk product information, the hard disk mirror-image file produces comprising hard disk Product information.
Wherein, the step can be performed by physical machine or the operating system operated in physical machine.
S202:Hard disk mirror-image file is distributed into the virtual machine operated in physical machine or simulator uses.
Wherein, the step can be performed by physical machine or the operating system operated in physical machine.
S203:The first instruction as caused by the virtual machine in physical machine is obtained, first instructs for reading the hard disk mirror As the hard disk product information of file.
Wherein, the step can be as the first of the hard disk product information obtained in S101 for reading hard disk mirror-image file The a kind of of instruction substitutes implementation.In other embodiments of the present invention, the virtual machine hair received in physical machine can also be used The first instruction sent, as above-mentioned acquisition, a kind of of the first instruction as caused by the virtual machine in physical machine substitutes implementation.
S204:The hard disk product information being encapsulated in hard disk mirror-image file is read from hard disk mirror-image file.
Wherein, the step can be performed by physical machine or the operating system operated in physical machine.The present invention other In embodiment, the virtual machine that is run in physical machine either simulator or the operating system operated on virtual machine or simulator The hard disk product information being encapsulated in hard disk mirror-image file can also be read from application image file, the embodiment of the present invention is to this It is not limited.
S205:The first response that the hard disk product information for carrying hard disk mirror-image file is sent to the virtual machine in physical machine disappears Breath.
Wherein, the step can be performed by physical machine or the operating system operated in physical machine.
It should be noted that above-mentioned acquisition can be used as using the first instruction as caused by the simulator in physical machine is obtained The a kind of of the first instruction substitutes implementation as caused by the virtual machine in physical machine.Correspondingly, to the simulator in physical machine Sending the first response message of the hard disk product information for carrying hard disk mirror-image file can send out as to the virtual machine in physical machine The a kind of of the first response message of the hard disk product information for carrying hard disk mirror-image file is sent to substitute implementation.
The operating system run in information processing method in the embodiment of the present invention, physical machine or physical machine can basis Default hard disk product information generation includes the hard disk mirror-image file of hard disk product information, so as in physical machine or physical machine The operating system of operation receives virtual machine in physical machine or simulator or the operation system operated on virtual machine or simulator , can be from hard disk mirror-image file directly during the first instruction of the hard disk product information for the poor hard disk mirror-image file of request that system is sent Read the product information of hard disk mirror-image file.That is, the operating system in physical machine, physical machine can be used as generation and pipe A side of hard disk mirror-image file is managed, to the opposing party of requesting query hard disk mirror-image file, such as the virtual machine in physical machine or simulation Device, or the operating system operated on virtual machine or simulator, there is provided the inquiry of the hard disk product information of hard disk mirror-image file Interface.So as to convenient request hard disk mirror-image text is obtained using the virtual machine or simulator or operating system of hard disk mirror-image file The hard disk product information of part.
Embodiment three:
The embodiment of the present invention also provides a kind of information processing method, is used to read the hard of hard disk mirror-image file association obtaining Before first instruction of disk product information, if can determine, hard disk mirror-image file is for the virtual machine operated in physical machine Or simulator provides memory space resource, then physical machine can also in the virtual machine in physical machine or simulator startup optimization, Or hard disk product information can also be added into hard disk mirror-image file before hard disk mirror-image file is allocated, as VPD believes Breath, and hard disk product information is not necessarily added into hard disk mirror-image file when generating hard disk mirror-image file.Other realities of the invention Apply in example, vpd information can include hard disk identifier.
Information processing method provided in an embodiment of the present invention has the advantages of following many aspects.
First, physical machine need not be when virtual machine starts, by order line (Command, cmd) to be to be allocated to virtual The hard disk mirror-image file configuration hard disk identifier of machine, so as to be reduced or avoided because configuration order row is extremely complex, causes Manual configuration Problem-Error.The order line example of manual configuration is as follows:
Qemu-system-x86_64-enable-kvm-netdev tap, helper=/home/wangsy/qemu- 2.7.0/qemu-bridge-helper, id=hn0-device virtio-net-pci, netdev=hn0, id=nic1- bios/home/wangsy/ovmf/OVMF.fd-m 4G-smp 8-vnc:1-device virtio-scsi-pci, id= Scsi0-drive file=/home/wangsy/img/rhel7.2uefi.qcow2, if=none, id=drive- Scsi0-0-0-0, format=qco w2, bus=0, serial=WD-WMAP9A966149-device scsi-hd, bus =scsi0.0, channel=0, scsi-id=0, lun=0, drive=drive-scsi0-0-0-0, id=scsi0-0- 0-0, wwn=0x5000c50015ea71ad
Wherein, " serial=WD-WMAP9A966149-device ", " wwn=0x5000c50015ea71ad " etc. are VPD information, from above example, the order line of manual configuration is sufficiently complex.Using method provided in an embodiment of the present invention, by In hard disk product information can be read directly from hard disk mirror-image file, it then can utilize and read and can make in hard disk mirror-image file For the hard disk product information of the resource identification of hard disk mirror-image file, so as to not need the hard of manual configuration hard disk mirror-image file Disc identifier, and then configuration error problem caused by manual configuration can be avoided.
Second, during hard disk identifier due to manually configuring hard disk mirror-image file, hard disk identifier is and order line Binding, rather than bound with hard disk mirror-image file, therefore, can be to same hard disk mirror-image file configuration hard disk using order line Product information configures identical or different hard disk product information, i.e. a hard disk mirror-image file may be configured as corresponding multiple Hard disk product information, this is equivalent to a hard disk mirror-image file and is seen as two different hard disk mirror-image files, so as to The memory space resource for causing hard disk mirror-image file to provide occurs using conflict, and then causes the void using the hard disk mirror-image file Unpredictable run-time error occurs for plan machine or simulator.Using method provided in an embodiment of the present invention, by from hard disk mirror-image Hard disk product information corresponding to reading hard disk mirror-image file in file, can ensure to read in same hard disk mirror-image file hard The uniqueness of disk product information, so in virtual machine to the hard disk mirror-image file in use, can ensure that the hard disk mirror-image file On memory space resource can be not repeated use, so as to ensure that use the hard disk mirror-image file virtual machine or simulator Operation result correctness.
Exemplary, when the hard disk product information of hard disk mirror-image file is VPD information, physical machine or computing device or fortune Operating system of the row in physical machine or virtual machine can also be used as to hard disk mirror according to the sequence number in VPD information or WWN Hard disk mirror-image file is named as the naming basis of file, and according to default name algorithm, due to sequence number and WWN Uniqueness so that the only unique name result of name to same hard disk mirror-image file.
The other technologies details and technique effect of the embodiment of the present invention refer to the information processing method shown in Fig. 1 to Fig. 2 Description in embodiment.
Example IV:
The embodiment of the present invention also provides a kind of information processing method, and the present embodiments relate to transported in physical machine, physical machine Capable virtual machine and the hard disk mirror-image file for being generated by physical machine or being managed, the hard disk mirror-image file after virtual machine startup by Physical machine is distributed to virtual machine and used as hard disk resources.Fig. 3 is that the flow of the information processing method in the embodiment of the present invention is shown It is intended to three, as shown in figure 3, the above method can include:
S301:Physical machine adds VPD information into hard disk mirror-image file.
Wherein, the physical machine in the embodiment of the present invention can also be the operating system of physical machine self-operating.
S302:Physical machine starts according to virtual machine to be indicated, starts virtual machine.
Wherein, the virtual machine starts instruction, can be that the virtual machine that physical machine receives starts instruction or physics The virtual machine of operating system generation on machine starts instruction, and the present invention is without limitation.Physical machine, can when starting virtual machine Every resource needed for virtual machine distribution virtual machine is thought, for example, hard disk resources, processor resource, network interface card resource etc..
S303:Virtual machine sends request distribution hard disk resources to physical machine and obtains VPD information corresponding to hard disk resources Query statement.
Wherein, virtual machine can send the query statement to physical machine upon actuation.
S304:Physical machine reads VPD information from hard disk mirror-image file.
S305:Physical machine sends to carry to virtual machine distributes to looking into for VPD information corresponding to the hard disk resources of virtual machine Ask response.
S306:Virtual machine is named according to VPD information to the hard disk resources of distribution, obtains hard disk resources title.
S307:Virtual machine sends hard disk resources title corresponding to hard disk resources to physical machine.
S308:The corresponding relation of physical machine recording disk resource name and VPD information.
S309:Virtual machine is according to hard disk resources title access hard disk image file.
In other embodiments of the present invention, can also be by virtual machine certainly after virtual machine is named to hard disk resources The corresponding relation of body storage hard disk resource and VPD information, and VPD believes according to corresponding to hard disk resources title and hard disk resources title Breath inquiry hard disk resources are, it is necessary to which explanation, now, the hard disk resources distributed by hard disk mirror-image document form will be by virtual machine Regard that the hard disk resources identical hard disk resources provided with the physical hard disk of entity are used and accessed as.
In embodiments of the present invention, above-mentioned virtual machine can also be the simulator run in physical machine.Exemplary, virtually Machine or simulator can be based on virtual opetrating system simulator QEMU technical operation.It should be noted that QEMU be one kind can With the technology of simulation computer operating system, i.e., the operating system based on QEMU technical modellings can be run on virtual machine (Operation System, OS).
In other embodiments of the present invention, administrative unit corresponding to hard disk mirror-image file can also be included in physical machine, firmly Administrative unit corresponding to disk mirroring file can be the either hard disk mirror that the operating system in physical machine or physical machine provides The Logical processing unit possessed as file itself.
Then above-mentioned physical machine, which adds VPD information into hard disk mirror-image file, can use following replacement implementation:Thing The administrative unit of reason machine to the hard disk mirror-image file previously generated is sent for adding adding for VPD information into hard disk mirror-image file Add message, the administrative unit of hard disk mirror-image file is sent to physical machine represents addition successfully addition response.
Correspondingly, above-mentioned physical machine reads VPD information from hard disk mirror-image file, can use following replacement realization side Formula:The VPD inquiries that physical machine sends the VPD information for inquiring about hard disk mirror-image file to the administrative unit of hard disk mirror-image file refer to Order.Exemplary, VPD query statements can be SCSI query statements scsi_disk_emulated_inqury.
Fig. 4 is the handling process schematic diagram four of the information processing method in the embodiment of the present invention.Refer to Fig. 4, hard disk mirror As the administrative unit of file is after VPD query statements are received, it can inquire about in the header file of hard disk mirror-image file and whether include VPD information (Has vpd info), for example, whether VPD page iden-tities can be supported by inquiry determine in header file whether Include VPD information.If successful inquiring, the administrative unit of hard disk mirror-image file can carry the VPD information in header file Physical machine is sent in VPD inquiry responses.If not including VPD information in the header file of hard disk mirror-image file, i.e. inquiry is lost Lose, then the administrative unit of hard disk mirror-image file can perform default default instruction (Assign by command), such as using pre- If acquiescence VPD information fed back, it is exemplary, can will carry it is default acquiescence VPD information VPD inquiry responses hair Give physical machine.In other embodiments of the present invention, the VPD information of the acquiescence can be made by oneself using the virtual machine of QEMU technologies The acquiescence VPD information of justice, to ensure that virtual machine can identify the VPD information as VPD information corresponding to hard disk mirror-image file, and then Corresponding differentiation processing can be carried out, to avoid repeatedly naming same hard disk mirror-image file.
Fig. 4 is referred to, hard disk mirror-image file can be by two part groups of header file (header) and data division (Data) Into.Wherein, header file may include whether to support VPD page iden-tities (Supported VPD pages), sequence number (Unit Serial Number), the information such as device identifying information (Device Identification).Whether VPD page iden-tity is supported The page for originating in page 00h can be located at, sequence number can be located at the page for originating in page 80h, and device identifying information can With positioned at the page for originating in page 83h.
In other embodiments of the present invention, the operating system in physical machine can be used to perform the step that above-mentioned virtual machine performs Suddenly the step of above-mentioned physical machine performs, is performed by the administrative unit of hard disk mirror-image file, correspondingly, physical machine is distributed to virtual machine Hard disk resources can be replaced the administrative unit of physical machine and distribute hard disk resources to the operating system in physical machine.
The other technologies details and technique effect of the embodiment of the present invention refer to the information processing method shown in Fig. 1 to Fig. 4 Description in embodiment.
Embodiment five:
Based on also providing a kind of computing device with above- mentioned information processing method identical inventive concept, the embodiment of the present invention 50, including:Memory 501, processor 502 and storage are on a memory and the message handling program that can run on a processor (not shown), the processor 502 realize above-mentioned one or more information processing methods when performing described program.
In embodiments of the present invention, computing device 50 can also be physical machine.
In other embodiments of the present invention, computing device 50 can also include interface 503, and interface 503 can be used for counting Calculate equipment communicated with the administrative unit of hard disk mirror-image file or, can be used for physical machine and virtual machine, simulator progress Communication, can also be that computing device is communicated with other computing devices, for example, the reception can be used for receiving virtual machine startup Instruction.In other embodiments of the present invention, computing device 50 can also include bus 504, memory 501, processor 502 and connect Mouth 503 can be communicated by bus 504.
In other embodiments of the present invention, memory 501 can be the physical hard disk of entity.
In other embodiments of the present invention, processor 502 can be further used for performing following steps:Described from described Read and be encapsulated in after the hard disk product information in the hard disk mirror-image file in hard disk mirror-image file, according to the hard disk mirror-image Hard disk product information in file is named to the hard disk mirror-image file, obtains the resource mark of the hard disk mirror-image file Know;The hard disk mirror-image file is accessed according to the resource identification.
In other embodiments of the present invention, processor 502 can be further used for performing following steps:According to the hard disk Hard disk identifier in product information is named to the hard disk mirror-image file, obtains the hard disk of the hard disk mirror-image file Name.
In other embodiments of the present invention, processor 502 can be further used for performing following steps:Obtain by operating in First instruction caused by operating system in physical machine;Or obtain and produced by the operating system run on a virtual machine It is described first instruction;Or obtain first instruction as caused by operating in the operating system on simulator.
In other embodiments of the present invention, processor 502 can be further used for performing following steps:Used in described obtain Before the first of hard disk product information of hard disk mirror-image file association the instruction is read, generated according to default hard disk product information The hard disk mirror-image file, the hard disk mirror-image file include the hard disk product information.
In other embodiments of the present invention, processor 502 can be further used for performing following steps:It is pre- in the basis If hard disk product information generate the hard disk mirror-image file after, and obtained described for reading hard disk mirror-image file association Hard disk product information the first instruction before, the hard disk mirror-image file is distributed to the virtual machine that operates in physical machine or Simulator uses;Obtain first instruction as caused by virtual machine or simulator in the physical machine, first instruction For reading the hard disk product information of the hard disk mirror-image file;Correspondingly, read described from the hard disk mirror-image file After the hard disk product information of the hard disk mirror-image file, sent to the virtual machine in the physical machine or simulator described in carrying First response message of the hard disk product information of hard disk mirror-image file.
The other technologies details and technique effect of the embodiment of the present invention refer to the information processing method shown in Fig. 1 to Fig. 4 Description in embodiment.
Embodiment six:
The embodiment of the present invention also provides a kind of computer-readable recording medium, including:Message handling program is stored with, its In, the step of described information processing routine realizes above-mentioned one or more information processing methods when being executed by processor.
The other technologies solution details and technique effect of the embodiment of the present invention are similar to embodiment illustrated in fig. 4 with Fig. 1, specifically Refer to the associated description in information processing method embodiment shown in Fig. 1 to Fig. 4.
It will be understood by those skilled in the art that " one embodiment " or " embodiment " that specification is mentioned in the whole text means During special characteristic, structure or the characteristic relevant with embodiment is included at least one embodiment of the present invention.Therefore, entirely saying " in one embodiment " or " in one embodiment " that bright book occurs everywhere not necessarily refers to identical embodiment.In addition, this A little specific feature, structure or characteristics can combine in one or more embodiments in any suitable manner.It should be understood that at this In the various embodiments of invention, the size of the sequence number of above-mentioned each process is not meant to the priority of execution sequence, and each process is held Row order should determine that the implementation process without tackling the embodiment of the present invention forms any restriction with its function and internal logic.On State that sequence number of the embodiment of the present invention is for illustration only, do not represent the quality of embodiment.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through Its mode is realized.Apparatus embodiments described above are only schematical, for example, the division of the unit, is only A kind of division of logic function, there can be other dividing mode when actually realizing, such as:Multiple units or component can combine, or Another system is desirably integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed each composition portion Point mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs by some interfaces, equipment or unit Or communication connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location;Both a place can be located at, multiple network lists can also be distributed to In member;Partly or entirely unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used To be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned Integrated unit can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of information processing method, it is characterised in that methods described includes:
Obtain the first instruction of the hard disk product information for reading hard disk mirror-image file association;
First instruction is performed, the hard disk production being encapsulated in the hard disk mirror-image file is read from the hard disk mirror-image file Product information.
2. according to the method for claim 1, it is characterised in that be encapsulated in described read from the hard disk mirror-image file After hard disk product information in the hard disk mirror-image file, methods described also includes:
Hard disk product information in the hard disk mirror-image file is named to the hard disk mirror-image file, is obtained described hard The resource identification of disk mirroring file;
The hard disk mirror-image file is accessed according to the resource identification.
3. according to the method for claim 2, it is characterised in that the hard disk product in the hard disk mirror-image file Information is named to the hard disk mirror-image file, obtains the resource identification of the hard disk mirror-image file, including:
Hard disk identifier in the hard disk product information is named to the hard disk mirror-image file, obtains the hard disk The hard disk name of image file.
4. according to the method for claim 1, it is characterised in that described to obtain for reading the hard of hard disk mirror-image file association First instruction of disk product information, including:
Obtain first instruction as caused by operating in the operating system in physical machine;Or
Obtain first instruction as caused by running operating system on a virtual machine;Or
Obtain first instruction as caused by operating in the operating system on simulator.
5. according to the method for claim 1, it is characterised in that obtained described for reading hard disk mirror-image file association Before first instruction of hard disk product information, methods described also includes:
The hard disk mirror-image file is generated according to default hard disk product information, the hard disk mirror-image file produces including the hard disk Product information.
6. according to the method for claim 5, it is characterised in that described according to the generation of default hard disk product information After hard disk mirror-image file, and in first instruction for obtaining the hard disk product information for reading hard disk mirror-image file association Before, methods described also includes:The hard disk mirror-image file is distributed into the virtual machine operated in physical machine or simulator makes With;
First instruction for obtaining the hard disk product information for reading hard disk mirror-image file, including:Obtain by the physics First instruction caused by virtual machine or simulator on machine, described first instructs for reading the hard disk mirror-image file Hard disk product information;
Correspondingly, after the hard disk product information that the hard disk mirror-image file is read from the hard disk mirror-image file, Methods described also includes:The hard disk production for carrying the hard disk mirror-image file is sent to the virtual machine in the physical machine or simulator First response message of product information.
7. according to the method for claim 6, it is characterised in that the virtual machine or the simulator is based on pseudo operations System simulator QEMU technical operation.
8. method according to any one of claims 1 to 7, it is characterised in that the hard disk product letter of the hard disk mirror-image file Cease for vital product data VPD information.
A kind of 9. computing device, it is characterised in that including:
Memory, processor and storage on a memory and the message handling program that can run on a processor, the processor Realize claim 1 to claim 8 any described information processing method when performing described program.
A kind of 10. computer-readable recording medium, it is characterised in that including:Message handling program is stored with, wherein, the letter The step of breath processing routine realizes the information processing method as any one of claim 1 to 8 when being executed by processor.
CN201710518006.1A 2017-06-29 2017-06-29 Information processing method, device and storage medium Active CN107357674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710518006.1A CN107357674B (en) 2017-06-29 2017-06-29 Information processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710518006.1A CN107357674B (en) 2017-06-29 2017-06-29 Information processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN107357674A true CN107357674A (en) 2017-11-17
CN107357674B CN107357674B (en) 2021-02-19

Family

ID=60273280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710518006.1A Active CN107357674B (en) 2017-06-29 2017-06-29 Information processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN107357674B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546283A (en) * 2022-02-25 2022-05-27 苏州浪潮智能科技有限公司 Storage link port management method and device of storage equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060072231A1 (en) * 2004-10-06 2006-04-06 Fischer Jonathan H Current mirrors having fast turn-on time
CN105955674A (en) * 2016-06-16 2016-09-21 北京航空航天大学 Quick modularized assembling method, device and system of virtual machine disk mirror image
CN106201648A (en) * 2016-06-27 2016-12-07 浪潮电子信息产业股份有限公司 A kind of virtual machine creation method and device
CN106339117A (en) * 2015-07-10 2017-01-18 宸鸿科技(厦门)有限公司 Display device comprising three-dimensional input module
CN106528345A (en) * 2016-11-11 2017-03-22 郑州云海信息技术有限公司 Cloud platform-based node hard disk automated recovery method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060072231A1 (en) * 2004-10-06 2006-04-06 Fischer Jonathan H Current mirrors having fast turn-on time
CN106339117A (en) * 2015-07-10 2017-01-18 宸鸿科技(厦门)有限公司 Display device comprising three-dimensional input module
CN105955674A (en) * 2016-06-16 2016-09-21 北京航空航天大学 Quick modularized assembling method, device and system of virtual machine disk mirror image
CN106201648A (en) * 2016-06-27 2016-12-07 浪潮电子信息产业股份有限公司 A kind of virtual machine creation method and device
CN106528345A (en) * 2016-11-11 2017-03-22 郑州云海信息技术有限公司 Cloud platform-based node hard disk automated recovery method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114546283A (en) * 2022-02-25 2022-05-27 苏州浪潮智能科技有限公司 Storage link port management method and device of storage equipment and storage medium
CN114546283B (en) * 2022-02-25 2023-08-18 苏州浪潮智能科技有限公司 Storage link port management method and device of storage device and storage medium

Also Published As

Publication number Publication date
CN107357674B (en) 2021-02-19

Similar Documents

Publication Publication Date Title
US20200278880A1 (en) Method, apparatus, and system for accessing storage device
CN102523264B (en) USB (Universal Serial Bus) equipment remote sharing method and system for virtual machine
CN110232034A (en) Host system and its method and accelerating module
CN103078965B (en) The IP address management method of virtual machine
US20120297382A1 (en) Virtual server and virtual machine management method for supporting zero client
CN104965757A (en) Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN102388357B (en) Method and system for accessing memory device
CN104885062A (en) Using logical to physical map for direct user space communication with data storage device
CN105335309B (en) A kind of data transmission method and computer
CN103176833A (en) Data transmission method, data receiving method and system based on virtual machine
CN102012899A (en) Method, system and equipment for updating data
CN103176913B (en) Hard disk method for mapping dynamically and the server applying it
CN113051102B (en) File backup method, device, system, storage medium and computer equipment
CN105786732A (en) Data access method and apparatus
CN111651269A (en) Method, device and computer readable storage medium for realizing equipment virtualization
CN107357674A (en) A kind of information processing method, equipment and storage medium
CN116540952B (en) Disk access method and device, storage medium and electronic equipment
CN107643938A (en) Data transmission method, device and storage medium
US8225068B2 (en) Virtual real memory exportation for logical partitions
CN116339927B (en) Equipment determining method, device, storage medium and electronic device
CN108270858A (en) A kind of private cloud framework and its data processing method based on API gateway
CN106161487A (en) The information processing method of server
KR101881637B1 (en) Job process method and system for genome data analysis
CN114691037A (en) System and method for managing unloading card name space and processing input/output request
CN102662724B (en) Method, apparatus and system for device initialization

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