CN106961475A - A kind of remote disk sharing method and shared system based on NBD - Google Patents
A kind of remote disk sharing method and shared system based on NBD Download PDFInfo
- Publication number
- CN106961475A CN106961475A CN201710148416.1A CN201710148416A CN106961475A CN 106961475 A CN106961475 A CN 106961475A CN 201710148416 A CN201710148416 A CN 201710148416A CN 106961475 A CN106961475 A CN 106961475A
- Authority
- CN
- China
- Prior art keywords
- shared
- agent side
- communication connection
- server end
- client
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0622—Securing storage systems in relation to access
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention provides a kind of remote disk sharing method and shared system based on NBD, and the sharing method includes:Shared server end is set up by shared agent side with shared client and communicated to connect;The shared disk that the shared server end is provided is supplied to the virtual machine of the shared client to use by shared agent side by tapdisk technologies.The embodiment of the present invention, shared server end is set up by shared agent side with shared client and communicated to connect, the shared disk that shared server end is provided is supplied to the virtual machine of shared client to use by shared agent side by tapdisk technologies so that the use shared disk that virtual machine can conveniently, stable by tapdisk technologies.
Description
Technical field
The present invention relates to electric data processing field, more particularly to a kind of remote disk sharing method based on NBD and shared
System.
Background technology
NBD (Network Block Device, network control techology) makes user that the disk of one distance host is empty
Between, used as a block device, just as one piece of hard disk of user's local device.
Using NBD technologies, it can increase to very easily by the hard drive space of another server in equipment.NBD with
NFS is different, and NFS is only to provide a mount point and used for client, and client can not change the subregion of this mount point
Form, and NBD provides a block device, client can be formatted into this block device various types of subregions, more
It is easy to the use of user
NBD technologies have been able to the problem of long-range block device of fabulous solution is accessed now, but under virtualization scene still
So have the following disadvantages:
1st, can not well it be combined with virtualization scene, will unusual very complicated for multi-dummy machine configuration;
2nd, existing NBD server ends passively receive connection mode by limiting server end in itself to share equipment control
Independence, it is stiff to operate;
3rd, the content controllability communicated between NBD client and servers is relatively low;
4th, common NBD is based on being combined rear unstable networks with Intel Virtualization Technology, and connecting the situation such as abnormal all will be to void
Planization platform brings the factor of lot of unstable.
The content of the invention
In view of this, the present invention provides a kind of remote disk sharing method and shared system based on NBD, existing to solve
Virtual technology machine uses the problem of shared disk is relatively difficult.
Specifically, the present invention is achieved through the following technical solutions:
The present invention provides a kind of remote disk sharing method based on NBD, and the sharing method includes:
Shared server end is set up by shared agent side with shared client and communicated to connect;
The shared disk that the shared server end is provided is supplied to described common by shared agent side by tapdisk technologies
The virtual machine for enjoying client is used.
Present invention also offers a kind of remote disk shared system based on NBD, the shared system, including:
Unit is set up in communication connection, and communication link is set up by shared agent side for shared server end and shared client
Connect;
Shared disk uses unit, is provided the shared server end by tapdisk technologies for sharing agent side
Shared disk be supplied to the virtual machine of the shared client to use.
The embodiment of the present invention, shared server end is set up by shared agent side with shared client and communicated to connect, and shares
The shared disk that shared server end is provided is supplied to the virtual machine of shared client to make by agent side by tapdisk technologies
With so that the use shared disk that virtual machine can conveniently, stable by tapdisk technologies.
Brief description of the drawings
Fig. 1 is a kind of flow chart of remote disk sharing method based on NBD shown in an exemplary embodiment of the invention;
Fig. 2 is a kind of structure chart of remote disk shared system based on NBD shown in an exemplary embodiment of the invention.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
It is the purpose only merely for description specific embodiment in terminology used in the present invention, and is not intended to be limiting the present invention.
" one kind ", " described " and "the" of singulative used in the present invention and appended claims are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the scope of the invention, the first information can also be referred to as the second information, similarly, and the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
It is as shown in Figure 1 a kind of remote disk sharing method based on NBD shown in an exemplary embodiment of the invention
Flow chart, the sharing method includes:
Step S101, shared server end is set up by shared agent side with shared client and communicated to connect.
In embodiments of the present invention, client is shared as the user of shared disk, is needed before using shared disk
To set up and communicate to connect with the shared server end of the provider as shared disk.In original technology, shared server
End is directly set up with shared client and communicated to connect, and in embodiments of the present invention, the processing by sharing agent side sets up logical
Letter connection.
The shared server end is set up by shared agent side with shared client and communicated to connect, including:
1st, share agent side and receive the communication connection foundation request that shared server end is sent;
2nd, share agent side and request is set up to the transmission communication connection docking request of shared client according to the communication connection;
3rd, share agent side and set up message to shared server end transmission communication connection.
In embodiments of the present invention, shared server end and the communication connection of shared client all pass through shared agent side
Processing and realize:Shared server end sends communication connection to shared agent side first and sets up request, due to sharing agent side
Network monitoring function being opened, therefore the communication connection can be received and sets up request, request is set up have received communication connection
Afterwards, share agent side and send communication connection docking request to shared client, notify shared client and shared server end
Communication connection is set up, the shared client of communication replys docking message, and shared agent side is sent to shared clothes by success message is docked
Business device end.
Step S102, shared agent side is carried the shared disk that the shared server end is provided by tapdisk technologies
The virtual machine for supplying the shared client is used.
In embodiments of the present invention, after communication connection is established, shared client can be made by the communication connection
With the shared disk on shared server end, shared client can be the terminal of entity, or virtual terminal is (virtual
Machine), because virtual machine is using the unstable of shared disk, the embodiment of the present invention uses tapdisk technologies by shared agent side,
The use shared disk that virtual machine is stablized.
The embodiment of the present invention, shared server end is set up by shared agent side with shared client and communicated to connect, and shares
The shared disk that shared server end is provided is supplied to the virtual machine of shared client to make by agent side by tapdisk technologies
With so that the use shared disk that virtual machine can conveniently, stable by tapdisk technologies.
As the alternative embodiment of the present invention, the sharing method also includes:
Shared agent side is monitored the data sent between the shared server end and shared client, and to institute
Data are stated to be controlled and forward.
In embodiments of the present invention, what shared client was produced during the shared disk in using shared server end is each
Plant data and communication is realized by the forwarding and forwarding of sharing agent side, realize effective control to data.
As another alternative embodiment of the invention, the sharing method also includes:
Shared agent side is monitored the communication connection, and when the communication connection occurs abnormal, what is used is pre-
If method handle the data.
In embodiments of the present invention, during monitoring data, shared agent side can also be carried out to communication connection
Monitor so that when communication connection occurs abnormal, data are handled by default method.
A kind of remote disk shared system based on NBD being illustrated in figure 2 shown in an exemplary embodiment of the invention
Structure chart, the shared system includes:
Unit 201 is set up in communication connection, sets up logical by shared agent side for shared server end and shared client
Letter connection.
In embodiments of the present invention, client is shared as the user of shared disk, is needed before using shared disk
To set up and communicate to connect with the shared server end of the provider as shared disk.In original technology, shared server
End is directly set up with shared client and communicated to connect, and in embodiments of the present invention, the processing by sharing agent side sets up logical
Letter connection.
The shared server end is set up by shared agent side with shared client and communicated to connect, including:
1st, share agent side and receive the communication connection foundation request that shared server end is sent;
2nd, share agent side and request is set up to the transmission communication connection docking request of shared client according to the communication connection;
3rd, share agent side and set up message to shared server end transmission communication connection.
In embodiments of the present invention, shared server end and the communication connection of shared client all pass through shared agent side
Processing and realize:Shared server end sends communication connection to shared agent side first and sets up request, due to sharing agent side
Network monitoring function being opened, therefore the communication connection can be received and sets up request, request is set up have received communication connection
Afterwards, share agent side and send communication connection docking request to shared client, notify shared client and shared server end
Communication connection is set up, the shared client of communication replys docking message, and shared agent side is sent to shared clothes by success message is docked
Business device end.
Shared disk uses unit 202, is carried the shared server end by tapdisk technologies for sharing agent side
For shared disk be supplied to the virtual machine of the shared client to use.
In embodiments of the present invention, after communication connection is established, shared client can be made by the communication connection
With the shared disk on shared server end, shared client can be the terminal of entity, or virtual terminal is (virtual
Machine), because virtual machine is using the unstable of shared disk, the embodiment of the present invention uses tapdisk technologies by shared agent side,
The use shared disk that virtual machine is stablized.
The embodiment of the present invention, shared server end is set up by shared agent side with shared client and communicated to connect, and shares
The shared disk that shared server end is provided is supplied to the virtual machine of shared client to make by agent side by tapdisk technologies
With so that the use shared disk that virtual machine can conveniently, stable by tapdisk technologies.
As the alternative embodiment of the present invention, the shared system also includes:
Data decryptor unit, for sharing agent side to the number that is sent between the shared server end and shared client
According to being monitored, and the data are controlled and forwarded.
In embodiments of the present invention, what shared client was produced during the shared disk in using shared server end is each
Plant data and communication is realized by the forwarding and forwarding of sharing agent side, realize effective control to data.
As another alternative embodiment of the invention, the shared system also includes:
Monitoring unit is communicated to connect, the communication connection is monitored for sharing agent side, and in the communication link
When sending and receiving life is abnormal, the default method used handles the data.
In embodiments of the present invention, during monitoring data, shared agent side can also be carried out to communication connection
Monitor so that when communication connection occurs abnormal, data are handled by default method.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, the part shown as unit can be or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of the present invention program.Those of ordinary skill in the art are not paying creative labor
In the case of dynamic, you can to understand and implement.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modifications, equivalent substitutions and improvements done etc. should be included within the scope of protection of the invention.
Claims (8)
1. a kind of remote disk sharing method based on NBD, it is characterised in that the sharing method includes:
Shared server end is set up by shared agent side with shared client and communicated to connect;
The shared disk that the shared server end is provided is supplied to the shared visitor by shared agent side by tapdisk technologies
The virtual machine at family end is used.
2. sharing method as claimed in claim 1, it is characterised in that the shared server end passes through altogether with shared client
Enjoy agent side and set up communication connection, including:
Shared agent side receives the communication connection foundation request that shared server end is sent;
Shared agent side sets up request to the transmission communication connection docking request of shared client according to the communication connection;
Shared agent side sends communication connection to the shared server end and sets up message.
3. sharing method as claimed in claim 1, it is characterised in that the sharing method also includes:
Shared agent side is monitored the data sent between the shared server end and shared client, and to the number
According to being controlled and forward.
4. sharing method as claimed in claim 3, it is characterised in that the sharing method also includes:
Shared agent side is monitored the communication connection, and when the communication connection occurs abnormal, what is used is default
The method processing data.
5. a kind of remote disk shared system based on NBD, it is characterised in that the shared system, including:
Unit is set up in communication connection, is set up and communicated to connect by shared agent side for shared server end and shared client;
Shared disk uses unit, for sharing agent side by tapdisk technologies by being total to that the shared server end is provided
Enjoying disk is supplied to the virtual machine of the shared client to use.
6. shared system as claimed in claim 5, it is characterised in that the shared server end passes through altogether with shared client
Enjoy agent side and set up communication connection, including:
Shared agent side receives the communication connection foundation request that shared server end is sent;
Shared agent side sets up request to the transmission communication connection docking request of shared client according to the communication connection;
Shared agent side sends communication connection to the shared server end and sets up message.
7. shared system as claimed in claim 5, it is characterised in that the shared system also includes:
The data sent between the shared server end and shared client are entered by data decryptor unit for sharing agent side
Row is monitored, and the data are controlled and forwarded.
8. shared system as claimed in claim 7, it is characterised in that the shared system also includes:
Monitoring unit is communicated to connect, the communication connection is monitored for sharing agent side, and in the communication link sending and receiving
When raw abnormal, the default method used handles the data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710148416.1A CN106961475B (en) | 2017-03-14 | 2017-03-14 | Remote disk sharing method and sharing system based on NBD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710148416.1A CN106961475B (en) | 2017-03-14 | 2017-03-14 | Remote disk sharing method and sharing system based on NBD |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106961475A true CN106961475A (en) | 2017-07-18 |
CN106961475B CN106961475B (en) | 2020-07-14 |
Family
ID=59470484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710148416.1A Active CN106961475B (en) | 2017-03-14 | 2017-03-14 | Remote disk sharing method and sharing system based on NBD |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106961475B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108509155A (en) * | 2018-03-31 | 2018-09-07 | 北京联想核芯科技有限公司 | A kind of method and apparatus of remote access disk |
CN113709707A (en) * | 2021-10-29 | 2021-11-26 | 中兴通讯股份有限公司 | Method and device for sidecar deployment in service grid, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419535A (en) * | 2008-11-19 | 2009-04-29 | 北京航空航天大学 | Distributed virtual magnetic disc system of virtual machine |
CN101866408A (en) * | 2010-06-30 | 2010-10-20 | 华中科技大学 | Transparent trust chain constructing system based on virtual machine architecture |
US20120179874A1 (en) * | 2011-01-07 | 2012-07-12 | International Business Machines Corporation | Scalable cloud storage architecture |
CN103023857A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for remote deployment of information resources |
CN103544045A (en) * | 2013-10-16 | 2014-01-29 | 南京大学镇江高新技术研究院 | HDFS-based virtual machine image storage system and construction method thereof |
CN104375877A (en) * | 2014-10-15 | 2015-02-25 | 国云科技股份有限公司 | Virtual machine online snapshot generating and deleting method |
CN104636077A (en) * | 2013-11-15 | 2015-05-20 | 中国电信股份有限公司 | Network block device storage system and method for virtual machine |
WO2016119322A1 (en) * | 2015-01-30 | 2016-08-04 | 华为技术有限公司 | Method and apparatus for determining read/write path |
-
2017
- 2017-03-14 CN CN201710148416.1A patent/CN106961475B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419535A (en) * | 2008-11-19 | 2009-04-29 | 北京航空航天大学 | Distributed virtual magnetic disc system of virtual machine |
CN101866408A (en) * | 2010-06-30 | 2010-10-20 | 华中科技大学 | Transparent trust chain constructing system based on virtual machine architecture |
US20120179874A1 (en) * | 2011-01-07 | 2012-07-12 | International Business Machines Corporation | Scalable cloud storage architecture |
CN103023857A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for remote deployment of information resources |
CN103544045A (en) * | 2013-10-16 | 2014-01-29 | 南京大学镇江高新技术研究院 | HDFS-based virtual machine image storage system and construction method thereof |
CN104636077A (en) * | 2013-11-15 | 2015-05-20 | 中国电信股份有限公司 | Network block device storage system and method for virtual machine |
CN104375877A (en) * | 2014-10-15 | 2015-02-25 | 国云科技股份有限公司 | Virtual machine online snapshot generating and deleting method |
WO2016119322A1 (en) * | 2015-01-30 | 2016-08-04 | 华为技术有限公司 | Method and apparatus for determining read/write path |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108509155A (en) * | 2018-03-31 | 2018-09-07 | 北京联想核芯科技有限公司 | A kind of method and apparatus of remote access disk |
CN108509155B (en) * | 2018-03-31 | 2021-07-13 | 深圳忆联信息系统有限公司 | Method and device for remotely accessing disk |
CN113709707A (en) * | 2021-10-29 | 2021-11-26 | 中兴通讯股份有限公司 | Method and device for sidecar deployment in service grid, electronic equipment and storage medium |
CN113709707B (en) * | 2021-10-29 | 2022-03-15 | 中兴通讯股份有限公司 | Method and device for sidecar deployment in service grid, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106961475B (en) | 2020-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20080120380A1 (en) | Internet relay chat (irc) framework for a global enterprise service bus (esb) | |
CN103827828B (en) | For the system and method for the flexibility that load balance and data compression are provided in flow director environment | |
CN110896371B (en) | Virtual network equipment and related method | |
US7949704B2 (en) | Administration of a broker-based publish/subscribe messaging system | |
US9575808B1 (en) | Managing virtual machines | |
CN100407627C (en) | Method and system for realizing end-to-end data sharing | |
US9152441B2 (en) | Systems and methods involving virtual machine host isolation over a network via a federated downstream cluster | |
US20070083725A1 (en) | Software agent-based architecture for data relocation | |
US9456017B2 (en) | System and method for a connector being able to adapt to newer features introduced to a messaging provider with only configuration changes | |
EP2313834B1 (en) | Advertisement forwarding storage and retrieval network | |
CN109768871A (en) | Configure method, host and the storage medium of multiple Microsoft Loopback Adapters | |
CN106484322A (en) | A kind of method of carry file system, device and equipment | |
CN107819891A (en) | Data processing method, device, computer equipment and storage medium | |
CN108234208A (en) | The visualization load balancing dispositions method and system of resource management based on business | |
CN109862119A (en) | Memory capacity sharing method, device, service server, user terminal and system | |
WO2006029771A1 (en) | Computer arrangement and method for providing services for clients over a network | |
CA2770391C (en) | System and method for sharing a payload among multiple homed networks | |
CN105190530A (en) | Transmitting hardware-rendered graphical data | |
CN112787913A (en) | Intelligent network card assembly, physical machine, cloud service system and message sending method | |
CN106961475A (en) | A kind of remote disk sharing method and shared system based on NBD | |
CN108600294A (en) | A kind of cloud terminal screen shared system and method | |
US9544371B1 (en) | Method to discover multiple paths to disk devices cluster wide | |
WO2003017101A2 (en) | System and method for distributed device control | |
CN106330492A (en) | Method, device and system of configuring user equipment forwarding table | |
CN109660370A (en) | A kind of equipment communication means of digit broadcasting system |
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 |