CN110336693A - Management method, device, equipment and the storage medium of network control techology - Google Patents

Management method, device, equipment and the storage medium of network control techology Download PDF

Info

Publication number
CN110336693A
CN110336693A CN201910480124.7A CN201910480124A CN110336693A CN 110336693 A CN110336693 A CN 110336693A CN 201910480124 A CN201910480124 A CN 201910480124A CN 110336693 A CN110336693 A CN 110336693A
Authority
CN
China
Prior art keywords
network control
client
control techology
network
tag attributes
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
CN201910480124.7A
Other languages
Chinese (zh)
Other versions
CN110336693B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910480124.7A priority Critical patent/CN110336693B/en
Publication of CN110336693A publication Critical patent/CN110336693A/en
Application granted granted Critical
Publication of CN110336693B publication Critical patent/CN110336693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Whether the invention discloses a kind of management methods of network control techology, comprising the following steps: when client detects rbd-nbd starting, judge client load networks Block Device Driver;In client load networks Block Device Driver, the kernel of client drives to network control techology sends creation instruction;Network control techology driving obtains creation and instructs corresponding tag attributes, and in the corresponding network control techology of kernel establishing label attribute of client;When client receives network control techology operational order, the corresponding tag attributes of operational order are obtained;By tag attributes and preset path rule, the corresponding target network block device of operational order is determined, to execute operational order to target network block device.The invention also discloses a kind of managing device of network control techology, equipment and storage mediums.Tag attributes of the present invention are added in network control techology, realize the quick search and convenient management of network control techology.

Description

Management method, device, equipment and the storage medium of network control techology
Technical field
The present invention relates to the management method of network control techology field more particularly to network control techology, device, equipment and storages Medium.
Background technique
Network control techology (network block device abbreviation nbd equipment) is the widely used one kind of Linux system Block device.
Network control techology title in active client is all the format using nbd+ number, such as/dev/nbd0 ,/dev/ nbd1;But the number in network control techology title is not fixed, but according to current network control techology service condition Incremental.When client will carry out network control techology positioning in this way, it can not be accurately located network control techology, network block is caused to set Standby difficult management.
Summary of the invention
The main purpose of the present invention is to provide a kind of management method of network control techology, device, equipment and storage medium, Aim at the quick search and convenient management of network control techology.
To achieve the above object, the present invention provides the management method of network control techology, the manager of the network control techology Method the following steps are included:
When client detects rbd-nbd starting, the client whether load networks Block Device Driver is judged;
In client load networks Block Device Driver, the kernel of the client drives to the network control techology It is dynamic to send creation instruction;
The network control techology driving obtains the creation and instructs corresponding tag attributes, and in the kernel of the client Create the corresponding network control techology of the tag attributes;
When client receives network control techology operational order, the corresponding tag attributes of the operational order are obtained;
By the tag attributes and preset path rule, the corresponding target network block device of the operational order is determined, and The operational order is executed to the target network block device.
Optionally, described in client load networks Block Device Driver, the kernel of the client is to described Network control techology driving sends the step of creation instruction, comprising:
In client load networks Block Device Driver, the driving version letter of the network control techology driving is obtained Breath obtains the device version information for the network control techology that history has created;
According to the driving version information and the device version information, the driving version of the network control techology driving is judged Whether this is identical with the device version for the network control techology that history has created;
If the driving version is different from the device version, the client exports prompt information, described in prompt Client corresponds to user and loads new network control techology driving;
If the driving version is identical as the device version, the kernel of the client drives to the network control techology It is dynamic to send creation instruction.
Optionally, the network control techology driving obtains the creation and instructs corresponding tag attributes, and in the client The kernel at end creates the step of tag attributes corresponding network control techology, comprising:
Device bus interface is called in the network control techology driving, and the device bus interface obtains the creation instruction pair The tag attributes answered, and the tag attributes are written in the device bus interface correspondence system file, wherein the mark Label attribute refers to equipment block identification and services the mapping relations of device mark;
System file of the client by operation comprising the tag attributes, creates in the kernel of the client To the corresponding network control techology of the tag attributes.
Optionally, described by the tag attributes and preset path rule, determine the corresponding target network of the operational order Network block device, and the step of operational order is executed to the target network block device, comprising:
The tag attributes are input in the corresponding path template of preset path rule, the direction network block is generated and sets Standby operational order corresponds to the network path of target network block device;
The target network block device is searched by the network path, and the behaviour is executed to the target network block device It instructs.
Optionally, described by the tag attributes and preset path rule, determine the corresponding target network of the operational order Network block device, and after the step of executing the operational order to the target network block device, comprising:
When client receives network control techology and deletes instruction, obtains the network control techology and delete the corresponding mark of instruction Sign attribute;
Network control techology described in the client call drives corresponding device bus interface, and the tag attributes are defeated Enter in the corresponding system file of the device bus interface,
The device bus interface runs the system file, deletes the corresponding network control techology of the tag attributes.
Optionally, the network control techology driving obtains the creation and instructs corresponding tag attributes, and in the client The kernel at end created after the step of tag attributes corresponding network control techology, comprising:
When the network control techology creates completion, the client establishes the network control techology and the tag attributes The connection of middle server identification corresponding server, so that the application program of the client uses the network control techology.
Optionally, described when client detects rbd-nbd starting, judge the client whether load networks block After the step of device drives, comprising:
When the client does not have load networks Block Device Driver, the client dynamic application main equipment block identification, And register the corresponding device bus interface of the main equipment block identification;
The device bus interface register complete when, it is total that predefined attribute is added to the equipment by the client In the corresponding system file of line interface, to load the network control techology driving of target version;
When the network control techology drive load of target version is completed, the kernel of the client is to the network block The corresponding device bus interface of device drives sends creation instruction;
The tag attributes in the creation instruction are obtained by the device bus interface, and execute the creation instruction, The corresponding network control techology of the tag attributes is created in the kernel of the client.
In addition, to achieve the above object, the present invention also provides the managing device of network control techology, the network control techology Managing device includes:
Judgment module is driven, for judging whether the client has loaded when client detects rbd-nbd starting Network control techology driving;
Instruction sending module is used for the kernel of the client in client load networks Block Device Driver It is driven to the network control techology and sends creation instruction;
Equipment creation module obtains the creation for network control techology driving and instructs corresponding tag attributes, and The corresponding network control techology of the tag attributes is created in the kernel of the client;
Request receiving module, for obtaining the operational order when client receives network control techology operational order Corresponding tag attributes;
Operation executing module, for determining that the operational order is corresponding by the tag attributes and preset path rule Target network block device, and the operational order is executed to the target network block device.
In addition, to achieve the above object, the present invention also provides a kind of management equipments of network control techology;
The management equipment of the network control techology includes: memory, processor and is stored on the memory and can be The computer program run on the processor, in which:
The computer program realizes the management method of network control techology as described above when being executed by the processor Step.
In addition, to achieve the above object, the present invention also provides computer storage mediums;
Computer program, the realization when computer program is executed by processor are stored in the computer storage medium The step of such as management method of above-mentioned network control techology.
Management method, device, equipment and the storage medium for a kind of network control techology that the embodiment of the present invention proposes, in client When end detects rbd-nbd starting, the client whether load networks Block Device Driver is judged;Add in the client When support grid network Block Device Driver, the kernel of the client drives to the network control techology sends creation instruction;The network Block Device Driver obtains the creation and instructs corresponding tag attributes, and creates the tag attributes in the kernel of the client Corresponding network control techology;When client receives network control techology operational order, the corresponding mark of the operational order is obtained Sign attribute;By the tag attributes and preset path rule, the corresponding target network block device of the operational order is determined, and right The target network block device executes the operational order.In the present invention when network control techology creates, network block is set Standby tag attributes are added in network control techology, when client receives network control techology operational order, according to label category Property and preset path rule generate and be directed toward operational order and correspond to the network path of target network block device, with rapidly lock onto target Network control techology finally realizes the convenient management of network control techology.
Detailed description of the invention
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the management method first embodiment of inventive network block device;
Fig. 3 is the functional block diagram of one embodiment of managing device of inventive network block device.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 be the hardware running environment that the embodiment of the present invention is related to terminal (be called client, or The management equipment of person's network control techology, wherein the management equipment of network control techology can be by the pipe of individual network control techology Manage device constitute, be also possible to be combined by other devices with the managing device of network control techology formed) structural schematic diagram.
The terminal of that embodiment of the invention can be also possible to mobile terminal with fixed terminal, e.g., the Intelligent air with network savvy Tune, intelligent electric lamp, intelligent power, intelligent sound box, autonomous driving vehicle, PC (personal computer) personal computer, intelligence Energy mobile phone, tablet computer, E-book reader, portable computer etc..
As shown in Figure 1, the terminal may include: processor 1001, for example, central processing unit Central Processing Unit, CPU), network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 For realizing the connection communication between these components.User interface 1003 may include display screen (Display), input unit ratio Such as keyboard (Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 may include optionally that (such as Wireless Fidelity WIreless-FIdelity, WIFI connect standard wireline interface and wireless interface Mouthful).Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), For example, magnetic disk storage.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Optionally, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module;Input unit, than display screen, touch screen;Network interface can in blanking wireless interface in addition to WiFi, bluetooth, Probe etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, optical sensor can wrap Include ambient light sensor and proximity sensor;Certainly, mobile terminal can also configure gyroscope, barometer, hygrometer, thermometer, The other sensors such as infrared sensor, details are not described herein.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, the computer software product, which is stored in a storage medium, (storage medium: is called computer storage Medium, computer media, readable medium, readable storage medium storing program for executing, computer readable storage medium are directly medium etc., storage Medium can be non-volatile readable storage medium, such as RAM, magnetic disk, CD) in, including some instructions use is so that an end End equipment (can be mobile phone, computer, server, air conditioner or the network equipment etc.) executes each embodiment institute of the present invention The method stated, as may include operating system, network communication module, use in a kind of memory 1005 of computer storage medium Family interface module and computer program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the computer program stored in memory 1005, and execute the network that following embodiment of the present invention provides Step in the management method of block device.
The present embodiment proposes a kind of management method of network control techology, applied to client as shown in Figure 1, in client Comprising kernel, client can be with load networks Block Device Driver, to realize the convenient management of network control techology.
Referring to Fig. 2, in the first embodiment of the management method of inventive network block device, the pipe of the network control techology Reason method includes:
Step S10 judges whether load networks block is set the client when client detects rbd-nbd starting Standby driving.
It is provided with monitoring module in client to monitor each application program of client, monitors mould in the client When block detects application program rbd-nbd starting, client traverses the network control techology that each history has created, to judge each history It whether there is the target network block device of idle state in the network control techology created;It is set in the network block that each history has created Standby middle there are when the target network block device of idle state, detection receives network control techology operational order, and response to network block is set Standby operational order.
When the target network block device of idle state being not present in the network control techology that each history has created, client is needed Create network control techology, wherein the creation of network control techology drives dependent on network control techology, and therefore, client judgement is worked as Preceding whether load networks Block Device Driver.
Step S20, in client load networks Block Device Driver, the kernel of the client is to the network Block Device Driver sends creation instruction.
In client load networks Block Device Driver, client determines whether the version of network control techology driving meets The creation condition of network control techology, specifically:
Step a1 obtains the drive of the network control techology driving in client load networks Block Device Driver Dynamic version information, obtains the device version information for the network control techology that history has created;
Step a2 judges the network control techology driving according to the driving version information and the device version information Driving version and the device version of the network control techology that has created of history it is whether identical;
Step a3, if the driving version is different from the device version, the client exports prompt information, to mention Show that the client corresponds to user and loads new network control techology driving;
Step a4, if the driving version is identical as the device version, the kernel of the client is to the network Block Device Driver sends creation instruction.
It is understood that in the present embodiment client load networks Block Device Driver when, client obtain network block The device version information of the driving version information and network control techology of device drives, wherein driving version information includes driving version This title, driving version issuing time and driving version property etc., device version information includes device version title, device version Issuing time and device version attribute;Client judges that network control techology drives according to driving version information and device version information Whether the device version of dynamic driving version and network control techology is identical.
If driving version identical as device version, the kernel of client, which drives to send to create to the network control techology, to be referred to It enables;If driving version different from device version, client exports prompt information, loads new net to prompt client to correspond to user Network Block Device Driver, or prompt client correspond to user and exit network the creation of block device, are effectively prevented from and set with network block The case where obscuring use between standby driving different editions.
In the present embodiment when driving version identical as device version, the kernel of client drives to network control techology to be sent Creation instruction, with dynamic creation network control techology, that is,
Step S30, the network control techology driving obtain the creation and instruct corresponding tag attributes, and in the client The kernel at end creates the corresponding network control techology of the tag attributes.
Creation is obtained in the network control techology driving of client and instructs corresponding tag attributes, to create the tag attributes pair The network control techology answered, specifically, comprising:
Device bus interface is called in step S31, the network control techology driving, and the device bus interface obtains the wound The corresponding tag attributes of instruction are built, and tag attributes are written in the device bus interface correspondence system file.
Device bus interface is called in the network control techology driving of client, and device bus interface obtains creation and refers in client (equipment block identification refers to the identification information for uniquely determining network control techology to equipment block identification in order, for example, network control techology is compiled Number) and server identification (server identification refers to the identification information of server connect with creation network control techology, for example, taking Business device number or host ip), client is using the mapping relations between equipment block identification and server identification as label category Property, tag attributes are written in device bus interface correspondence system file by network control techology driving.
Wherein, system file is associated with device bus interface, the attribute needed has been pre-defined in system file, addition connects Mouth, deletion interface etc..Addition interface, deletion interface in device bus interface is by receiving the creation of rbd-nbd, deleting The order of nbd equipment executes creation or deletes the operation of network control techology.
Step S32, system file of the client by operation comprising the tag attributes, in the client Core creates to obtain the corresponding network control techology of the tag attributes.
System file of the client by operation comprising tag attributes, creates to obtain in the kernel of client in the present embodiment The corresponding network control techology of tag attributes, realizes the dynamic creation of network control techology.In addition, detecting network block in client When equipment creation is completed, client obtains the server identification in tag attributes, and client simultaneously establishes network control techology and the clothes The connection for device mark corresponding server of being engaged in, so that the application program of client uses the network control techology.
Step S40 obtains the corresponding label of the operational order when client receives network control techology operational order Attribute.
When client receives network control techology operational order, wherein operational order can be inquiry instruction, update refers to Order and/or access instruction etc., the triggering mode of operational order is not specifically limited, that is, the network block operational order can be What user actively triggered, it can also be automatic trigger when client determines to meet default automatic trigger condition;It is terminated in client After receiving network control techology operational order, client obtains the corresponding tag attributes of network control techology operational order.
Step S50 determines the corresponding target network block of the operational order by the tag attributes and preset path rule Equipment, and the operational order is executed to the target network block device.
Client determines target network block device, and to the target network block by tag attributes and preset path rule Equipment executes the operational order, specifically:
The tag attributes are input in the corresponding path template of preset path rule, generate described in being directed toward by step b1 Network control techology operational order corresponds to the network path of target network block device;
Step b2 searches the target network block device by the network path, and holds to the target network block device The row operational order.
That is, tag attributes are input in the corresponding path template of preset path rule by client, generate and be directed toward network block Equipment operation instructs the network path of corresponding target network block device;Client can search target network block by network path and set It is standby, and the operational order is executed to target network block device.
Wherein, preset path rule is pre-set network control techology link information, includes in preset path rule The corresponding path template of network control techology agreement, for example, network control techology path definition are as follows:/dev/nbd/pabs- < cluster_id>/<pool_id>/<image_name>[@<snapshot_name>]
In the present embodiment when network control techology creates, the tag attributes of network control techology are added to network block In equipment, when client receives network control techology operational order, is generated and be directed toward according to tag attributes and preset path rule Operational order corresponds to the network path of target network block device, with rapidly lock onto target network control techology, finally realizes net The convenient management of network block device.
Further, on the basis of first embodiment of the invention, the management method of inventive network block device is proposed Second embodiment.
The present embodiment be in first embodiment after step S10 the step of, the present embodiment and first embodiment of the invention Difference is that client does not have load networks Block Device Driver in the present embodiment, needs to carry out target version in the present embodiment Network control techology drive load, and the corresponding network control techology of establishing label attribute;Network control techology described in the present embodiment Management method includes:
Step S60, when the client does not have load networks Block Device Driver, the client dynamic application main equipment Block identification, and register the corresponding device bus interface of the main equipment block identification.
When client does not have load networks Block Device Driver, client dynamic application main equipment block identification, wherein main equipment Block identification refers to the corresponding identification information of device bus interface, for example, device bus interface is numbered, client registers main equipment block Identify corresponding device bus interface.
Step S70, when the device bus interface registers completion, predefined attribute is added to institute by the client It states in the corresponding system file of device bus interface, to load the network control techology driving of target version.
When device bus interface registration is completed in client, predefined attribute is added to device bus interface by client In corresponding system file, to complete the load of the network control techology driving of load target version.That is, client initialization system System, registers the corresponding device bus interface of a main equipment block identification, and needs have been pre-defined in device bus interface Attribute, name, and addition interface, deletion interface, in addition interface, are deleted inside interface, available parameter executes creation Network control techology or the operation for deleting network control techology;The newly created network control techology of all dynamics or deletion afterwards in this way Using the network control techology of completion, all to depend on the device bus interface.
Step S80, when the network control techology drive load of target version is completed, the kernel of the client is to institute Stating network control techology drives corresponding device bus interface to send creation instruction.
When the network control techology drive load of target version is completed in the client, the kernel of client is to network control techology Corresponding device bus interface is driven to send creation instruction.
Step S90 obtains the tag attributes in the creation instruction by the device bus interface, and executes the wound Instruction is built, creates the corresponding network control techology of the tag attributes in the kernel of the client.
Device bus interface obtains the tag attributes in creation instruction in client network Block Device Driver, wherein label Attribute is equipment block identification and the mapping relations for servicing device mark;Tag attributes are written to device bus interface and corresponded to by client In system file, client executing includes the system file of tag attributes, creates to obtain tag attributes pair in the kernel of client The network control techology answered.When client detects that network control techology creation is completed, client obtains the service in tag attributes Device mark, client and the connection for establishing network control techology Yu the server identification corresponding server, so that the application of client Program uses the network control techology.
It should be added that in the present embodiment after step S90, if client receives network control techology operation When instruction, it can execute in first embodiment and obtain the corresponding tag attributes of the operational order;By tag attributes and default road Diameter rule determines the corresponding target network block device of operational order, and executes the operation to the target network block device and refer to The step of enabling.
In the present embodiment when client needs network control techology, registration is set when client carries out network block drive load Standby bus interface, and by network block drive corresponding device bus interface dynamically, neatly create network control techology;Effectively The network control techology due to creating fixed quantity is avoided, caused network control techology resources idle or network control techology are not When enough, the case where load networks Block Device Driver is arranged in the repetition of appearance.
Further, on the basis of the above embodiments, the third of the management method of inventive network block device is proposed Embodiment.
The present embodiment can be in conjunction with the first embodiment in the application or in conjunction with the second embodiment of the application;This reality It applies and illustrates the delete operation of network control techology in example, that is, client can set the network block for using completion in the present embodiment It is standby to be deleted, to reduce the idleness of network control techology resource.The management method of the network control techology includes:
Step S100 obtains the network control techology deletion and refers to when client receives network control techology and deletes instruction Enable corresponding tag attributes.
When client receives network control techology and deletes instruction, client obtains to be carried in network control techology deletion instruction Tag attributes, client can by tag attributes carry out network control techology delete operation.
The triggering mode that network control techology deletes instruction is not especially limited, that is, network control techology is deleted instruction and be can be What user actively triggered, for example, user inputs in client: " deleting dormant network block device " triggering network control techology deletion refers to It enables;Or client automatic trigger network control techology deletes instruction, for example, presetting network control techology in client deletes item Part: network control techology is automatically deleted using when completing in network control techology;When network control techology in the client is using completing, Client judgement meets preset network control techology and deletes condition, and automatic trigger network control techology deletes instruction.
Step S110, network control techology described in the client call drive corresponding device bus interface, and will be described Tag attributes input in the corresponding system file of the device bus interface, and the device bus interface runs the system text Part deletes the corresponding network control techology of the tag attributes.
After client gets tag attributes, the tag attributes that client will acquire input the device bus interface In, it is executed by device bus interface and deletes instruction.It, will be this network such as when needing to delete a network control techology In the corresponding system file of serial number write device bus interface of block device, the delete operation of network control techology will be triggered.Net The corresponding network control techology of the serial number of network block device will be deleted.Client can be by idle network block in the present embodiment Equipment is deleted, and the resources idle rate of network control techology is significantly reduced.
In addition, the embodiment of the present invention also proposes a kind of managing device of network control techology referring to Fig. 3, the network block is set Standby managing device includes:
Judgment module 10 is driven, for judging whether the client has added when client detects rbd-nbd starting Support grid network Block Device Driver;
Instruction sending module 20, in client load networks Block Device Driver, the client it is interior Core drives to the network control techology sends creation instruction;
Equipment creation module 30 obtains the creation for network control techology driving and instructs corresponding tag attributes, And the corresponding network control techology of the tag attributes is created in the kernel of the client;
Request receiving module 40 refers to for when client receives network control techology operational order, obtaining the operation Enable corresponding tag attributes;
Operation executing module 50, for determining that the operational order is corresponding by the tag attributes and preset path rule Target network block device, and the operational order is executed to the target network block device.
Optionally, described instruction sending module 20, comprising:
Version information acquiring unit, for obtaining the network in client load networks Block Device Driver The driving version information of Block Device Driver obtains the device version information for the network control techology that history has created;
Version judging unit, for judging the network according to the driving version information and the device version information Whether the device version for the network control techology that the driving version and history of Block Device Driver have created is identical;
Output unit is prompted, if different from the device version for the driving version, the client output is mentioned Show information, loads new network control techology driving to prompt the client to correspond to user;
Instruction sending unit, if identical as the device version for the driving version, the kernel of the client It is driven to the network control techology and sends creation instruction.
Optionally, the equipment creation module 30, comprising:
Attribute acquiring unit calls device bus interface, the device bus interface for network control techology driving It obtains the creation and instructs corresponding tag attributes, and the tag attributes are written to the device bus interface correspondence system In file, wherein the tag attributes refer to equipment block identification and service the mapping relations of device mark;
Equipment creating unit, the system file for the client by operation comprising the tag attributes, described The kernel of client creates to obtain the corresponding network control techology of the tag attributes.
Optionally, the operation executing module 40, comprising:
Coordinates measurement unit, it is raw for the tag attributes to be input in the corresponding path template of preset path rule The network path of target network block device is corresponded at the direction network control techology operational order;
Instruction execution unit, for searching the target network block device by the network path, and to the target network Network block device executes the operational order.
Optionally, the managing device of the network control techology, comprising:
Removing module is received, for the network block being obtained and being set when client receives network control techology and deletes instruction Standby delete instructs corresponding tag attributes;
Interface calling module drives corresponding device bus interface for network control techology described in the client call, And the tag attributes are inputted in the corresponding system file of the device bus interface;
Execution module is deleted, the system file is run for the device bus interface, deletes the tag attributes pair The network control techology answered.
Optionally, the managing device of the network control techology, comprising:
When the network control techology creates completion, the client establishes the network control techology and the tag attributes The connection of middle server identification corresponding server, so that the application program of the client uses the network control techology.
Optionally, the managing device of the network control techology, comprising:
Interface registration module, for when the client does not have load networks Block Device Driver, the client to be dynamically Apply for main equipment block identification, and registers the corresponding device bus interface of the main equipment block identification;
Drive load module, for the device bus interface register complete when, the client is by predefined category Property be added in the corresponding system file of the device bus interface, with load target version network control techology driving;
Instruction sending module, for target version the network control techology drive load completion when, the client Kernel drive corresponding device bus interface to send creation instruction to the network control techology;
Equipment creation module, for obtaining the tag attributes in the creation instruction by the device bus interface, and The creation instruction is executed, creates the corresponding network control techology of the tag attributes in the kernel of the client.
Wherein, the step of each Implement of Function Module of the managing device of network control techology can refer to inventive network block and set Each embodiment of standby management method, details are not described herein again.
In addition, the embodiment of the present invention also proposes a kind of computer storage medium.
Computer program, the realization when computer program is executed by processor are stored in the computer storage medium Operation in the management method of network control techology provided by the above embodiment.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body/operation/object is distinguished with another entity/operation/object, without necessarily requiring or implying these entity/operations/ There are any actual relationship or orders between object;The terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or the system that include a series of elements not only include that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of system.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in process, method, article or the system for including the element.
For device embodiment, since it is substantially similar to the method embodiment, related so describing fairly simple Place illustrates referring to the part of embodiment of the method.The apparatus embodiments described above are merely exemplary, wherein making It may or may not be physically separated for the unit of separate part description.In can selecting according to the actual needs Some or all of the modules realize the purpose of the present invention program.Those of ordinary skill in the art are not making the creative labor In the case where, it can it understands and implements.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of management method of network control techology, which is characterized in that the management method of the network control techology includes following step It is rapid:
When client detects rbd-nbd starting, the client whether load networks Block Device Driver is judged;
In client load networks Block Device Driver, the kernel of the client drives to the network control techology to be sent out Creation is sent to instruct;
The network control techology driving obtains the creation and instructs corresponding tag attributes, and creates in the kernel of the client The corresponding network control techology of the tag attributes;
When client receives network control techology operational order, the corresponding tag attributes of the operational order are obtained;
By the tag attributes and preset path rule, the corresponding target network block device of the operational order is determined, and to institute It states target network block device and executes the operational order.
2. the management method of network control techology as described in claim 1, which is characterized in that described to have been loaded in the client When network control techology drives, the kernel of the client drives the step of sending creation instruction to the network control techology, comprising:
In client load networks Block Device Driver, the driving version information of the network control techology driving is obtained, Obtain the device version information for the network control techology that history has created;
According to the driving version information and the device version information, judge the network control techology driving driving version and Whether the device version for the network control techology that history has created is identical;
If the driving version is different from the device version, the client exports prompt information, to prompt the client Corresponding user is held to load new network control techology driving;
If the driving version is identical as the device version, the kernel of the client drives to the network control techology to be sent out Creation is sent to instruct.
3. the management method of network control techology as described in claim 1, which is characterized in that the network control techology driving obtains The creation instructs corresponding tag attributes, and creates the corresponding network block of the tag attributes in the kernel of the client and set Standby step, comprising:
Device bus interface is called in the network control techology driving, and it is corresponding that the device bus interface obtains the creation instruction Tag attributes, and the tag attributes are written in the device bus interface correspondence system file, wherein the label category Property refer to equipment block identification and service device mark mapping relations;
System file of the client by operation comprising the tag attributes, creates to obtain institute in the kernel of the client State the corresponding network control techology of tag attributes.
4. the management method of network control techology as described in claim 1, which is characterized in that described by the tag attributes and pre- If path rule, the corresponding target network block device of the operational order is determined, and institute is executed to the target network block device The step of stating operational order, comprising:
The tag attributes are input in the corresponding path template of preset path rule, generates and is directed toward the network control techology behaviour Make to instruct the network path for corresponding to target network block device;
The target network block device is searched by the network path, and the operation is executed to the target network block device and is referred to It enables.
5. the management method of network control techology as described in claim 1, which is characterized in that described by the tag attributes and pre- If path rule, the corresponding target network block device of the operational order is determined, and institute is executed to the target network block device After the step of stating operational order, comprising:
When client receives network control techology and deletes instruction, obtains the network control techology and delete the corresponding label category of instruction Property;
Network control techology described in the client call drives corresponding device bus interface, and the tag attributes are inputted institute It states in the corresponding system file of device bus interface;
The device bus interface runs the system file, deletes the corresponding network control techology of the tag attributes.
6. the management method of network control techology as described in claim 1, which is characterized in that the network control techology driving obtains The creation instructs corresponding tag attributes, and creates the corresponding network block of the tag attributes in the kernel of the client and set After standby step, comprising:
When the network control techology creates completion, the client is established in the network control techology and the tag attributes and is taken The connection for device mark corresponding server of being engaged in, so that the application program of the client uses the network control techology.
7. the management method of network control techology as described in claim 1, which is characterized in that described to detect rbd- in client Nbd start when, judge the client whether load networks Block Device Driver the step of after, comprising:
When the client does not have load networks Block Device Driver, the client dynamic application main equipment block identification, and infuse The corresponding device bus interface of the volume main equipment block identification;
When the device bus interface registers completion, predefined attribute is added to the device bus and connect by the client In the corresponding system file of mouth, to load the network control techology driving of target version;
When the network control techology drive load of target version is completed, the kernel of the client is to the network control techology Corresponding device bus interface is driven to send creation instruction;
The tag attributes in the creation instruction are obtained by the device bus interface, and execute the creation instruction, in institute The kernel for stating client creates the corresponding network control techology of the tag attributes.
8. a kind of managing device of network control techology, which is characterized in that the managing device of the network control techology includes:
Judgment module is driven, for judging the client whether load networks when client detects rbd-nbd starting Block Device Driver;
Instruction sending module, in client load networks Block Device Driver, the kernel of the client is to institute It states network control techology driving and sends creation instruction;
Equipment creation module obtains the creation for network control techology driving and instructs corresponding tag attributes, and in institute The kernel for stating client creates the corresponding network control techology of the tag attributes;
Request receiving module, it is corresponding for when client receives network control techology operational order, obtaining the operational order Tag attributes;
Operation executing module, for determining the corresponding target of the operational order by the tag attributes and preset path rule Network control techology, and the operational order is executed to the target network block device.
9. a kind of management equipment of network control techology, which is characterized in that the management equipment of the network control techology includes: storage Device, processor and it is stored in the computer program that can be run on the memory and on the processor, in which:
Realize that the network block as described in any one of claims 1 to 7 is set when the computer program is executed by the processor The step of standby management method.
10. a kind of computer storage medium, which is characterized in that be stored with computer program, institute in the computer storage medium State the manager that the network control techology as described in any one of claims 1 to 7 is realized when computer program is executed by processor The step of method.
CN201910480124.7A 2019-06-03 2019-06-03 Method, device, equipment and storage medium for managing network block equipment Active CN110336693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910480124.7A CN110336693B (en) 2019-06-03 2019-06-03 Method, device, equipment and storage medium for managing network block equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910480124.7A CN110336693B (en) 2019-06-03 2019-06-03 Method, device, equipment and storage medium for managing network block equipment

Publications (2)

Publication Number Publication Date
CN110336693A true CN110336693A (en) 2019-10-15
CN110336693B CN110336693B (en) 2022-08-19

Family

ID=68140324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910480124.7A Active CN110336693B (en) 2019-06-03 2019-06-03 Method, device, equipment and storage medium for managing network block equipment

Country Status (1)

Country Link
CN (1) CN110336693B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782683A (en) * 2020-06-30 2020-10-16 创新奇智(青岛)科技有限公司 Device management method and device, device query method and device and cloud device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133654A1 (en) * 2006-12-01 2008-06-05 Chei-Yol Kim Network block device using network asynchronous i/o
CN104516687A (en) * 2014-12-22 2015-04-15 中国科学院信息工程研究所 Windows remote mapping method for Linux block device
CN104636077A (en) * 2013-11-15 2015-05-20 中国电信股份有限公司 Network block device storage system and method for virtual machine
US20170078388A1 (en) * 2015-09-14 2017-03-16 Dell Products, L.P. Browser-based virtual media administration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133654A1 (en) * 2006-12-01 2008-06-05 Chei-Yol Kim Network block device using network asynchronous i/o
CN104636077A (en) * 2013-11-15 2015-05-20 中国电信股份有限公司 Network block device storage system and method for virtual machine
CN104516687A (en) * 2014-12-22 2015-04-15 中国科学院信息工程研究所 Windows remote mapping method for Linux block device
US20170078388A1 (en) * 2015-09-14 2017-03-16 Dell Products, L.P. Browser-based virtual media administration

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韦伟等: "云存储系统中网络块设备的研究与应用", 《计算机与数字工程》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782683A (en) * 2020-06-30 2020-10-16 创新奇智(青岛)科技有限公司 Device management method and device, device query method and device and cloud device

Also Published As

Publication number Publication date
CN110336693B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN109408136B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN108363528B (en) Application page starting method and device, storage medium and electronic equipment
US20150333971A1 (en) Method and device for managing processes of application program
US11409421B2 (en) Object processing method and terminal device
CN110399583B (en) Page display method and device, electronic equipment and storage medium
CN107018022B (en) Software upgrading processing method and device and terminal
CN110633032B (en) Icon display method and device for terminal equipment
CN107391768B (en) Webpage data processing method, device and equipment and computer readable storage medium
US9875109B2 (en) Method and apparatus for generating user adaptive application in mobile terminal
CN107958365B (en) Material information changing method and device, storage medium and electronic equipment
CN110187815A (en) Terminal and processing method
WO2021121225A1 (en) Method for installing application program, and electronic apparatus
CN110336693A (en) Management method, device, equipment and the storage medium of network control techology
CN112905209A (en) Application program updating method and device
US11036355B2 (en) Electronic device, server and method for filtering, blocking and replacing web objects
CN110321172B (en) Partition identification method, device, equipment and storage medium for network block equipment
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN110196662B (en) Method, device, terminal and storage medium for displaying synchronization state
CN107015874B (en) Data transmission control method, device and terminal
CN110321251B (en) Data backup method, device, equipment and storage medium based on network block equipment
CN113138763A (en) Page construction method, device, equipment and computer readable storage medium
CN110336857B (en) Method, device, equipment and storage medium for creating network block equipment
CN112578966B (en) Application program switching method and device and electronic equipment
CN112764782A (en) Application program updating method and application program updating device

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