CN106961475B - Remote disk sharing method and sharing system based on NBD - Google Patents

Remote disk sharing method and sharing system based on NBD Download PDF

Info

Publication number
CN106961475B
CN106961475B CN201710148416.1A CN201710148416A CN106961475B CN 106961475 B CN106961475 B CN 106961475B CN 201710148416 A CN201710148416 A CN 201710148416A CN 106961475 B CN106961475 B CN 106961475B
Authority
CN
China
Prior art keywords
sharing
communication connection
client
agent
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710148416.1A
Other languages
Chinese (zh)
Other versions
CN106961475A (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.)
Guangzhou Aerospace Yunhong Technology Co ltd
Winhong Information Technology Co ltd
Original Assignee
Guangzhou Aerospace Yunhong Technology Co ltd
Winhong Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Aerospace Yunhong Technology Co ltd, Winhong Information Technology Co ltd filed Critical Guangzhou Aerospace Yunhong Technology Co ltd
Priority to CN201710148416.1A priority Critical patent/CN106961475B/en
Publication of CN106961475A publication Critical patent/CN106961475A/en
Application granted granted Critical
Publication of CN106961475B publication Critical patent/CN106961475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning 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 invention provides a remote disk sharing method and a remote disk sharing system based on NBD, wherein the sharing method comprises the following steps: the sharing server end and the sharing client end establish communication connection through a sharing agent end; and the sharing agent end provides the shared disk provided by the sharing server end to the virtual machine of the sharing client end for use through a tapdish technology. In the embodiment of the invention, the sharing server end and the sharing client end establish communication connection through the sharing proxy end, and the sharing proxy end provides the shared disk provided by the sharing server end for the virtual machine of the sharing client end to use through the tapdisek technology, so that the virtual machine can conveniently and stably use the shared disk through the tapdisek technology.

Description

Remote disk sharing method and sharing system based on NBD
Technical Field
The invention relates to the field of electric data processing, in particular to a remote disk sharing method and system based on NBD.
Background
NBD (Network Block Device) allows a user to use the disk space of a remote host as a Block Device, just like a hard disk of a local Device of the user.
Using NBD technology, the hard disk space of another server can be easily added to the device. The NBD is different from the NFS, the NFS only provides a mount point for the client to use, and the client cannot change the partition format of the mount point, while the NBD provides a block device, and the client can format the block device into various types of partitions, so that the NBD is more convenient for the user to use.
The NBD technology can now solve the problem of remote block device access excellently, but the following disadvantages still exist in the virtualization scenario:
1. the method can not be well combined with a virtual scene, and is very complicated and complicated for the configuration of multiple virtual machines;
2. the existing NBD server side passively accepts the connection mode, which limits the autonomy of the server side to control the shared equipment, and the operation is rigid;
3. the controllability of the communication content between the NBD client and the server is low;
4. the ordinary NBD is based on the fact that after the NBD is combined with a virtualization technology, the network is unstable, abnormal connection and other conditions bring a plurality of unstable factors to a virtualization platform.
Disclosure of Invention
In view of this, the present invention provides a remote disk sharing method and system based on NBD, so as to solve the problem that it is difficult for a virtual machine to use a shared disk in the prior art.
Specifically, the invention is realized by the following technical scheme:
the invention provides a remote disk sharing method based on NBD, which comprises the following steps:
the sharing server end and the sharing client end establish communication connection through a sharing agent end;
and the sharing agent end provides the shared disk provided by the sharing server end to the virtual machine of the sharing client end for use through a tapdish technology.
The invention also provides a remote disk sharing system based on NBD, which comprises:
the communication connection establishing unit is used for establishing communication connection between the sharing server and the sharing client through the sharing agent end;
and the shared disk using unit is used for providing the shared disk provided by the shared server end to the virtual machine of the shared client end for use by the shared agent end through a tapdish technology.
In the embodiment of the invention, the sharing server end and the sharing client end establish communication connection through the sharing proxy end, and the sharing proxy end provides the shared disk provided by the sharing server end for the virtual machine of the sharing client end to use through the tapdisek technology, so that the virtual machine can conveniently and stably use the shared disk through the tapdisek technology.
Drawings
FIG. 1 is a flow chart illustrating a method of NBD-based remote disk sharing in accordance with an exemplary embodiment of the present invention;
FIG. 2 is a block diagram of an NBD based remote disk sharing system in accordance with an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart illustrating an NBD-based remote disk sharing method according to an exemplary embodiment of the present invention, where the sharing method includes:
step S101, the sharing server and the sharing client establish communication connection through the sharing agent.
In the embodiment of the present invention, the shared client is used as a user of the shared disk, and before using the shared disk, a communication connection needs to be established with the shared server serving as a provider of the shared disk. In the original technology, the sharing server side directly establishes communication connection with the sharing client side, and in the embodiment of the invention, the communication connection is established through the processing of the sharing agent side.
The method for establishing communication connection between the sharing server and the sharing client through the sharing agent comprises the following steps:
1. the sharing proxy end receives a communication connection establishment request sent by the sharing server end;
2. the sharing agent end sends a communication connection butt joint request to the sharing client end according to the communication connection establishment request;
3. and the sharing agent end sends a communication connection establishment message to the sharing server end.
In the embodiment of the present invention, the communication connection between the sharing server and the sharing client is realized through the processing of the sharing agent: the method comprises the steps that a sharing server side sends a communication connection establishment request to a sharing agent side, the sharing agent side starts a network monitoring function, so that the communication connection establishment request can be received, after the communication connection establishment request is received, the sharing agent side sends a communication connection butt joint request to a sharing client side to inform the sharing client side of establishing communication connection with a sharing server side, the communication sharing client side replies a butt joint message, and the sharing agent side sends the butt joint success message to the sharing server side.
Step S102, the sharing agent end provides the sharing disk provided by the sharing server end to the virtual machine of the sharing client end for use through a tapdish technology.
In the embodiment of the present invention, after the communication connection is established, the shared client may use the shared disk on the shared server through the communication connection, and the shared client may be an entity terminal or a virtual terminal (virtual machine).
In the embodiment of the invention, the sharing server end and the sharing client end establish communication connection through the sharing proxy end, and the sharing proxy end provides the shared disk provided by the sharing server end for the virtual machine of the sharing client end to use through the tapdisek technology, so that the virtual machine can conveniently and stably use the shared disk through the tapdisek technology.
As an optional embodiment of the present invention, the sharing method further includes:
and the sharing proxy end monitors data sent between the sharing server end and the sharing client end and controls and forwards the data.
In the embodiment of the invention, various data generated by the shared client during the use of the shared disk in the shared server side are communicated by forwarding and forwarding of the shared proxy side, so that the effective control on the data is realized.
As another optional embodiment of the present invention, the sharing method further includes:
and the sharing agent end monitors the communication connection and processes the data by using a preset method when the communication connection is abnormal.
In the embodiment of the present invention, during the monitoring of the data, the sharing agent may also monitor the communication connection, so that when the communication connection is abnormal, the data is processed by a preset method.
Fig. 2 is a block diagram of an NBD-based remote disk sharing system according to an exemplary embodiment of the present invention, where the sharing system includes:
a communication connection establishing unit 201, configured to establish a communication connection between the sharing server and the sharing client through the sharing agent.
In the embodiment of the present invention, the shared client is used as a user of the shared disk, and before using the shared disk, a communication connection needs to be established with the shared server serving as a provider of the shared disk. In the original technology, the sharing server side directly establishes communication connection with the sharing client side, and in the embodiment of the invention, the communication connection is established through the processing of the sharing agent side.
The method for establishing communication connection between the sharing server and the sharing client through the sharing agent comprises the following steps:
1. the sharing proxy end receives a communication connection establishment request sent by the sharing server end;
2. the sharing agent end sends a communication connection butt joint request to the sharing client end according to the communication connection establishment request;
3. and the sharing agent end sends a communication connection establishment message to the sharing server end.
In the embodiment of the present invention, the communication connection between the sharing server and the sharing client is realized through the processing of the sharing agent: the method comprises the steps that a sharing server side sends a communication connection establishment request to a sharing agent side, the sharing agent side starts a network monitoring function, so that the communication connection establishment request can be received, after the communication connection establishment request is received, the sharing agent side sends a communication connection butt joint request to a sharing client side to inform the sharing client side of establishing communication connection with a sharing server side, the communication sharing client side replies a butt joint message, and the sharing agent side sends the butt joint success message to the sharing server side.
And the shared disk using unit 202 is configured to provide, by the sharing agent terminal through a tapdish technology, the shared disk provided by the sharing server terminal to the virtual machine of the sharing client terminal for use.
In the embodiment of the present invention, after the communication connection is established, the shared client may use the shared disk on the shared server through the communication connection, and the shared client may be an entity terminal or a virtual terminal (virtual machine).
In the embodiment of the invention, the sharing server end and the sharing client end establish communication connection through the sharing proxy end, and the sharing proxy end provides the shared disk provided by the sharing server end for the virtual machine of the sharing client end to use through the tapdisek technology, so that the virtual machine can conveniently and stably use the shared disk through the tapdisek technology.
As an optional embodiment of the present invention, the sharing system further includes:
and the data monitoring unit is used for monitoring the data sent between the sharing server and the sharing client by the sharing proxy end and controlling and forwarding the data.
In the embodiment of the invention, various data generated by the shared client during the use of the shared disk in the shared server side are communicated by forwarding and forwarding of the shared proxy side, so that the effective control on the data is realized.
As another optional embodiment of the present invention, the sharing system further includes:
and the communication connection monitoring unit is used for monitoring the communication connection by the shared agent end and processing the data by using a preset method when the communication connection is abnormal.
In the embodiment of the present invention, during the monitoring of the data, the sharing agent may also monitor the communication connection, so that when the communication connection is abnormal, the data is processed by a preset method.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (6)

1. An NBD-based remote disk sharing method, the sharing method comprising:
the sharing server end and the sharing client end establish communication connection through a sharing agent end;
the sharing agent end provides the shared disk provided by the sharing server end to the virtual machine of the sharing client end for use through a tapdish technology;
the method for establishing communication connection between the sharing server and the sharing client through the sharing agent comprises the following steps:
the sharing proxy end receives a communication connection establishment request sent by the sharing server end;
the sharing agent end sends a communication connection butt joint request to the sharing client end according to the communication connection establishment request;
and the sharing agent end sends a communication connection establishment message to the sharing server end.
2. The sharing method of claim 1, wherein the sharing method further comprises:
and the sharing proxy end monitors data sent between the sharing server end and the sharing client end and controls and forwards the data.
3. The sharing method of claim 2, wherein the sharing method further comprises:
and the sharing agent end monitors the communication connection and processes the data by using a preset method when the communication connection is abnormal.
4. An NBD-based remote disk sharing system, the sharing system comprising:
the communication connection establishing unit is used for establishing communication connection between the sharing server and the sharing client through the sharing agent end;
the shared disk using unit is used for the shared agent end to provide the shared disk provided by the shared server end for the virtual machine of the shared client end to use through a tapdish technology;
the method for establishing communication connection between the sharing server and the sharing client through the sharing agent comprises the following steps:
the sharing proxy end receives a communication connection establishment request sent by the sharing server end;
the sharing agent end sends a communication connection butt joint request to the sharing client end according to the communication connection establishment request;
and the sharing agent end sends a communication connection establishment message to the sharing server end.
5. The sharing system of claim 4, wherein the sharing system further comprises:
and the data monitoring unit is used for monitoring the data sent between the sharing server and the sharing client by the sharing proxy end and controlling and forwarding the data.
6. The sharing system of claim 5, wherein the sharing system further comprises:
and the communication connection monitoring unit is used for monitoring the communication connection by the shared agent end and processing the data by using a preset method when the communication connection is abnormal.
CN201710148416.1A 2017-03-14 2017-03-14 Remote disk sharing method and sharing system based on NBD Active CN106961475B (en)

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 CN106961475A (en) 2017-07-18
CN106961475B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509155B (en) * 2018-03-31 2021-07-13 深圳忆联信息系统有限公司 Method and device for remotely accessing disk
CN113709707B (en) * 2021-10-29 2022-03-15 中兴通讯股份有限公司 Method and device for sidecar deployment in service grid, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419535A (en) * 2008-11-19 2009-04-29 北京航空航天大学 Distributed virtual magnetic disc system of virtual machine
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866408B (en) * 2010-06-30 2011-11-30 华中科技大学 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
CN104375877A (en) * 2014-10-15 2015-02-25 国云科技股份有限公司 Virtual machine online snapshot generating and deleting method
CN104598170B (en) * 2015-01-30 2017-12-05 华为技术有限公司 The method and apparatus for determining read/write path

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419535A (en) * 2008-11-19 2009-04-29 北京航空航天大学 Distributed virtual magnetic disc system of virtual machine
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

Also Published As

Publication number Publication date
CN106961475A (en) 2017-07-18

Similar Documents

Publication Publication Date Title
US10298457B2 (en) Synchronization of configuration file of virtual application distribution chassis
CN104462033B (en) The method and apparatus of edit operation is realized in equipment room
CN109561054B (en) Data transmission method, controller and access device
JP2009266202A5 (en) Information processing apparatus, information processing apparatus control method, session management system, and program
WO2015043413A1 (en) Method and device for sending requests
CN110012083B (en) Data transmission method, server and data transmission device
CN101815033A (en) Method, device and system for load balancing
CN106452873B (en) Control method, control device and processor in software defined network
CN104796473A (en) Cross-platform information push method and cross-platform information push system
EP3197130A1 (en) Method, system and management system for constructing virtual non-volatile storage medium
CN104158868B (en) A kind of document transmission method and management server
CN109510878A (en) A kind of long connection session keeping method and device
CN106961475B (en) Remote disk sharing method and sharing system based on NBD
CN106101297B (en) A kind of message answer method and device
WO2018024200A1 (en) Virtual desktop multicast control method, terminal, proxy terminal, and cloud desktop server
CN103944926B (en) Remote desktop conversation switching method, client and gateway
CN104243473B (en) A kind of method and device of data transmission
CN104685488A (en) System and method for creating virtual disk images for use with remote computer
CN105681266B (en) A kind of communication cluster method and device of mediaphone MMTel
CN111741006B (en) Discrete acquisition gateway and implementation method thereof
CN107707424A (en) The control method and system of load condition
CN106612307B (en) A kind of implementation method and device of always online business
US10972356B2 (en) Method for selecting negotiation counterpart, method for responding to discovery message, and related apparatus
CN107071038B (en) Method and device for transmitting multimedia data
CN106385356A (en) Login method and terminal, session establishing method and server

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