Summary of the invention
The technical problem that the present invention solves is: a kind of data access system, disk array storage system and corresponding data access method are provided, abandon the storage system of NFS service, client and server does not need to install the NFS program, alleviate the load of client and server, improve the access speed of storage system.Simultaneously, reduce the degree of coupling of disk array storage system and server, the dependence of disjoint server and storage system, raising disk array storage system subordinate's flexibility.
For solving the problems of the technologies described above, data access system provided by the invention comprises:
Client is used to report self client magnetic disk form, and the data in the storage system are carried out access and visit; Comprise at least two clients in the described data access system with different clients magnetic disk form.
Storage system is used for according to described client magnetic disk form, and self system disk layout format is mapped as the magnetic disk form that described client adapts to; And to client present mapping, with the storage system of described client magnetic disk format adaptation.
Preferably, described data access system also comprises:
Server is used to receive the client magnetic disk form that described client reports, and notifies described storage system with described client magnetic disk form; The route of described client to described storage system is provided, supports described client that the data in the described storage system are carried out access and visit.
Preferably, described storage system comprises:
The mapping adaptation module is used to store the system disk layout format of described storage system self and the mapping relations between the various client magnetic disk form; According to client magnetic disk form, call corresponding mapping relations, the system disk layout format of described storage system is mapped as the magnetic disk form of client adaptation;
Disk array is used to store data, and back-level server or client are carried out access and visit to described data;
Access modules is used for the operation according to client, and the data in the disk array are carried out corresponding visit and access.
Disk array storage system provided by the invention comprises:
Mapping memory module is used to store the system disk layout format of described disk array storage system self and the mapping relations between the various client magnetic disk form;
The layout adaptation module is used for according to client magnetic disk form, calls mapping relations corresponding in the described mapping memory module, the system disk layout format of described disk array storage system is mapped as the magnetic disk form of client adaptation; And to client present mapping, with the storage system of the magnetic disk format adaptation of described client.
Preferably, described system also comprises: disk array and access modules;
Described disk array is used to store data;
Described access modules is used for according to client the operation of described disk array storage system to its storage system that presents, and the data in the disk array are carried out corresponding visit and access.
Corresponding, data access method provided by the invention comprises:
Disk array storage system receives the client magnetic disk form of client;
Disk array storage system is according to described client magnetic disk form, and self system disk layout format is mapped as the magnetic disk form that described client adapts to;
Disk array storage system to described client present mapping, with the storage system of the magnetic disk format adaptation of this client.
Preferably, described disk array storage system receives before the client magnetic disk form of client, also comprise: in described disk array storage system, preset system disk layout format of this disk array storage system self and the mapping relations between the various client magnetic disk form
Preferably, described disk array storage system receives before the client magnetic disk form of client, also comprises:
The user end to server registration reports its client magnetic disk form;
Server receives the registration and the client magnetic disk form of described client;
The logical client magnetic disk form notice disk array storage system of server with described client.
Preferably, described disk array storage system is according to described client magnetic disk form, and self system disk layout format is mapped as the magnetic disk form that described client adapts to, and comprising:
Disk array storage system obtains the mapping relations of this client magnetic disk form and the system disk layout format of self according to described client magnetic disk form;
According to described mapping relations, described system disk layout format is mapped as the magnetic disk form that described client adapts to.
Preferably, after the storage system of described disk array storage system after client presents mapping, also comprise:
That client presents according to disk array storage system, with the storage system of its magnetic disk format adaptation, the data in the described disk array storage system are carried out access and visit;
Disk array storage system is accepted access and the visit of described client to the data in the disk array storage system.
Data access system provided by the invention, disk array storage system and corresponding data access method, abandoned the storage system of NFS service, client and server does not need the NFS program is installed, and alleviates the load of client and server, improves the access speed of storage system.Simultaneously, reduce the degree of coupling of disk array storage system and server, the dependence of disjoint server and storage system, raising disk array storage system subordinate's flexibility.
Embodiment
The invention provides a kind of data access system, disk array storage system and corresponding data access method, abandon the storage system of NFS service, client and server does not need the NFS program is installed, and alleviates the load of client and server, improves the access speed of storage system.Simultaneously, reduce the degree of coupling of disk array storage system and server, the dependence of disjoint server and storage system, raising disk array storage system subordinate's flexibility.
Difference with the prior art is necessary the main framework and the workflow of the existing remote storage system of elaboration earlier for a better understanding of the present invention.
Referring to Fig. 1, be available data memory system architecture figure based on client and server mode, as shown in the figure:
12,14 and 16) and diskarray storage system 30 this system comprisesserver 20, a plurality of client with different disk layout format (three clients shown in the figure:.Client communicates by remote access and server 20.Diskarray storage system 30 is made of a plurality of disks, twodisks 32 shown in the figure and 34.For thedifferent client 12,14 and 16 of magnetic disk form,server 20 will provide unified access service for it.Idiographic flow is as follows:
At first, NFS22 changes into unified NFS data format by client NFS service routine with the data in magnetic disk of client, is sent to server; NFS by server is converted into the data format thatserver 20 is unified in disk array storage system again, issues access instruction by 20 pairs of diskarray storage systems 30 of server then, and the data in the diskarray storage system 30 are carried out access.
In above-mentioned flow process, NFS22 has shielded the data difference between the client of different disk layout format, and the magnetic disk that meets diskarray storage system 30 form is provided.In this case, client and server must be installed NFS, could realize that client and data in server are mutual.Client and server, and the data difference of disk array storage system eliminate by NFS fully.And for server, the data format that it is seen is just through transforming a kind of data format that the back adapts to the bottom storage system, finish by NFS fully for the conversion process that difference between the concrete data format is eliminated, by the NFS decision, server does not participate in the right of this conversion and optimization to the good and bad degree that transforms fully to the disk array storage system one-level fully.
Based on the problems referred to above, we need set up a kind of storage system of the NFS of abandoning service, client does not need to install the NFS program, server does not need to provide NFS service for client yet simultaneously, difference between the magnetic disk form is eliminated in disk array storage system, realizes the adaptation function of disk array storage system to client, server access request.
Referring to Fig. 2, be data access system example structure schematic diagram provided by the invention, 102,104,106) andstorage system 3 as shown in the figure, this data access system comprises: plurality of client end (3 clients shown in Fig. 2:.
The client magnetic disk form that client is used to report self carries out access and visit to the data in the storage system 3.In the present invention, each client can have different magnetic disk forms.
Storage system 3 is used for the client magnetic disk form according to client, and self system disk layout format is mapped as the magnetic disk form that client adapts to; And to client present mapping, with the adaptation storage system of the magnetic disk form of client.In the present invention, described storage system is a disk array storage system, and this system comprises at least one disk array (2 disk arrays shown in Fig. 2: 302,304).
Preferably, the data access system that present embodiment provides also comprisesserver 2, andserver 2 is used to receive the client magnetic disk form that client reports, with client magnetic disk form notice storage system 3.Simultaneously,server 2 provides the route of client tostorage system 3, supports client that the data in thestorage system 3 are carried out access and visit.
In embodiments of the present invention,server 2 and client do not have any processing to the magnetic disk form, and the format differences between client and thestorage system 3 is eliminated instorage system 3, more specifically:
Storage system 3 comprises:mapping adaptation module 300 and disk array (2 disk arrays shown in Fig. 2: 302,304).
Disk array is used to store data, and back-level server or client are carried out access and visit to described data.
Mapping stores the system disk layout format ofstorage system 3 self and the mapping relations between the various client magnetic disk form in the adaptation module 300.Mapping adaptation module 300 is called corresponding mapping relations according to client magnetic disk form, and the system disk layout format ofstorage system 3 is mapped as the magnetic disk form of client adaptation, thereby eliminates the format differences between client and the storage system 3.For client or server, its storage system of seeing is the storage system that presents after the mapping relations conversion of magnetic disk form according to correspondence ofmapping adaptation module 300 with thestorage system 3 of reality, and the magnetic disk form of the magnetic disk form and client of this storage system self is consistent.
More specifically, for example, self the magnetic disk form and the discernible magnetic disk form ofclient 102 all are FAT32, the magnetic disk form ofclient 104 is NTFS, the magnetic disk form ofclient 106 is EXT3, in the time ofclient 102access servers 2, atfirst client 102 is at the magnetic disk form ofserver 2 registrationactive clients 102, afterserver 2 learns thatcurrent request client 102 magnetic disk form is FAT32,server 2 sends to diskarray storage system 3 with the magnetic disk format information of client, themapping adaptation module 300 of diskarray storage system 3 is called the magnetic disk form of current diskarray storage system 3 and the mapping relations between the FAT32 file system magnetic disk form, the system disk layout format of diskarray storage system 3 is mapped as the FAT32 magnetic disk form of client adaptation.At this moment, so forclient 102 andserver 2, the file system magnetic disk form of the disk array storage system of seeing 3 is exactly FAT32, and the exchanges data betweenclient 102 andserver 2, the diskarray storage system 3 all is that file system magnetic disk form according to FAT32 carries out so.
The data access system that the embodiment of the invention provides has been abandoned the NFS system, and client and server does not need to install the NFS program, the load that alleviates client and server on the one hand, the access speed of raising disk array storage system.On the other hand, reduce the degree of coupling of storage system and server, the dependence of disjoint server and storage system, raising disk array storage system subordinate's flexibility.
Referring to Fig. 3, be disk array storage system example structure schematic diagram provided by the invention, as shown in the figure, this diskarray storage system 3 comprises:mapping memory module 306 andlayout adaptation module 307.
Mapping memory module 306 is used for the system disk layout format of memory diskarray storage system 3 self and the mapping relations between the various client magnetic disk form.For example, the file system magnetic disk form that diskarray storage system 3 adopts is the EX form, can store the magnetic disk form that EX form and client file system may have so in themapping memory module 306, as: the mapping relations between FAT32 or NTFS or the EXT3.
Layout adaptation module 307 is used for according to client magnetic disk form, calls mapping relations corresponding in themapping memory module 306, the system disk layout format of diskarray storage system 3 is mapped as the magnetic disk form of client adaptation; And to client present mapping, with the storage system of the magnetic disk format adaptation of described client.
More specifically, for example, the magnetic disk form of the client of the diskarray storage system 3 of request visit now is NTFS, in the time of client-access diskarray storage system 3, at first need to notify the magnetic disk form (also can be to pass through server forwards) of diskarray storage system 3 these clients, thelayout adaptation module 307 of diskarray storage system 3 is according to the magnetic disk form of this client, calls the mapping relations between the magnetic disk form NTFS of the magnetic disk form EX of current diskarray storage system 3 and client in mapping memory module 306.Layout adaptation module 307 is according to above-mentioned mapping relations, the magnetic disk form EX of diskarray storage system 3 is mapped as the NTFS magnetic disk form that client adapts to, and presents this mapping, the storage system that client adapts to client then.At this moment, for client and server, the file system magnetic disk form of the disk array storage system of seeing 3 is exactly NTFS, and the exchanges data between client and server, the diskarray storage system 3 is all carried out according to NTFS magnetic disk form.
302,304) andaccess modules 308 further, the disk array storage system that provides of present embodiment also comprises: at least one disk array (2 disk arrays shown in Fig. 3:;
Disk array is used to store data, and client can conduct interviews to the data in the disk array or access by server.
Access modules 308 is used for according to client the operation of diskarray storage system 3 to its storage system that presents, and the data in the disk array are carried out corresponding visit and access.More specifically,layout adaptation module 307 is after client presents the storage system corresponding with its disk file form, client can be in the access and the visit of the enterprising line data of its visible storage system, concrete access request can be that client is directly issued diskarray storage system 3, also can be to pass through server forwards,access modules 308 is according to this request, in disk array, carry out corresponding data access and access, and the result fed back to client bylayout adaptation module 307, make client feel that above-mentioned data access and accessing operation similarly are carry out in this locality the same.
Preferably, in the present embodiment, afteraccess modules 308 receives the access request of client, equally according to mapping relations corresponding in themapping memory module 306, this access request is resolved to the form that diskarray storage system 3 adapts to, in disk array, carry out corresponding data access and access then, and result's feedback.
Implement the disk array storage system that the embodiment of the invention provides, guaranteeing that client realizes on the basis of file remote storage, abandoned traditional NFS system, make client and server no longer need to install the NFS program, the load that alleviates client and server on the one hand, the access speed of raising storage system.On the other hand, reduce the degree of coupling of storage system and server, the dependence of disjoint server and storage system, raising disk array storage system subordinate's flexibility.Simultaneously, the mapping relations of different disk layout format are preset in the disk array storage system, are convenient to optimization and upgrading system.
Referring to Fig. 4, be data access method embodiment schematic flow sheet provided by the invention, the method flow that present embodiment provides is applicable to system as shown in Figure 2 or comprises the system of disk array storage system as shown in Figure 3.Before implementing this method flow process, at first need in disk array storage system, preset system disk layout format of this disk array storage system self and the mapping relations between the various client magnetic disk form.For example, the file system magnetic disk form that diskarray storage system 3 adopts is the NTFS form, needs to preset the magnetic disk form that NTFS form and client file system may have so, as: the mapping relations between FAT32 or EXT3 and the NTFS.The present embodiment flow process is as shown in Figure 4:
Instep 401, the user end to server registration sends access request, reports its client magnetic disk form.
Instep 402, server receives the registration of described client, obtains this client magnetic disk form.
Instep 403, server is with the magnetic disk form notice disk array storage system of client.
Instep 404, disk array storage system receives the client magnetic disk form of client.
Instep 405, disk array storage system is according to described client magnetic disk form, in the system disk layout format and the mapping relations between the various client magnetic disk form of the disk array storage system that presets self, search the system disk layout format of self and the mapping relations of this client magnetic disk form.
Instep 406, disk array storage system is mapped as the magnetic disk form that described client adapts to the system disk layout format of self.More specifically, for example, the magnetic disk form of client is FAT32, the magnetic disk form of disk array storage system is NTFS, when this client-access disk array storage system, disk array storage system calls magnetic disk form NTFS of self and the mapping relations between the magnetic disk form FAT32 of client, and the magnetic disk form of disk array storage system is mapped as the FAT32 magnetic disk form that client adapts to.
Instep 407, disk array storage system to client present mapping, with the storage system of the magnetic disk format adaptation of this client.More specifically, this moment is for client, the file system magnetic disk form of the disk array storage system that it is seen is consistent with the magnetic disk form of self, and in this example, the magnetic disk form of the storage system that client is seen is exactly the FAT32 form.
Instep 408, that client presents according to disk array storage system, with the storage system of its magnetic disk format adaptation, the data in the described disk array storage system are carried out access and visit.That is the exchanges data between that, send from the client so and disk array storage system all is that the magnetic disk form according to client self carries out.
In step 409, disk array storage system is accepted access and the visit of described client to the data in the disk array storage system.Preferably, disk array storage system is converted into the magnetic disk form that self adapts to the access request that client sends once more according to aforementioned mapping relations, carries out corresponding data access and accessing operation then, and to the client feedback operating result.
Implement the data access method that the embodiment of the invention provides, guaranteeing that client realizes on the basis of file remote storage, abandoned way traditional, that between client and server, utilize NFS elimination format differences, handle but in disk array storage system, carry out unified mapping, make client and server no longer need to install the NFS program.The data access method that the embodiment of the invention provides, the load that alleviates client and server on the one hand, the access speed of raising storage system.Reduce the degree of coupling of storage system and server on the other hand, the dependence of disjoint server and storage system, raising disk array storage system subordinate's flexibility.Simultaneously, the mapping relations of different disk layout format are preset in the disk array storage system, are convenient to optimization and upgrading system.
Above disclosed is a kind of preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, all or part of can the embodying that technical scheme of the present invention contributes to background technology with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.