CN110677441B - Access method and device of object storage cluster - Google Patents

Access method and device of object storage cluster Download PDF

Info

Publication number
CN110677441B
CN110677441B CN201810706273.6A CN201810706273A CN110677441B CN 110677441 B CN110677441 B CN 110677441B CN 201810706273 A CN201810706273 A CN 201810706273A CN 110677441 B CN110677441 B CN 110677441B
Authority
CN
China
Prior art keywords
object storage
storage cluster
operating system
file
windows operating
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
CN201810706273.6A
Other languages
Chinese (zh)
Other versions
CN110677441A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Guangdong Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Guangdong Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Group Guangdong Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810706273.6A priority Critical patent/CN110677441B/en
Publication of CN110677441A publication Critical patent/CN110677441A/en
Application granted granted Critical
Publication of CN110677441B publication Critical patent/CN110677441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides an access method and device of an object storage cluster. The method is applied to a network file system running under a Windows operating system, and comprises the following steps: mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of a client in a virtual disk mode; when a file operation instruction input by a user is received, converting the file operation instruction into a hypertext transfer protocol (HTTP) message, wherein the HTTP message conforms to an interface standard of an object storage gateway interface of the object storage cluster; and sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message. The embodiment of the invention reduces the development cost and increases the universality of the object storage network.

Description

Access method and device of object storage cluster
Technical Field
The embodiment of the invention relates to the technical field of cloud storage, in particular to an access method and device for an object storage cluster.
Background
With the rapid development of cloud computing, distributed storage is developed, and data generated by cloud computing finally needs to fall into the distributed storage. The existing mainstream distributed storage system has various data redundancy protection strategies, so that the storage safety can be ensured. Distributed storage systems typically include both block storage and object storage.
The object storage regards all data as objects, and is the first choice of application scenarios such as data backup, archiving and streaming media. The object storage cluster is usually provided with an object storage gateway, and a user can access the object storage cluster by accessing the object storage gateway through a self-development client. The method is applied to data stored in an object, and most of the data are unstructured data such as pictures, documents, videos, forms and the like.
However, the traditional schemes for accessing the object storage cluster on the Windows operating system are all ways of developing an HTTP client, and such ways have certain limitations. For example, file operations are not friendly, copy and paste operations cannot be performed, files cannot be opened by double-clicking, and the like, and the necessary functions of flow control and the like are lacking. Thus, under the condition of rapid increase of data services, the traditional access mode can not adapt to the requirements of service development any more.
For such a situation, the characteristics of the file system (e.g., copy operation, paste operation, read/write operation, open operation, etc.) can be well adapted to the requirements of such upper layer services. The existing solution for combining the File System and the object storage cluster in the Windows operating System is realized by adding an independent File interface at a server and using a Network File System (NFS) client in Windows. The scheme requires that a server is modified, an object storage cluster is required to be provided with a corresponding interface firstly, an NFS gateway is realized at the server based on the interface, and finally, an NFS client is used for accessing on a Windows operating system, so that the original assembly of the object storage cluster cannot be used, the server can only be modified, and after a back-end cluster is replaced, the original NFS gateway cannot be compatible necessarily, the universality is poor, and the universality is not high.
In summary, the solution of combining the file system and the object storage cluster on the Windows operating system in the prior art has the problems of high development cost and poor universality.
Disclosure of Invention
The embodiment of the invention provides an access method and device of an object storage cluster, and aims to solve the problems of high development cost and poor universality in the prior art when a file system and the object storage cluster are combined on a Windows operating system.
In view of the foregoing problems, in a first aspect, an embodiment of the present invention provides an access method for an object storage cluster, where the method is applied to a network file system running under a Windows operating system, and the method includes:
mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of a client in a virtual disk mode;
when a file operation instruction input by a user is received, converting the file operation instruction into a hypertext transfer protocol (HTTP) message, wherein the HTTP message conforms to an interface standard of an object storage gateway interface of the object storage cluster;
and sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message.
In a second aspect, an embodiment of the present invention provides an apparatus for accessing an object storage cluster, where the apparatus is applied to a network file system running under a Windows operating system, and the apparatus includes:
the mounting module is used for mounting the target storage bucket acquired from the object storage cluster into a Windows operating system of the client in a virtual disk mode;
the command conversion module is used for converting the file operation command into a hypertext transfer protocol (HTTP) message when receiving the file operation command input by a user, wherein the HTTP message conforms to the interface standard of an object storage gateway interface of the object storage cluster;
and the message sending module is used for sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message.
In a third aspect, an embodiment of the present invention provides a network file system, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for accessing an object storage cluster when executing the computer program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for accessing an object storage cluster.
The access method and the device for the object storage cluster provided by the embodiment of the invention have the advantages that the target storage bucket acquired from the object storage cluster is mounted in the Windows operating system of the client in the form of the virtual disk, the file operating instruction is converted into the HTTP message meeting the standard of the interface of the object storage gateway when the file operating instruction input by a user is received, and finally the HTTP message is sent to the object storage cluster through the interface of the object storage gateway, so that the object storage cluster operates the data to be operated corresponding to the file operating instruction according to the HTTP message, the combination of the file system and the object storage can be realized by mapping the mounting of the target storage bucket into the virtual disk under the Windows operating system, the access of the user to the cloud data under the Windows operating system is realized, and the problem that when the file system is combined with the object storage cluster under the Windows operating system in the prior art is avoided, the process of improving the server and requiring the object storage cluster to have the corresponding interface is needed, the development cost is reduced, and the universality of the gateway interface is increased.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating the steps of a method for accessing an object storage cluster according to an embodiment of the present invention;
FIG. 2 is a block diagram of an access device for an object storage cluster according to an embodiment of the present invention;
FIG. 3 is a block diagram of a network file system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
As shown in fig. 1, which is a flowchart illustrating steps of an access method of an object storage cluster in an embodiment of the present invention, the method is applied to a network file system running under a Windows operating system, and the method includes the following steps:
step 101: and mounting the target storage bucket acquired from the object storage cluster into a Windows operating system of the client in a virtual disk mode.
In this step, specifically, when the network file system obtains the target bucket from the cloud-distributed object storage cluster, the target bucket may be mounted to the Windows operating system of the client in the form of a virtual disk, that is, the target bucket may be mapped to the Windows operating system of the client in the form of a virtual disk. Therefore, the combination of the file system and the object storage can be directly realized, so that the access of a user to cloud data under a Windows operating system is realized, the problems that in the prior art, when the file system and the object storage cluster are combined on the Windows operating system, an independent file interface needs to be independently added at a server, and the server passes through an NFS client in Windows are solved, namely the server does not need to be customized in the embodiment, the compatibility of the Windows operating system is improved, different cloud storage back ends can be connected in a butt joint mode, the customized development cost of the server is avoided, and the stability and the reliability of the cloud storage service are improved.
For example, when the target bucket is mounted to the Window operating system of the client, a virtual disk, which is a mapping of the target bucket in the Window operating system, may be displayed on the client. Specifically, the virtual disk can display metadata of the target bucket, so that a user can view a data architecture in the target bucket on the virtual disk, and the combination of a file system and object storage in a Windows operating system is realized.
In addition, specifically, the object storage cluster may be a Ceph cluster. However, it should be noted that the type of the object storage cluster is not specifically limited herein.
In addition, it should be noted here that the target root path in the object storage cluster may also be mounted in the Windows operating system of the client in the form of a virtual disk, and the combination of the file system and the object storage can also be realized.
Step 102: and when receiving a file operation instruction input by a user, converting the file operation instruction into a hypertext transfer protocol (HTTP) message, wherein the HTTP message conforms to the interface standard of an object storage gateway interface of the object storage cluster.
In this step, specifically, when the user inputs a file operation instruction in the Windows operating system, the Windows operating system may send the file operation instruction to the network file system, and at this time, the network file system receives the file operation instruction input by the user.
Specifically, the file operation instruction may include at least one of a read, write, delete, and change instruction.
In addition, specifically, when the network file system receives the file operation instruction, the network file system may convert the file operation instruction into a hypertext transfer protocol (HTTP) compliant message. Therefore, the file operation instruction is converted into the HTTP message which conforms to the interface standard of the object storage gateway interface of the object storage cluster, so that the Windows operating system can be directly accessed to the object storage cluster through the existing object storage gateway interface, the problem that the object storage cluster needs to be provided with a corresponding interface when a universal NFS client is used on Windows in the prior art is avoided, namely, the problem that the original component cannot be used by the object storage cluster is avoided, and the universality of the object storage cluster is further improved.
Specifically, the object storage gateway interface may be an Amazon S3 interface, and may also be an Openstack Swift interface, that is, a specific type of the object storage gateway interface accessing the object storage cluster is not specifically limited herein.
Step 103: and sending the HTTP message to the object storage cluster through the object storage gateway interface.
In this step, specifically, after the file operation instruction input by the user is converted into the HTTP message, the HTTP message may be sent to the object storage cluster through the object storage gateway interface, so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message.
Specifically, the network file system may send the HTTP message to an object storage gateway interface for accessing the object storage cluster, so that the object storage gateway interface sends the HTTP message to the object storage cluster, and the object storage cluster operates the to-be-operated data corresponding to the file operation instruction based on the HTTP message.
Therefore, a user can access the cloud distributed object storage cluster by inputting a normal file operation instruction, namely, the operation on data in the object storage cluster is realized. In addition, due to the consistency of the accessed data, when the operation of the user on the data in the object storage cluster is realized, other object storage clients accessing the same data can identify the operation of the user on the data, and the operation process of the other object storage clients on the data can be identified by the user accessing the same data, namely, the sharing of the data in the object storage cluster is realized.
Thus, the embodiment of the invention mounts the target bucket acquired from the object storage cluster into the Windows operating system of the client in the form of the virtual disk, converts the file operating instruction into the HTTP message meeting the standard of the object storage gateway interface when receiving the file operating instruction input by the user, and finally sends the HTTP message to the object storage cluster through the object storage gateway interface, so that the object storage cluster operates the data to be operated corresponding to the file operating instruction according to the HTTP message, thereby realizing the combination of the file system and the object storage by mapping the target bucket to the virtual disk under the Windows operating system, realizing the access of the user to the cloud data under the Windows operating system, avoiding the combination of the file system and the object storage cluster on the Windows operating system in the prior art, the process of improving the server and requiring the object storage cluster to have the corresponding interface is needed, the development cost is reduced, and the universality of the gateway interface is increased.
In addition, further, before the target bucket acquired from the object storage cluster is mounted in the Windows operating system of the client in the form of a virtual disk, the interface type of the object storage gateway interface of the object storage cluster and the target bucket to be mounted may be determined by the preset first configuration parameter. Therefore, the network file system can acquire the target storage bucket to be mounted, and a foundation is provided for mounting the target storage bucket.
Specifically, before determining the interface type of the object storage gateway interface of the object storage cluster and the target bucket to be mounted through a preset first configuration parameter, a user needs to have an account first and create a bucket through a console or a Software Development Kit (SDK) or other manners. At this time, the user may determine, through the preset first configuration parameter, the interface type of the object storage gateway interface of the object storage cluster and the target bucket to be mounted.
Specifically, the interface type of the object storage gateway interface of the object storage cluster may be Amazon S3 interface or Openstack Swift interface, that is, the type of the object storage gateway interface is not specifically limited herein.
In addition, specifically, when determining a target bucket to be mounted, the data center may be determined first, so as to facilitate determination of the target bucket.
In addition, further, before mounting the target storage bucket acquired from the object storage cluster into the Windows operating system of the client in the form of a virtual disk, a target storage space can be selected from the Windows operating system according to a preset second configuration parameter; and determining the target storage space as the storage space of the data to be operated, so that the object storage cluster caches the data to be operated corresponding to the file operation instruction obtained according to the HTTP message in the target storage space.
Therefore, by selecting the storage space of the data to be operated in advance, after the target storage bucket is mounted to the Windows operating system of the client in the form of a virtual disk and the HTTP message is sent to the object storage cluster, the object storage cluster can cache the data to be operated, which is obtained according to the HTTP message and corresponds to the file operation instruction, in the target storage space, so that a user can check the data to be operated in the target storage space, convenience is provided for the user to operate the data to be operated, and the operation efficiency of the user is improved. In addition, the data to be operated is cached in the target storage space, so that the visual effect of operating the data to be operated can be presented on the client, a user can operate the file in a normal file operation mode, and the user can access the object storage cluster in a customary file access mode.
It should be noted that, the network file system may further select a target transmission path from the Windows operating system according to a preset second configuration parameter, and determine the target transmission path as a transmission path of data to be operated, so that the object storage cluster transmits the data to be operated, which is obtained according to the HTTP message and corresponds to the file operation instruction, to the client through the target transmission path, thereby implementing presentation of the data to be operated on the client, providing convenience for a user to operate the data to be operated, and improving operation efficiency of the user.
In addition, before the target bucket acquired from the object storage cluster is mounted in the Windows operating system of the client in the form of a virtual disk, the file operation permission of the user may be set according to a preset third configuration parameter.
Specifically, the file operation authority may include at least one of reading, writing, deleting and changing.
Therefore, the security of the data in the object storage cluster is ensured by setting the file operation authority of the user.
In addition, further, before mounting a target bucket acquired from an object storage cluster into a Windows operating system of a client in the form of a virtual disk, a pre-configured security authentication file may be sent to the object storage cluster, so that the object storage cluster performs security authentication on the client according to the security authentication file; and when receiving an indication message which is sent by the object storage cluster and indicates that the security authentication is successful, mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of the client in a virtual disk mode.
Therefore, the security authentication file configured in advance is sent to the object storage cluster, so that the security authentication of the object storage cluster to the client is realized, and after the indication of successful security authentication is received, the target storage bucket is mounted in the Windows operating system of the client in the form of the virtual disk, so that the security of data in the object storage cluster is further ensured.
In addition, further, after the hypertext transfer protocol HTTP message is sent to the object storage cluster through the object storage gateway interface, a transmission time and/or a transmission mode of data to be operated of the file operation instruction object may also be set, so that the object storage cluster transmits the data to be operated corresponding to the file operation instruction obtained according to the HTTP message to a client according to the transmission time and/or the transmission mode.
Specifically, the transmission mode may include asynchronous transmission, block transmission, breakpoint transmission and the like; the transmission time may be a preset time for transmission during the idle period of the network. Therefore, the intelligent transmission process of the data to be operated is realized by setting the transmission time and the transmission mode of the data to be operated of the file operation instruction object, so that the management and optimization process of network transmission is realized.
Thus, in this embodiment, by mounting a target bucket obtained from an object storage cluster in a Windows operating system of a client in the form of a virtual disk, converting a file operation instruction into an HTTP message meeting the standard of an object storage gateway interface when receiving the file operation instruction input by a user, and finally sending the HTTP message to the object storage cluster through the object storage gateway interface, the object storage cluster operates data to be operated corresponding to the file operation instruction according to the HTTP message, so that the combination of a file system and object storage can be realized by mapping the target bucket to be mounted as the virtual disk under the Windows operating system, thereby avoiding a process that a server needs to be improved and the object storage cluster needs to have a corresponding interface when the file system is combined with the object storage cluster on the Windows operating system in the prior art, the cost of server development is avoided, and the universality of the gateway interface is increased.
In addition, as shown in fig. 2, a block diagram of an access device of an object storage cluster in an embodiment of the present invention is a block diagram, where the access device is applied to a network file system running under a Windows operating system, and the access device includes:
a mounting module 201, configured to mount a target bucket acquired from an object storage cluster into a Windows operating system of a client in the form of a virtual disk;
the instruction conversion module 202 is configured to, when a file operation instruction input by a user is received, convert the file operation instruction into a hypertext transfer protocol HTTP message, where the HTTP message conforms to an interface standard of an object storage gateway interface of the object storage cluster;
a message sending module 203, configured to send the HTTP message to the object storage cluster through the object storage gateway interface, so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message.
In the access device for the object storage cluster provided in this embodiment, the mount module 201 mounts the target bucket acquired from the object storage cluster to the Windows operating system of the client in the form of a virtual disk, the instruction conversion module 202 converts the file operation instruction into an HTTP message when receiving the file operation instruction input by the user, where the HTTP message conforms to the interface standard of the object storage gateway interface of the object storage cluster, and finally, the message sending module 203 sends the HTTP message to the object storage cluster through the object storage gateway interface, so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message, thereby combining the file system and the object storage, and further implementing the access of the user to the cloud data on the Windows operating system, and avoiding the problem that the file system and the object storage cluster are combined on the Windows operating system in the prior art, the process of improving the server and requiring the object storage cluster to have the corresponding interface is needed, the development cost of the server is avoided, and the universality of the gateway interface is increased.
Optionally, the apparatus further comprises:
the first determining module is configured to determine, according to a preset first configuration parameter, an interface type of an object storage gateway interface of the object storage cluster and a target bucket to be mounted.
Optionally, the apparatus further comprises:
the selecting module is used for selecting a target storage space from the Windows operating system through a preset second configuration parameter;
and the second determining module is used for determining the target storage space as the storage space of the data to be operated, so that the object storage cluster caches the data to be operated, which is obtained according to the HTTP message and corresponds to the file operation instruction, in the target storage space.
Optionally, the apparatus further comprises:
and the first setting module is used for setting the file operation permission of the user through a preset third configuration parameter.
Optionally, the apparatus further comprises:
the file sending module is used for sending a pre-configured security authentication file to the object storage cluster so that the object storage cluster can perform security authentication on the client according to the security authentication file;
and the processing module is used for triggering the mounting module when receiving an indication message which is sent by the object storage cluster and indicates that the security authentication is successful, so as to mount the target storage bucket acquired from the object storage cluster into a Windows operating system of the client in a virtual disk form.
Optionally, the apparatus further comprises:
and the second setting module is used for setting the transmission time and/or the transmission mode of the data to be operated of the file operation instruction object, so that the object storage cluster transmits the data to be operated corresponding to the file operation instruction obtained according to the HTTP message to the client according to the transmission time and/or the transmission mode.
Thus, the access device for an object storage cluster provided in this embodiment mounts a target bucket obtained from the object storage cluster in a Windows operating system of a client in a virtual disk form, converts a file operation instruction into an HTTP message meeting the standard of an object storage gateway interface when receiving the file operation instruction input by a user, and finally sends the HTTP message to the object storage cluster through the object storage gateway interface, so that the object storage cluster operates data to be operated corresponding to the file operation instruction according to the HTTP message, and thus the combination of a file system and an object storage can be realized by mapping the mount of the target bucket to the virtual disk under the Windows operating system, thereby realizing the access of the user to cloud data under the Windows operating system, and avoiding the problem that the file system and the object storage cluster are combined in the prior art, the process of improving the server and requiring the object storage cluster to have the corresponding interface is needed, the development cost of the server is avoided, and the universality of the gateway interface is increased.
It should be noted that, in the embodiment of the present invention, the related functional modules may be implemented by a hardware processor (hardware processor), and the same technical effect can be achieved, which is not described herein again.
In yet another embodiment of the present invention, a network file system is provided, which runs under the Windows operating system, and as shown in fig. 3, the network file system includes a memory 301, a processor 302, and a computer program stored on the memory 301 and operable on the processor 302. The memory 301 and the processor 302 complete communication with each other through the bus 303. The processor 302 is configured to call program instructions in the memory 301 to perform the following method: mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of a client in a virtual disk mode; when a file operation instruction input by a user is received, converting the file operation instruction into a hypertext transfer protocol (HTTP) message, wherein the HTTP message conforms to an interface standard of an object storage gateway interface of the object storage cluster; and sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message.
The network file system provided by the embodiment of the invention can execute the specific steps in the access method of the object storage cluster, and can achieve the same technical effect, and the specific description is not provided herein.
Further, the program instructions in the memory 301 may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In a further embodiment of the invention, a non-transitory computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, is operative to perform the method of: mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of a client in a virtual disk mode; when a file operation instruction input by a user is received, converting the file operation instruction into a hypertext transfer protocol (HTTP) message, wherein the HTTP message conforms to an interface standard of an object storage gateway interface of the object storage cluster; and sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message.
The non-transitory computer-readable storage medium provided in the embodiment of the present invention may perform specific steps in the access method of the object storage cluster, and may achieve the same technical effects, which are not described in detail herein.
In yet another embodiment of the present invention, a computer program product is provided, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that when executed by a computer perform the method of: mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of a client in a virtual disk mode; when a file operation instruction input by a user is received, converting the file operation instruction into a hypertext transfer protocol (HTTP) message, wherein the HTTP message conforms to an interface standard of an object storage gateway interface of the object storage cluster; and sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message.
The computer program product provided by the embodiment of the present invention can execute specific steps in the access method of the object storage cluster, and can achieve the same technical effect, which is not described in detail herein.
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 may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. An access method for an object storage cluster, the method being applied to a network file system running under a Windows operating system, the method comprising:
mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of a client in a virtual disk mode;
when a file operation instruction input by a user is received, converting the file operation instruction into a hypertext transfer protocol (HTTP) message, wherein the HTTP message conforms to an interface standard of an object storage gateway interface of the object storage cluster;
sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message;
after the sending the hypertext transfer protocol (HTTP) message to the object storage cluster through the object storage gateway interface, the method further comprises:
setting transmission time and/or transmission mode of data to be operated of the file operation instruction object, so that the object storage cluster transmits the data to be operated corresponding to the file operation instruction obtained according to the HTTP message to a client according to the transmission time and/or transmission mode;
before mounting the target bucket acquired from the object storage cluster into a Windows operating system of the client in the form of a virtual disk, the method further includes:
sending a pre-configured security authentication file to the object storage cluster so that the object storage cluster performs security authentication on the client according to the security authentication file;
and when receiving an indication message which is sent by the object storage cluster and indicates that the security authentication is successful, mounting a target storage bucket acquired from the object storage cluster into a Windows operating system of the client in a virtual disk mode.
2. The method of claim 1, wherein before mounting the target bucket obtained from the object storage cluster in the form of a virtual disk into the Windows operating system of the client, the method further comprises:
and determining the interface type of an object storage gateway interface of the object storage cluster and a target bucket to be mounted through a preset first configuration parameter.
3. The method of claim 1, wherein before mounting the target bucket obtained from the object storage cluster in the form of a virtual disk into the Windows operating system of the client, the method further comprises:
selecting a target storage space from the Windows operating system through a preset second configuration parameter;
and determining the target storage space as the storage space of the data to be operated, so that the object storage cluster caches the data to be operated corresponding to the file operation instruction obtained according to the HTTP message in the target storage space.
4. The method of claim 1, wherein before mounting the target bucket obtained from the object storage cluster in the form of a virtual disk into the Windows operating system of the client, the method further comprises:
and setting the file operation authority of the user through a preset third configuration parameter.
5. An access device for an object storage cluster, the device being applied to a network file system running under a Windows operating system, the device comprising:
the mounting module is used for mounting the target storage bucket acquired from the object storage cluster into a Windows operating system of the client in a virtual disk mode;
the command conversion module is used for converting the file operation command into a hypertext transfer protocol (HTTP) message when receiving the file operation command input by a user, wherein the HTTP message conforms to the interface standard of an object storage gateway interface of the object storage cluster;
the message sending module is used for sending the HTTP message to the object storage cluster through the object storage gateway interface so that the object storage cluster operates the data to be operated corresponding to the file operation instruction according to the HTTP message;
a second setting module, configured to set transmission time and/or a transmission mode of data to be operated of the file operation instruction object, so that the object storage cluster transmits the data to be operated, which is obtained according to the HTTP message and corresponds to the file operation instruction, to a client according to the transmission time and/or the transmission mode;
the file sending module is used for sending a pre-configured security authentication file to the object storage cluster so that the object storage cluster can perform security authentication on the client according to the security authentication file;
and the processing module is used for triggering the mounting module when receiving an indication message which is sent by the object storage cluster and indicates that the security authentication is successful, so as to mount the target storage bucket acquired from the object storage cluster into a Windows operating system of the client in a virtual disk form.
6. A network file system comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for accessing an object storage cluster according to any of claims 1 to 4 when executing the computer program.
7. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for accessing an object storage cluster according to any one of claims 1 to 4.
CN201810706273.6A 2018-07-02 2018-07-02 Access method and device of object storage cluster Active CN110677441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810706273.6A CN110677441B (en) 2018-07-02 2018-07-02 Access method and device of object storage cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810706273.6A CN110677441B (en) 2018-07-02 2018-07-02 Access method and device of object storage cluster

Publications (2)

Publication Number Publication Date
CN110677441A CN110677441A (en) 2020-01-10
CN110677441B true CN110677441B (en) 2022-05-06

Family

ID=69065262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810706273.6A Active CN110677441B (en) 2018-07-02 2018-07-02 Access method and device of object storage cluster

Country Status (1)

Country Link
CN (1) CN110677441B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371891B (en) * 2020-03-03 2022-08-05 腾讯云计算(北京)有限责任公司 Service processing method, device, equipment and storage medium
CN111857592A (en) * 2020-07-21 2020-10-30 星辰天合(北京)数据科技有限公司 Data storage method and device based on object storage system and electronic equipment
CN114442902A (en) * 2020-10-19 2022-05-06 深圳艾派网络科技股份有限公司 Object storage breakpoint resume method and system
CN113504872B (en) * 2021-05-14 2023-11-03 济南浪潮数据技术有限公司 Method, system, equipment and medium for mounting virtual disk on cloud physical machine
CN113992658B (en) * 2021-10-28 2023-09-26 科大讯飞股份有限公司 Data transmission method, related device, equipment, system and storage medium
CN114302085B (en) * 2021-12-23 2024-02-20 云从科技集团股份有限公司 Data storage method, device, electronic equipment and storage medium
CN115883536B (en) * 2022-11-28 2024-06-18 中国联合网络通信集团有限公司 File transfer method, device, system and storage medium
CN117149073A (en) * 2023-08-30 2023-12-01 中科驭数(北京)科技有限公司 Configuration method, device and equipment of storage scheme and storage medium
CN116909992B (en) * 2023-09-12 2023-11-24 创云融达信息技术(天津)股份有限公司 Method for realizing communication between system and object storage through NTFS symbol link

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592139A (en) * 2015-10-28 2016-05-18 杭州华三通信技术有限公司 HA implementation method and device of distributed file system management platform
CN106612280A (en) * 2016-12-26 2017-05-03 北京鼎普科技股份有限公司 Virtualization management method and system of terminal equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459669A (en) * 2008-12-29 2009-06-17 成都市华为赛门铁克科技有限公司 Access method and apparatus for network file system
CN106933872A (en) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 A kind of method and device that cloud storage service is accessed by traditional file systemses interface
CN107566477B (en) * 2017-08-28 2021-06-22 北京奇艺世纪科技有限公司 Method and device for acquiring files in distributed file system cluster
CN107734026B (en) * 2017-10-11 2020-10-16 苏州浪潮智能科技有限公司 Method, device and equipment for designing network additional storage cluster

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592139A (en) * 2015-10-28 2016-05-18 杭州华三通信技术有限公司 HA implementation method and device of distributed file system management platform
CN106612280A (en) * 2016-12-26 2017-05-03 北京鼎普科技股份有限公司 Virtualization management method and system of terminal equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于OpenStack的云存储方案;徐芳辰,沈苏彬;《计算机技术与发展》;20151104;全文 *

Also Published As

Publication number Publication date
CN110677441A (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN110677441B (en) Access method and device of object storage cluster
US10841180B2 (en) Service level agreement based storage access
US10375166B2 (en) Caching device and method thereof for integration with a cloud storage system
US6883081B2 (en) Storage management software bridges
JP2014522011A (en) Providing access to mainframe data objects in a heterogeneous computing environment
US9591079B2 (en) Method and apparatus for managing sessions of different websites
KR102098415B1 (en) Cache management
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
JP2020500359A (en) Computer program, computer system, and method for storing and retrieving a restricted data set with an unrestricted data set from a cloud network
CN111126940B (en) Service application processing method, device, equipment and computer readable storage medium
US20150163282A1 (en) System and method for accessing remote disk images using a vmedia client and through a remote access appliance
US10795747B2 (en) File synchronizing service status monitoring and error handling
CN111164570B (en) System and method for creating virtual disk images for use with remote computers
EP3163469B1 (en) Method and device for realizing ip disk file storage
CN109683916A (en) A kind of method of cloud mirrored host computer of the autonomous creation comprising application software
US20050177577A1 (en) Accessing data on remote storage servers
US20170070391A1 (en) Information sharing system
EP4379543A1 (en) Cloud desktop data migration method, service node, management node, server, electronic device, and computer-readable storage medium
CN115987974A (en) Lightweight FTP service method and system
US11438398B2 (en) 3rd generation partnership project (3gpp) framework for live uplink streaming (flus) sink capabilities determination
US20170364293A1 (en) Method and apparatus for data processing
US10198285B2 (en) System and method for creating virtual disk images for use with remote computer
US11948016B2 (en) Application programming interface management
US11909720B2 (en) Secure remote support of systems deployed in a private network
CN110011767B (en) Method and apparatus for TCP connection backup

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