Network administrators need to efficiently manage file servers and file server resources while keeping them protected, yet accessible, to authorized users. The practice of storing files on distributed servers makes the files more accessible to users, reduces bandwidth use, expands capacity, and reduces latency. However, as the number of distributed servers rises, users may have difficulty finding files, and the costs of maintaining the network increase. Additionally, as networks grow to incorporate more users and servers, both of which could be located in one room or distributed all over the world, the complexities administrators face increase manifold. Any efficiency that can be gained without a concordant increase in cost would be advantageous.
In order to capture such efficiencies, systems and methods for distributed file system optimizations using native server functions are described herein. In at least some disclosed embodiments, a method includes a) creating a first stub file on a target file server. The first stub file is created in a target directory, and the first stub file points to source data in a source directory on a source file server. The method further includes b) creating a t-stub file at the location of the source directory. The t-stub file points to the target directory, and the source directory allows access to source data when accessed due to the first stub file. The method further includes c) copying source data into a hidden directory on the target file server, thus creating target data, d) overwriting the first stub file by renaming the target data, e) applying one or more server functions to the target data, and f) deleting source data from the source file server.
In other disclosed embodiments, a computer-readable medium stores a software program that, when executed by a processor, causes the processor to a) create a first stub file on a target file server. The first stub file is created in a target directory, and the first stub file points to source data in a source directory on a source file server. The processor is further caused to b) create a t-stub file at the location of the source directory. The t-stub file points to the target directory, and the source directory allows access to source data when accessed due to the first stub file. The processor is further caused to c) copy source data into a hidden directory on the target file server, thus creating target data, d) overwrite the first stub file by renaming the target data, e) apply one or more server functions to the target data, and f) delete source data from the source file server.
In yet other disclosed embodiments, a system includes a client, a first file server coupled to the client via a network, a second file server coupled to the network, a distributed file system (“DFS”) server coupled to the network, and a file migration engine (“FME”) coupled to the network. The FME is configured to a) create a first stub file on a target file server. The first stub file is created in a target directory, and the first stub file points to source data in a source directory on a source file server. The FME is further configured to b) create a t-stub file at the location of the source directory. The t-stub file points to the target directory, and the source directory allows access to source data when accessed due to the first stub file. The FME is further configured to c) copy source data into a hidden directory on the target file server, thus creating target data, d) overwrite the first stub file by renaming the target data, and e) delete source data from the source file server. The second file server is configured to apply one or more server functions to the target data.
These and other features and advantages will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the accompanying drawings and detailed description, wherein like reference numerals represent like parts:
It should be understood at the outset that although an illustrative implementation appears below, the present disclosure may be implemented using any number of techniques whether currently known or later developed. The present disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, but may be modified within the scope of the appended claims along with their full scope of equivalents.
Certain terms are used throughout the following claims and discussion to refer to particular components. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including but not limited to”. Also, the term “couple” or “couples” is intended to mean an indirect or direct electrical connection, optical connection, etc. Thus, if a first device couples to a second device, that connection may be through a direct connection, or through an indirect connection via other devices and connections. Additionally, the term “system” refers to a collection of two or more hardware components, and may be used to refer to an electronic device or circuit, or a portion of an electronic device or circuit.
A DFS server 106 is also coupled to the network 102. Preferably, the DFS server 106 is a Microsoft DFS server. The DFS server 106 enables location transparency of directories located on the different file servers 120-124 coupled to the network 102. Location transparency enables users using the clients 110, 112 (“users”) to view directories residing under disparate servers 120-124 as a single directory. For example, suppose a large corporation stores client data distributed across server 120 in Building 1, server 122 in Building 2, and server 124 in Building 3. An appropriately configured DFS server 106 allows users to view a directory labeled \\Data\ClientData containing the disparate client data from the three servers 120-124. Here, “Data” is the machine name hosting “ClientData.” The data in the directory \\Data\ClientData are not copies, i.e., when a user uses a client 110, 112 to access a file located in a directory the user perceives as \\Data\ClientData\ABC\, the client 110, 112 actually accesses the file in the directory \\Server122\bldg2\clidat\ABCcorp\. Here, “bldg2” is a share on server 122. Most likely, the user is unaware of the actual location, actual directory, or actual subdirectories that the client 110, 112 is accessing. Preferably, multiple DFS servers 106 are used to direct traffic among the various servers 120-124 and clients 110, 112 to avoid having a bottleneck in the system and a single failure point. Accordingly, a domain controller 126 is coupled to the network 102. The domain controller 126 comprises logic to select from among the various DFS servers for routing purposes. Preferably, the domain controller is configured via Microsoft Cluster Services.
Considering a more detailed example, suppose employee data regarding employees A, B, and C are stored on servers 120, 122, and 124 respectively. The employee information regarding A, B, and C are stored in the directories \\Server120\employee\personA\, \\Server122\emply\bldg2\employeeB\, and \\Server124\C\, respectively. Thornton is a human resources manager using a client 110. Appropriately configured, the DFS server 106 shows Thornton the directory \\HR\employees\ containing subdirectories A, B, and C, which contain the employee information from the disparate servers 120-124 respectively. When Thornton uses the client 110 to request the file “Bcontracts.txt,” located at the path he perceives to be \\HR\employees\B\Bcontracts.txt, the client 110 actually sends a request to the DFS server 106. In response, the DFS server 106 returns the path \\Server122\emply\bldg2\employeeB\ to the client 110. The returned path is where the file Bcontracts.txt is actually located, and is termed a “referral.” Next, the client 110 “caches,” or stores, the referral in memory. Armed with the referral, the client 110 sends a request to the server 122 for the file. Thornton is unaware of the referral. Preferably, the client 110 sends subsequent requests for Bcontracts.txt directly to server 122, without first sending a request to the DFS server 106, until the cached referral expires or is invalidated. If the client 110 is rebooted, the cached referral will be invalidated.
A file migration engine (“FME”) 104 is also coupled to the network 102. The FME 104 receives traffic, including requests, between the clients 110, 112 and the servers 120-124. Preferably, the DFS server 106 is configured to send requests to the FME 104. After receiving a request, the FME 104 modifies the request. Specifically, the FME 104 modifies the request's routing information in order to forward the request to a file server 120-124. Also, the FME 104 moves, or migrates, data among the servers 120-124, and the FME 104 caches each migration. Considering these capabilities in conjunction with each other, the FME 104 performs any or all of: migrating data from one file server (a “source” server) to another file server (a “target” server); caching the new location of the data; and forwarding a request for the data, destined for the source file server, to the target file server by modifying the request. Subsequently, in at least some embodiments, the FME 104 continues to receive traffic between the client and the target file server.
In other embodiments, the FME 104 removes itself as an intermediary, thereby ceasing to receive such traffic between the client and the target file server. Such functionality is useful when the FME 104 is introduced to the network 102 specifically for the purpose of migrating data, after which the FME 104 is removed from the network 102.
Although only three file servers 120-124, one DFS server 106, one FME 104, one domain controller 126, and two clients 110, 112 are shown in
Returning to the previous example, suppose server 124 in Building 3 has received a storage upgrade, such that all client data can now be stored exclusively on server 124. Rose is a computer administrator. Because the client data is sensitive, Rose prefers all the client data to be on one server, server 124, for increased security. Consequently, Rose implements a “data life-cycle policy.” A data life-cycle policy is a set of rules that the FME 104 uses to determine the proper location of data among the file servers 120-124. In the present example, Rose configures the data life-cycle policy to include a rule commanding that all client data belongs on server 124. As such, the FME 104 periodically scans the servers 120-124, and the FME 104 migrates client data based on the rule. The migration preferably occurs without users experiencing interruption of service or needing to adjust their behavior in response to the migration.
In an effort to further increase security, Rose outfits file server 124 with encryption capabilities, thus making the file server 124 an “encryption server.” An encryption server 124 obscures data stored on the encryption server by using an encryption algorithm to manipulate the data into an unrecognizable form according to a unique encryption key. A decryption algorithm restores the data by reversing the manipulation using the same encryption key or a different unique decryption key. The more complex the encryption algorithm, the more difficult it becomes to decrypt the data without access to the correct key. By using the FME 104 to migrate client data to the encryption server 124, Rose is relieved of the burden of outfitting every server containing client data with encryption capability, and Rose is not required to interrupt service to the users during the migration. Any requests to the migrated client data are routed to server 124 by the FME 104 as described above. As such, encryption can be applied to any data on the servers 120-124, even though servers 120 and 122 do not have encryption capabilities, as long as encryption server 124 can store the data. If, for example, the encryption server cannot store all the data to be encrypted, Rose can couple multiple encryption servers to the network 102 until the need is met. When encryption is provided in such a fashion, encryption is termed a “server function.”
Considering another server function, file server 120 has “de-duplication” functionality, making the server a “de-duplication server.” De-duplication is sometimes referred to as “single instance store” (SIS) when applied at the file level; however, this document uses the term de-duplication as applying to any granularity of data. A de-duplication server periodically searches its storage for duplicated information, and preferably deletes all but one instance of the information to increase storage capacity. The deletion of all but one instance of identical data is termed “de-duplicating” the data. Any requests to the deleted information are routed to the one instance of the information remaining. For example, suppose the servers 120, 122, and 124 contain duplicate copies of the same file, and the file has a size of 100 megabytes (MB). The servers 120-124 are collectively using 300 MB to store the same 100 MB file. The files on server 122 and 124 preferably are migrated to de-duplication server 120, resulting in three identical files on de-duplication server 120. The de-duplication server 120 is programmed to de-duplicate the contents of its storage, and thus, deletes two out of the three files. With only one file remaining, the servers 120-124 collectively have 200 MB more space to devote to other files. De-duplication applies not only to whole files, but to portions of files as well. Indeed, the source data may be a portion of a file, and consequently, the server function is applied to the portion. The data life-cycle policy rules used to determine data to be migrated to the de-duplication server 120 need not include a rule requiring that only identical data be migrated. Rather, data that is merely similar can be migrated, leaving the de-duplication server 120 to determine if the data should be de-duplicated or not.
Considering yet another server function, server 122 comprises a “compression server.” A compression server increases storage capacity by reducing the size of a file in the compression server's storage. A file size is reduced by eliminating redundant data within the file. For example, a 300 KB file of text might be compressed to 184 KB by removing extra spaces or replacing long character strings with short representations. Other types of files can be compressed (e.g., picture and sound files) if such files have redundant information. Files on servers 120 and 124 to be compressed are migrated to compression server 122. The compression server 122 is programmed to compress files in its storage, thus allowing for more files to be stored on the collective servers 120-124 in the same amount of space. The FME 104 forwards any requests for the migrated information to compression server 122 as described above.
The uninterrupted access to data across multiple servers 120-124 is used to apply server functions to the entire distributed file system without requiring that each server have the ability to perform the server function. In at least some preferred embodiments, a server 120-124 applies server functions to only portions of the server's storage, reserving other portions of the server's storage for other server functions or storage that is not associated with any server function. In such a scenario, the target file server may be the same as the source file server. The server functions described above are used as examples only; all server functions can be used without departing from the scope of various preferred embodiments.
Consider the FME 104 migrating the file Bcontracts.txt to compression server 120. In order to provide access to the file without interruption, the FME 104 creates a “stub file,” or simply a “stub,” as part of the migration process. A stub is a metadata file preferably containing target information and source information. Target information includes information regarding a target file server, target share (a discrete shared portion of memory on a target file server), and target path in order to describe the location of data moved to the target file server. Target information also includes target type information to describe the nature of the data (e.g., whether the target data is a file or directory). Preferably, the stub also includes a modified timestamp. Source information includes similar information that references the source location of the data, e.g., source file server, source share, etc. A stub need not reflect a value for every one of the categories listed above; rather, a stub can be configured to omit some of the above categories. Because a stub is a file, the stub itself has metadata. Hence, target and source information may be implicit in the stub's metadata and location. Indeed, source information may usually be determined from the location and metadata of the stub file because stubs are left in the location of source data when a FME 104 moves the source data from a source file server to a target file server. As such, target information is preferably read from a stub's contents, while source information is read from a stub's metadata. A stub preferably comprises an XML file.
The terms “source” file server and “target” file servers are merely descriptors in identifying data flow. A source file server is not perpetually a source file server, and indeed can be simultaneously a source file server and a target file server if more than one operation is being performed or if the data is being migrated from one portion of a file server to another portion of the same file server. Additionally, in the scenario where a stub points to second stub, and the second stub points to a file, the file server on which the second stub resides is simultaneously a source file server and a target file server.
Considering a more detailed example, and referring to
If a stub is found 208, the FME 104 reads 210 the stub, including reading target information and source information alone or in combination. In this example, the target information reveals that Bcontracts.txt is stored at a second location, on compression server 120 (“second file server”), rather than server 122. Preferably, each subdirectory of the second location is probed 206 to ensure that the request is not being sent to another stub, e.g. as a result of Bcontracts.txt or one of its parent directories being moved to a third location and replaced with another stub file. If another stub file is found 208, the target information is read 210 and stored 212, the cache is checked 205 for information regarding the location of the target information, and the new third location is probed 206 if no information is available. This process is repeated until no more stubs are found 208.
The FME 104 caches 212 at least some of the target information, e.g. the location of the requested file, and source information, e.g. the location of the stub file, such that a subsequent request for Bcontracts.txt from a client 110, 112 will not result in a probe of server 122, but will be modified and forwarded to compression server 120 without probing server 122. Also, target type information is preferably cached as well, e.g., whether the data to which the stub points is a file or directory. Next, the FME 104 modifies 213 the open request it received from client 110 to based on the target information. Preferably, the routing information of the request is modified relative to the stub location. The FME 104 then forwards 213 the modified request, here, to compression server 120.
If a stub is not found 208, preferably the FME 104 forwards the request to server 122. Also, the result of the probe, e.g. information signifying the absence of a stub, is preferably cached by the FME 104 such that a subsequent request for Bcontracts.txt will not lead the FME 104 to perform another probe.
In at least some embodiments, the cached information is written to a file for display to a computer administrator. The file is preferably a log file, which is displayed to a computer administrator via a client 110, 112. In various embodiments, the stub itself is displayed to the computer administrator via a client 110, 112, and the computer administrator edits the stub via the client 110, 112. The cached information will be effective until it is invalidated or deleted, e.g., to free memory for new cached information about another file, directory, or stub.
Referring to
Preferably, the FME 104 also provides information about other files pointed to by other stub files residing in the first directory, the other stub files also represented by modified time stamps. Such files may reside on second and third directories, and on different file servers 120-124. Note that the results provided are not a merging of the results of separate list requests, rather information about files in directories, other than the directory that is subject to a list request, is provided along with the response to the request. Such information is provided in place of the information about the stub file that would otherwise have been returned. Such information includes file size, access time, modification time, etc. However, location information about the stub file is still provided.
The FME 104 provides the information about the files to the client 110, and the client 110 displays the information to Thornton. As such, Thornton does not view the stub pointing to Bcontracts.txt, information about the stub, or any other stubs in response to the list request; instead, Thornton views information about files or directories to which the stubs point in order to preserve the illusion that the files on disparate servers all reside in one directory. If the FME 104 does not find 308 a unique symbol, the FME 104 only provides 312 the contents of the first directory in response to the request.
In order to prevent a “memory leak” on a file server 120-124, a stub should be deleted when the file to which the stub points is deleted. A memory leak refers to allocated memory never being unallocated. A memory leak is particularly harmful when the allocation occurs repeatedly, e.g., when the file allocation occurs as part of a loop of computer code. In such a scenario, the entire memory of the file server may be allocated until the file server becomes unstable. The deletion of a file or directory, but not the corresponding stub, causes a memory leak because the memory allocated to the stub is never unallocated. Furthermore, because the stub still exists, the client 110, 112 expects the deleted data to exist, and will only detect that the data does not exist when trying to access the data through the stub. If a file or directory has no corresponding stub, the FME 104 is still preferably notified when the file or directory is deleted so that the FME may be kept up-to-date by, e.g., invalidating any cached information regarding the file or directory.
Referring to
To accomplish the migration with these restrictions, the FME 104 creates 604 a first stub (one first stub for each file A, the stub illustrated in
Next, the FME 104 copies 608 the source data, file A, onto the target file server 124. In doing so, the FME 104 preferably accesses another type of stub with unique properties, the “s-stub.” The s-stub is a stub that specifies a hidden location on the target file server 124 at which the FME 104 copies the source data. Preferably, the hidden location is determined without human input. The data that is copied is termed “target data” in order to distinguish the file from the source data, which still exists at this point on the source file server as illustrated in
Preferably, if the FME 104 intercepts a request to access the file A after the copy onto the target file server, but before performing the renaming/overwrite, the FME 104 will perform the renaming/overwrite in sufficient time to honor the request. If the directories contained more source data, at this point the above steps would be repeated 614 for the further files and subdirectories. However, a new t-stub would not be created for each iteration. In the case of a subdirectory in the source directory, the steps would be repeated as if the subdirectory was the source directory; however, instead of the rename 610 overwriting the first stub, the first stub is deleted before the renaming occurs. A new t-stub will not be created for the subdirectory either.
After the migration of the directory is complete, the FME 104 replaces the t-stub and the source directory with a stub pointing to the target directory as illustrated in
Finally, the identical files A are ready for de-duplication. The files both appear on de-duplication server 124, and stubs that point to the files appear in the files' original locations on the source file servers 120, 122. At this point, the FME 104 forwards requests for the files A to the de-duplication server 124 instead of the source file servers 120, 122 as described above. Note that the de-duplication server 124 is merely a file server with de-duplication functionality. Indeed, the server 124 may have other server functions, alone or in combination. The de-duplication server 124 is free to perform its de-duplication algorithm without interrupting Thornton's access to file A, and does so as illustrated in
Referring to
Returning to
Preferably, the FME 104 stores state information, lock information, and log information regarding the source data. State information comprises properties of the source data, but not its contents. Lock information comprises what types of locks have been granted for any of the source data, how many locks have been granted, and to which users the locks have been granted. Log information comprises changes occurring to the source data, including the local copy. The changes comprise the intercepted requests and updates.
After the copy 608 and overwrite 610, the FME 104 enables 714 performance of operations and performs 716 any queued operations on the target data. Preferably, the FME 104 reissues rescinded operations and applies the stored state information, lock information, and log information to the source data. Applying stored state information comprises adjusting any file properties that have changed during the migration. Applying lock information comprises resetting locks to their settings before the file migration. Applying log information comprises honoring the intercepted access requests, and applying the intercepted updates to the network copy. Preferably, the FME 104 also sends an open request to the target data. Next, as described above, the process is repeated for source data yet to be migrated 614. Finally, the FME 104 deletes 818 the source data. If the response time to a request or update exceeds any desired threshold, and the corresponding file has not been copied, in various embodiments the FME 104 enables operations and performs the queued operations in order to prevent a timeout error. Once the queued operations have been performed, the FME 104 will attempt the disable and queue operations again.
Referring to
Referring to
Referring to
Referring to
Referring to
The methods described above enable the FME 104 to use target file servers to apply 1009 server functions, such as compression, encryption, and de-duplication, to target data throughout a distributed file system without disrupting service to the users by using a FME 104 to migrate the information, and using stubs to direct client 110, 112 requests and updates. In various embodiments, a computer administrator managing such a distributed file system implements policies for system optimization according to the specific needs of the users in conjunction with the specific capabilities of the distributed file system. For example, a computer administrator may implement the following policies. A file not accessed within the last 30 days will be moved to a compression server to increase storage space (demotion). Upon subsequent access to this file, the file will be migrated to a “current working” server designed for increased stability (promotion). After thirty days of inactivity, the file will once again be migrated to the compression server (demotion). Finally, after one year of inactivity the file will be migrated to a deep storage server designed for long-term file storage (transmotion). These migrations will not affect how users access the file, nor will the migrations increase the time users spend searching for the file. However, the migrations will result in saving space on servers and using the strengths of certain servers effectively. Other policies combined with other server functions will result in other efficiencies.
The system described above may be implemented on any general-purpose computer with sufficient processing power, memory resources, and throughput capability to handle the necessary workload placed upon the computer.
In various embodiments, the storage 1388 comprises a computer readable medium such as volatile memory (e.g., RAM), non-volatile storage (e.g., Flash memory, hard disk drive, CD ROM, etc.), or combinations thereof. The storage 1388 comprises software 1384 that is executed by the processor 1382. One or more of the actions described herein are performed by the processor 1382 during execution of the software 1384.
While several embodiments have been provided in the present disclosure, it should be understood that the disclosed systems and methods may be embodied in many other specific forms without departing from the spirit or scope of the present disclosure. The present examples are to be considered as illustrative and not restrictive, and the intention is not to be limited to the details given herein. For example, the redirected requests need not enter the memory system of the host processor before modification if a separate network element performs the modification on-the-fly. Also, the various elements or components may be combined or integrated in another system or certain features may be omitted, or not implemented.
Also, techniques, systems, subsystems, and methods described and illustrated in the various embodiments as discrete or separate may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present disclosure. Other items shown or discussed as directly coupled or communicating with each other may be coupled through some interface or device, such that the items may no longer be considered directly coupled to each other but may still be indirectly coupled and in communication, whether electrically, mechanically, or otherwise with one another. Other examples of changes, substitutions, and alterations are ascertainable by one skilled in the art and could be made without departing from the spirit and scope disclosed herein.