CN107491551A - A kind of distributed file system realizes the method and device that client accesses - Google Patents

A kind of distributed file system realizes the method and device that client accesses Download PDF

Info

Publication number
CN107491551A
CN107491551A CN201710764986.3A CN201710764986A CN107491551A CN 107491551 A CN107491551 A CN 107491551A CN 201710764986 A CN201710764986 A CN 201710764986A CN 107491551 A CN107491551 A CN 107491551A
Authority
CN
China
Prior art keywords
file system
root
client
carry
export
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710764986.3A
Other languages
Chinese (zh)
Other versions
CN107491551B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710764986.3A priority Critical patent/CN107491551B/en
Publication of CN107491551A publication Critical patent/CN107491551A/en
Application granted granted Critical
Publication of CN107491551B publication Critical patent/CN107491551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses the method and device that a kind of distributed file system realizes client access, including:In response to the access request of client, root carry is sent to the file system by the operate interface of file system and asked;By the operate interface, the root carry information returned by the file system is obtained;The synchronous root carry information forms the carry information corresponding with the Export directoey, the carry message reference file system for passing through the Export directoey in order to the client to multiple Export directoeys.Method and device provided by the present invention, occupancy of the carry to distributed file system internal memory is effectively reduced, improve the stability of distributed file system stability and business.

Description

A kind of distributed file system realizes the method and device that client accesses
Technical field
The present invention relates to computer electronic applications, realize what client accessed more particularly to a kind of distributed file system Method and device.
Background technology
As computer electronic applications constantly develop, people pursue bigger data space and calculated faster Speed.Distributed file system can meet people to mass data storage and calculate requirement.The design of distributed file system Based on server and client side.Distributed file system refers to that the physical memory resources of file system management pass through computer network It is connected with node, a typical network may include multiple servers accessed for multiple client.
In the environment of distributed file system, when client accesses the resource in file system, it is necessary to pass through NAS (network attached storage) server exports share directory, and client is by carry share directory so as to accessing the money in file system Source.
Fig. 1 is refer to, Fig. 1 is that distributed file system realizes the method flow diagram that client accesses in the prior art.It is existing In some distributed file systems, for nas server, when a client needs to access file system, lead accordingly Going out catalogue just needs to carry out the client of a carry, the i.e. corresponding file system of each Export directoey with file system, And file system can give each client to distribute certain resource.Each client corresponds to certain resource, takes distributed A part of memory headroom of file system.Nas server includes multiple Export directoeys, then multiple Export directoeys are corresponding repeatedly hangs Carry, multiple carry can take the very big memory headroom of distributed file system, so as to influence distributed file system stability and The stability of business.
In summary as can be seen that being mesh to the occupancy of file system internal memory when how to reduce client access file system Before have the problem of to be solved.
The content of the invention
It is an object of the invention to provide the method and device that a kind of distributed file system realizes client access, to solve The problem of internal memory of file system excessively being taken when client accesses file system in the prior art.
In order to solve the above technical problems, the present invention, which provides a kind of distributed file system, realizes the method that client accesses, Including:In response to the access request of client, root is sent to the file system by the operate interface of file system and hung Carry request;By the operate interface, the root carry information returned by the file system is obtained;The synchronous root Carry information forms the carry information corresponding with the Export directoey, in order to which the client is led to multiple Export directoeys Cross the carry message reference file system of the Export directoey.
Preferably, when the client stops accessing the file system, the root of the file system is unloaded.
Preferably, after the root of the unloading file system, discharge and hung corresponding to the file system root directory Information carrying ceases.
Preferably, when the client stops accessing the file system, the extension corresponding to the Export directoey is discharged Information carrying ceases.
Present invention also offers the device that a kind of distributed file system realizes client access, including:
Request module, for the access request at customer in response end, by the operate interface of file system to the file system System sends the request of root carry;
Receiving module, for by the operate interface, obtaining the root carry information returned by the file system;
Synchronization module:For the synchronous root carry information to multiple Export directoeys, formed and the Export directoey Corresponding carry information, the carry message reference file system for passing through the Export directoey in order to the client.
Preferably, in addition to Unload module, when stopping accessing the file system for the client, the text is unloaded The root of part system.
Preferably, in addition to release module, after the root for unloading the file system, the file system is discharged Carry information corresponding to system root.
Preferably, when the client stops accessing the file system, the release module discharges the Export directoey The corresponding carry information.
A kind of distributed file system provided by the present invention realizes the method and device that client accesses, and is needed in client When accessing file system, the request of root carry is sent to the operate interface of file system, file system passes through operate interface After returning to root directory information;Using method and device provided by the present invention, by the carry synchronizing information of the root at most In individual Export directoey, the carry information corresponding with the Export directoey is formed, the client can be believed according to the carry Breath accesses file system.
According to the above method and device, client is when accessing file system, the carry letter of corresponding multiple Export directoeys Breath is identical with root carry information, and multiple Export directoeys have only carried out a carry, effectively reduces carry to distributed text The occupancy of part Installed System Memory, improve the stability of distributed file system stability and business.
Brief description of the drawings
, below will be to embodiment or existing for the clearer explanation embodiment of the present invention or the technical scheme of prior art The required accompanying drawing used is briefly described in technology description, it should be apparent that, drawings in the following description are only this hair Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram that distributed file system realizes the method that client accesses in the prior art;
Fig. 2 is the first specific implementation that distributed file system provided by the present invention realizes the method that client accesses The flow chart of example;
Fig. 3 is Fig. 2 idiographic flow schematic diagram;
Fig. 4 is second of specific implementation that distributed file system provided by the present invention realizes the method that client accesses The flow chart of example;
Fig. 5 is the structural frames that a kind of distributed file system provided in an embodiment of the present invention realizes the device that client accesses Figure;
The distributed file system that Fig. 6 is provided by Fig. 5 realizes the workflow block diagram for the device that client accesses.
Embodiment
The core of the present invention is to provide a kind of distributed file system and realizes the method and device that client accesses, and effectively subtracts Occupancy of the carry to distributed file system internal memory is lacked.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiment is only part of the embodiment of the present invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
Fig. 2 and Fig. 3 are refer to, Fig. 2 is that distributed file system provided by the present invention realizes the method that client accesses The first specific embodiment flow chart;Fig. 3 is Fig. 2 idiographic flow schematic diagram;The first specific embodiment includes following Step:
Step S201:In response to the access request of client, by the operate interface of file system to the file system Send the request of root carry;
The operate interface of the file system refers to the communication protocol between server.
Step S202:By the operate interface, the root carry information returned by the file system is obtained;
Step S203:The synchronous root carry information is formed relative with the Export directoey to multiple Export directoeys The carry information answered, the carry message reference file system for passing through the Export directoey in order to the client.
Client described above is identical with the number of Export directoey and is not construed as limiting.
As described in Figure 3, in this specific embodiment, nas server asks carry to the root Export directoey of file system;Text Part system returns to root carry information by operate interface to nas server, and client can pass through the root of root Export directoey Catalogue carry information conducts interviews to file system;Nas server is by root carry synchronizing information to Export directoey, so as to visitor File system is realized by the carry information in Export directoey and accessed in family end.
In the prior art, if it is desired to which the client number of access is n, and the number of corresponding Export directoey is also n, file X is saved as in each carry client distribution of system, n client accounts for n*x internal memories altogether.
In this specific embodiment, no matter the Export directoey of how many client and respective number, nas server only can be with text The root of part system carries out carry, that is, only takes up the internal memory of file system x sizes, effectively reduce carry to distributed document The occupancy of Installed System Memory, improve the stability of distributed file system stability and business.
Fig. 4 is refer to, Fig. 4 is that distributed file system provided by the present invention realizes the second of the method that client accesses The flow chart of kind specific embodiment.
On the basis of the first specific embodiment, in this specific embodiment, when client stops accessing, root is added Catalogue unload and or carry information discharge the step of, specifically include following steps:
Step S401:Start nas server;
Step S402:In response to the access request of client, by the operate interface of file system to the file system Send the request of root carry;
Step S403:By the operate interface, the root carry information returned by the file system is obtained;
Step S404:The synchronous root carry information is formed relative with the Export directoey to multiple Export directoeys The carry information answered;
Step S405:Carry message reference file system of the client corresponding on Export directoey;
Step S406:Client stops accessing file system, unloads root Export directoey;
Step S407:Discharge root carry information;
Step S408:Discharge carry information corresponding to multiple Export directoeys.
In actual applications, it can on demand choose whether to unload root Export directoey, after root Export directoey is not needed, unload Load root Export directoey can reduce the occupancy to nas server internal memory.When client terminates to access file system, can also release Root carry information is put, releases the internal memory shared by root carry information.Accordingly, with can be by catalogue carry information Release, saves more memory headrooms.Certainly, root Export directoey, release root carry information and release export mesh are unloaded The time of carry information is not construed as limiting corresponding to record, can progressively carry out, and can also carry out wantonly two step simultaneously or carry out simultaneously Three steps.Unload root Export directoey, release root carry information and the time order and function for discharging carry information corresponding to Export directoey Or how much the number of execution wherein step has no effect on the realization of this specific embodiment.
Fig. 5 is refer to, Fig. 5 is that a kind of distributed file system provided in an embodiment of the present invention realizes the dress that client accesses The structured flowchart put;Specific device can include:
Request module 100, for the access request at customer in response end, by the operate interface of file system to the file System sends the request of root carry;
Receiving module 200, for by the operate interface, obtaining the root carry returned by the file system and believing Breath;
Synchronization module 300:For the synchronous root carry information to multiple Export directoeys, formed and the export mesh Carry information corresponding to picture recording, the carry message reference file system for passing through the Export directoey in order to the client System.
In present apparatus specific implementation, it may further include:
Unload module 400, when stopping accessing the file system for the client, unload the root of the file system Catalogue;
Release module 500, after the root for unloading the file system, discharge the root carry information With or Export directoey corresponding to carry information.
Above-mentioned request module 100 and receiving module 200 may be collectively referred to as to connection module 600.It will can realize to file system System root carry simultaneously obtains the module of the root carry information returned by the file system as to connection module.
Realize that the device that client accesses is introduced to distributed file system provided in an embodiment of the present invention below, under The distributed file system of text description realizes that the device that client accesses realizes client with above-described distributed file system The method that end accesses can be mutually to should refer to.
The distributed file system of the present embodiment realizes that the device that client accesses is used to realize foregoing distributed document System realizes the method that client accesses, therefore distributed file system realizes the specific embodiment party in the device that client accesses The visible distributed file system hereinbefore of formula realizes the embodiment part for the method that client accesses, for example, request module 100, receiving module 200, synchronization module 300, it is respectively used to realize that above-mentioned distributed file system realizes the side that client accesses Step S101, S102 and S103 in method, so, its embodiment is referred to retouching for corresponding various pieces embodiment State, will not be repeated here.
Fig. 6 is refer to, the distributed file system that Fig. 6 is provided by Fig. 5 realizes the workflow for the device that client accesses Journey block diagram.
When multiple client needs to conduct interviews to file system, connection module 600 is asked to file in nas server The root of system carries out carry, and obtains root carry information;Synchronization module 300 is by the root carry synchronizing information To multiple Export directoeys, client can be conducted interviews by corresponding Export directoey to file system;Stop visiting in client When asking, Unload module 400 unloads root Export directoey on demand;Release module 500 discharge the root carry information and or lead Go out carry information corresponding to catalogue.Therefore, when having multiple client to need to conduct interviews to file system, nas server only needs Carry is carried out to file system, effectively reduce occupancy of the carry to distributed file system internal memory, improve distribution The stability of formula file system stability and business.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be with it is other The difference of embodiment, between each embodiment same or similar part mutually referring to.For dress disclosed in embodiment For putting, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part Explanation.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The method and device for realizing client access to distributed file system provided by the present invention above are carried out It is discussed in detail.Specific case used herein is set forth to the principle and embodiment of the present invention, above example Illustrate to be only intended to help the method and its core concept for understanding the present invention.It should be pointed out that the common skill for the art For art personnel, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these change Enter and modify to also fall into the protection domain of the claims in the present invention.

Claims (8)

1. a kind of distributed file system realizes the method that client accesses, it is characterised in that including:
In response to the access request of client, root carry is sent to the file system by the operate interface of file system Request;
By the operate interface, the root carry information returned by the file system is obtained;
The synchronous root carry information forms the carry information corresponding with the Export directoey to multiple Export directoeys, The carry message reference file system for passing through the Export directoey in order to the client.
2. the method as described in claim 1, it is characterised in that also include:The client stops accessing the file system When, unload the root of the file system.
3. method as claimed in claim 2, it is characterised in that also include after the root of the unloading file system: Discharge carry information corresponding to the file system root directory.
4. the method as described in any one of claims 1 to 3, it is characterised in that also include:The client stops described in access During file system, the carry information corresponding to the Export directoey is discharged.
5. a kind of distributed file system realizes the device that client accesses, it is characterised in that including:
Request module, for the access request at customer in response end, sent out by the operate interface of file system to the file system Root carry is sent to ask;
Receiving module, for by the operate interface, obtaining the root carry information returned by the file system;
Synchronization module:For the synchronous root carry information to multiple Export directoeys, formed relative with the Export directoey The carry information answered, the carry message reference file system for passing through the Export directoey in order to the client.
6. device as claimed in claim 5, it is characterised in that also include:
Unload module, when stopping accessing the file system for the client, unload the root of the file system.
7. device as claimed in claim 6, it is characterised in that also include:
Release module, after the root for unloading the file system, discharge and hung corresponding to the file system root directory Information carrying ceases.
8. the device as described in any one of claim 5 to 7, it is characterised in that also include:The client stops described in access During file system, the release module discharges the carry information corresponding to the Export directoey.
CN201710764986.3A 2017-08-30 2017-08-30 Method and device for realizing client access of distributed file system Active CN107491551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710764986.3A CN107491551B (en) 2017-08-30 2017-08-30 Method and device for realizing client access of distributed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710764986.3A CN107491551B (en) 2017-08-30 2017-08-30 Method and device for realizing client access of distributed file system

Publications (2)

Publication Number Publication Date
CN107491551A true CN107491551A (en) 2017-12-19
CN107491551B CN107491551B (en) 2021-04-06

Family

ID=60645704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710764986.3A Active CN107491551B (en) 2017-08-30 2017-08-30 Method and device for realizing client access of distributed file system

Country Status (1)

Country Link
CN (1) CN107491551B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920628A (en) * 2018-06-29 2018-11-30 郑州云海信息技术有限公司 A kind of distributed file system access method and device being adapted to big data platform
CN116501713A (en) * 2023-06-26 2023-07-28 成都谐盈科技有限公司 Method for realizing distributed file system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064927A (en) * 2012-12-21 2013-04-24 曙光信息产业(北京)有限公司 Data access method and device of distributed file system
CN103473062A (en) * 2013-09-13 2013-12-25 惠州Tcl移动通信有限公司 Method and system for mobile terminal customization based on user space file system
CN103491155A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Cloud computing method and system for achieving mobile computing and obtaining mobile data
CN104580517A (en) * 2015-01-27 2015-04-29 浪潮集团有限公司 HDFS (Hadoop distributed file system)-based access method and system and user local system equipment
US9632892B1 (en) * 2015-03-30 2017-04-25 EMC IP Holding Company LLC NFS cluster failover
CN106682227A (en) * 2017-01-06 2017-05-17 郑州云海信息技术有限公司 Log data storage system based on distributed file system and reading-writing method
CN106709056A (en) * 2017-01-09 2017-05-24 郑州云海信息技术有限公司 Nfs mounted directory exporting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064927A (en) * 2012-12-21 2013-04-24 曙光信息产业(北京)有限公司 Data access method and device of distributed file system
CN103473062A (en) * 2013-09-13 2013-12-25 惠州Tcl移动通信有限公司 Method and system for mobile terminal customization based on user space file system
CN103491155A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Cloud computing method and system for achieving mobile computing and obtaining mobile data
CN104580517A (en) * 2015-01-27 2015-04-29 浪潮集团有限公司 HDFS (Hadoop distributed file system)-based access method and system and user local system equipment
US9632892B1 (en) * 2015-03-30 2017-04-25 EMC IP Holding Company LLC NFS cluster failover
CN106682227A (en) * 2017-01-06 2017-05-17 郑州云海信息技术有限公司 Log data storage system based on distributed file system and reading-writing method
CN106709056A (en) * 2017-01-09 2017-05-24 郑州云海信息技术有限公司 Nfs mounted directory exporting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
司梦如: "基于RT-Thread的NANDFLASH文件系统中间层的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920628A (en) * 2018-06-29 2018-11-30 郑州云海信息技术有限公司 A kind of distributed file system access method and device being adapted to big data platform
CN116501713A (en) * 2023-06-26 2023-07-28 成都谐盈科技有限公司 Method for realizing distributed file system
CN116501713B (en) * 2023-06-26 2023-09-22 成都谐盈科技有限公司 Method for realizing distributed file system

Also Published As

Publication number Publication date
CN107491551B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
JP7127010B2 (en) Resource allocation methods, apparatus, electronic equipment, computer readable media and computer programs
CN105897946A (en) Obtaining method and system of access address
CN108845877B (en) Method, device and system for managing memory
CN106897442A (en) A kind of distributed file system user quota method for pre-distributing and distribution system
CN104301257B (en) A kind of resource allocation methods, device and equipment
CN110191160A (en) A kind of concurrency control method and device
CN115567251A (en) Multi-service isolation method and system for micro-service cluster
CN106202082A (en) The method and device of built-up foundation data buffer storage
CN110362384A (en) A kind of resource allocation methods, device, electronic equipment and storage medium
CN107580066A (en) The method, apparatus and system of file access in a kind of distributed NAS storage system
CN107341056A (en) A kind of method and device of the thread distribution based on NFS
CN107124469A (en) A kind of clustered node communication means and system
CN108470054A (en) A kind of data access method and system
CN108574645A (en) A kind of array dispatching method and device
CN107491551A (en) A kind of distributed file system realizes the method and device that client accesses
CN107634849A (en) A kind of global block chain link border construction method
CN103369038A (en) PaaS (platform as a service) management platform and method
CN110019537A (en) Local cache method for refreshing, device, computer equipment and storage medium
US10257067B2 (en) Network speed detection
CN110933152B (en) Preheating method, device and system and electronic equipment
US20200394085A1 (en) Smart contract information redirect to updated version of smart contract
CN109743179A (en) A kind of electronics license signs and issues method on demand
CN107465769A (en) A kind of IP Address in LAN management method and device
CN109831502B (en) Construction method of novel website cloud virtual host framework
CN105871659A (en) Monitoring method and device of newly added 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