WO2004097572A2 - Transparent file migration using namespace replication - Google Patents

Transparent file migration using namespace replication Download PDF

Info

Publication number
WO2004097572A2
WO2004097572A2 PCT/US2004/012847 US2004012847W WO2004097572A2 WO 2004097572 A2 WO2004097572 A2 WO 2004097572A2 US 2004012847 W US2004012847 W US 2004012847W WO 2004097572 A2 WO2004097572 A2 WO 2004097572A2
Authority
WO
WIPO (PCT)
Prior art keywords
file
nas
location
file server
switch
Prior art date
Application number
PCT/US2004/012847
Other languages
French (fr)
Other versions
WO2004097572A3 (en
Inventor
Thomas K. Wong
Panagiotis Tsirigotis
Anand Iyengar
Rajeev Chawla
Original Assignee
Neopath Networks, Inc.
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
Priority claimed from US10/831,376 external-priority patent/US7346664B2/en
Priority claimed from US10/831,701 external-priority patent/US7587422B2/en
Application filed by Neopath Networks, Inc. filed Critical Neopath Networks, Inc.
Priority to JP2006513342A priority Critical patent/JP4588024B2/en
Priority to EP04750678A priority patent/EP1618500A4/en
Publication of WO2004097572A2 publication Critical patent/WO2004097572A2/en
Publication of WO2004097572A3 publication Critical patent/WO2004097572A3/en

Links

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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of 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/184Distributed file systems implemented as replicated file system
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]

Definitions

  • Namespace Replication by Thomas K. Wong et al.; and is related to U.S. Patent Application No. [attorney docket #23313-07962], filed on [date even herewith], entitled “Transparent File Replication Using Namespace Replication,” by Thomas K. Wong et al., each of which applications are herein incorporated by reference in their entirety.
  • This invention relates generally to storage networks and, more specifically, to a network device that uses namespace replication to migrate files between file servers in a decentralized storage network.
  • NAS Network Attached Storage
  • NAS file servers connected directly to the network provide an inexpensive and easily configurable solution for a storage network.
  • These NAS file servers are self-sufficient because they contain file systems that allow interoperability with clients running any operating system and communication using open protocols.
  • NFS Network File System
  • CLFS Common Internet File System
  • NAS file servers provide true universal file access.
  • SAN Storage Area Network
  • a SAN file system is part of the operating system or an application running on the client.
  • heterogeneous client operating systems may require additional copies of each file to be stored on the storage network to ensure compatibility on the SAN file server.
  • communication between file servers on a SAN use proprietary protocols and thus are typically provided by a common vendor.
  • NAS file servers are preferred when price and ease of use are major considerations.
  • the benefits of NAS storage networks over SAN storage networks also have drawbacks.
  • each client must maintain communication channels between each of the NFS file servers separately.
  • NAS file servers are either added or removed from the storage network, each client must mount or unmount directories for the associated storage resources as appropriate. This is particularly inefficient when there are changes in hardware, but not in the particular files available on the network, such as when a failing NAS file server is swapped out for an identically configured back-up NAS file server.
  • a related drawback is that a client must be reconfigured each time a file is relocated within the storage network, such as during file migration or file replication.
  • the client generates a NAS file handle that identifies a physical location of the directory or file object on the file server.
  • the client sends an object access request directly to the NAS file server.
  • subsequent requests for access to the file require a new look-up to locate the file and generate a new NAS file handle.
  • NAS file servers are inaccessible during large data transfer operations such as file migrations and replications. Such data transfers typically occur during non-business hours to reduce consequential downtime. However, ever-larger storage capacities increase the amount of time necessary for data transfers. Additionally, many enterprises and applications have a need for data that is always available.
  • the present invention meets these needs by providing file migrations in a decentralized storage network that are transparent to a client.
  • a NAS switch in the data path of a client and NAS file servers, reliably coordinates file migration of a source file server to a destination file server using namespace replication to track new file locations. Additionally, the NAS switch maintains data availability during time-consuming data transfers.
  • An embodiment of a system configured according to the present invention comprises the NAS switch in communication with the client on a front-end of the storage network, and both a source file server and a destination file server on a back-end.
  • the NAS switch associates NAS file handles (e.g., CTFS file handles or NFS file handles) received from the source and destination file servers with switch file handles that are independent of a location.
  • the NAS switch then exports switch file handles to the client.
  • the NAS switch substitutes switch file handles with appropriate NAS file handles for submission to the appropriate NAS file server.
  • the NAS switch further comprises a migration module to coordinate the migration of source files at locations on the source file server to destination files at locations on the destination file server.
  • the migration module separately performs namespace replication and data replication. Namespace replication copies the namespace of the directory hierarchy on the source file server to the destination file server. Namespace replication can also include the use of stored file handles as pointers from the source file server to files migrated to the destination file server, or as pointers from the destination file server to files yet to be migrated from the source file server.
  • the migration module migrates the data and swaps stored file handles
  • the migration module updates a file migration table upon successful migration of an object. Accordingly, the migration module enters the location of the object on the source file server and the location of the object on the destination file server.
  • the NAS switch searches the file migration table according to the switch file handle. If a there is a match, the NAS switch sends the object access request to the location on the destination file server. Otherwise, the NAS switch sends the object access request to the location on the source file server.
  • the migration module provides migration services to decentralized file servers and file servers that do not otherwise natively support migration. [0013] In still another embodiment, during migration, the migration module duplicates namespace access requests to both the namespace on the source file server and the replicated namespace on the destination file server.
  • FIG. 1 is a high-level block diagram illustrating a storage network system according to one embodiment of the present invention.
  • FIG. 2 is a block diagram illustrating a NAS switch according to one embodiment of the present invention.
  • FIG. 3 is a high-level flow chart illustrating a method of providing transparent file migration in a NAS storage network according to one embodiment of the present invention..
  • FIG. 4 is a flow chart illustration a method of associating original NAS file handles with switch file handles according to one embodiment of the present invention.
  • FIG. 5 is a flow chart illustrating a method of performing file migration using namespace replication according to one embodiment of the present invention.
  • FIG. 6 is a flow chart illustrating a method of replicating a directory hierarchy of a source file server according to one embodiment of the present invention.
  • FIG. 7 is a flow chart illustrating a method of committing namespace replication according to one embodiment of the present invention.
  • FIG. 8 is a flow chart illustrating a method of copying data according to one embodiment of the present invention.
  • FIG. 9 is a flow chart illustrating a method of committing data migration according to one embodiment of the present invention.
  • FIG. 10 is a flow chart illustrating a method of redirecting NAS requests concerning migrated objects according to one embodiment of the present invention.
  • the present invention provides file migrations in a storage network that are transparent to the clients.
  • a NAS (Network Attached Storage) switch in the data path of a client and NAS file servers on the storage network uses namespace replication to coordinate file migration between decentralized servers while maintaining data availability to a client.
  • Example computing devices include enterprise servers, application servers, workstations, personal computers, network computers, network appliances, personal digital assistants, game consoles, televisions, , set-top boxes, premises automation equipment, point-of-sale terminals, automobiles, and personal communications devices.
  • the program instructions can be distributed on a computer readable medium, storage volume, or the Internet.
  • Program instructions can be in any appropriate form, such as source code, object code, or scripts.
  • FIG. 1 is a high-level block diagram illustrating a storage network system 100 according to one embodiment of the present invention.
  • the system 100 comprises a NAS switch 110 and a client 140 coupled to a network 195.
  • the NAS switch 110, a source file server 120, and a destination file server 130, are each coupled in communication through a subnetwork 196.
  • the system 100 components are implemented in, for example, a personal computer with an x86-type processor executing an operating system and/or an application program, a workstation, a specialized NAS device with an optimized operating system and/or application program, a modified server blade, etc.
  • the storage network 175 comprises a NAS using protocols such as NFS and CLFS.
  • the storage network 175 comprises a combination of NAS, SAN, and other types of storage networks.
  • the storage network 175 comprises a decentralized standard or proprietary storage system other than NAS.
  • the NAS switch 110 provides continuous transparency to the client 140 with respect to object management. Specifically, the NAS switch can off-load tasks related to physical configurations, object management, object migration, object replication, efficient storage and/or other services on the storage network 175.
  • the NAS switch 110 emulates file server processes to the client 140 and emulates client processes to the file servers 120, 130. Accordingly, the client 140 is unaware of the NAS switch 110 since the NAS switch 110 is able to redirect NAS requests intended for the source file server 120 to appropriate locations on the destination file server 130. Thus, the client 140 submits object requests, such as file writes and directory reads, directly to the NAS switch 110.
  • the file servers 120, 130 are unaware of the NAS switch 110 since the NAS switch 110 is able to resubmit requests, contained in server file handles, as if they originated from the client 140. To do so, the NAS switch 110 can use mapping, translating, bridging, packet forwarding, other network interface functionality, and other control processes to perform file handle switching, thereby relieving the client 140 of the need to track changes in a file's physical location.
  • the NAS switch 110 comprises a client module 112 and a file server module 114 to facilitate communications and file handle switching.
  • the client module 112 receives exported file system directories from the file servers 120, 130 containing NAS switch handles.
  • the client module 112 maps the file system directories to internal switch file systems which it sends to the client 140.
  • the client 140 traverses an exported switch file system and selects a switch file handle which it sends to the NAS switch 110 along with a requested operation.
  • the file server module 114 coordinates migration processes.
  • the file server module 114 initiates tasks that are passively performed by the source and destination file server 120, 130, which may not have native migration capabilities.
  • the file server module 114 replicates a namespace containing the data to be migrated from the source file server 120 to the destination file server 130, and then replicates associated data.
  • the file server module 114 redirects namespace and file object accesses request by the client 140 to appropriate locations. Thus, data transfer services remain available to the client 140.
  • the file server module 114 also tracks reconfigurations resulting from migration, replication and other object relocation processes (e.g. adding or removing file server capacity) with a nested system of tables, or information otherwise linked to the switch file systems.
  • the switch file handles are static as they are persistent through the relocation processes, but the associated NAS file handles can be dynamic as they are selected depending upon an object's current location.
  • the file server module 114 maintains a file handle migration table and a file handle replication table corresponding to each file system that maps NAS file handles of migrated and replicated objects to locations on the storage network 175. Further embodiments of the file server module 114 are described with respect to FIG. 2.
  • the client module 112 associates 310 a NAS file handle with a switch file handle as described below with respect to FIG. 4. This enables the NAS switch 110 to act as an intermediary between the client 140 and the file servers 120, 130.
  • the client 140 submits NAS requests using switch file handles as if the NAS switch 110 were a file server 120, 130, and, in turn, the file servers 120, 130 process NAS file handles from the NAS switch 110 as if they were submitted by the client 140.
  • NAS file handles uniquely identify objects, such as a directory file server, on the file servers 120, 130, such as a directory or file, as long as that object exists.
  • NAS file handles are file server specific, and are valid only to the file servers 120, 130 that issued the file handles.
  • the process of obtaining a file handle from a file name is called a look-up.
  • the NAS file handle may be formatted according to protocols such as NFS or CLFS as discussed in further detail below, e.g., with reference to Tables 1A and IB.
  • a switch file handle identifies a directory or file object independent of location, making it persistent through file replications, migrations, and other data transfers.
  • the switch file handle can be a modified NAS file handle that refers to an internal system within the NAS switch 110 rather than the source file server 120. This enables the NAS switch 110 in mapping persistent file handles to a choice of alternative NAS file handles.
  • An original NAS file handle refers to an initial object location on the source file server 120.
  • a stored NAS file handle refers to a NAS file handle, stored as an object on the file servers 120, 130, which points to an alternative file location.
  • Object access requests handled by the NAS switch 110 include, for example, directory and/or file reads, writes, creation, deletion, moving, and copying.
  • a namespace access refers to an operation accessing or modifying the namespace such as look-up, rename, delete, or create.
  • a file access refers to an operation accessing or modifying files such as read or write.
  • An object can refer to a directory object or a file object. Directory objects can further comprise sub-directories and file objects within directory.
  • NAS switch 110 As used herein, various terms are used synonymously to refer to a location of an object prior to migration (e.g., “primary”; “source”; “original”; and “first”) and various terms are used to refer to a location of the same object after migration (e.g., “replica”; “destination”; “substitute”; and “second”). Further embodiments of the NAS switch 110 and methods operating therein are described below.
  • the client 140 accesses resources on the file servers 120, 130 by submitting a switch file handle to the NAS switch 110, intended for the source file server 120. To find the switch handle, the client 140 first mounts an exported switch file system containing switch file handles. The client 140 looks-up an object to obtain its file handle and submits an associated request. From the perspective of the client 140, transactions are carried out by the file servers 120, 130 having object locations that do not change. Thus, the client 140 interacts with the
  • NAS switch 110 before and after a file replication in the same manner.
  • a user of the client 140 can submit operations through a command line interface, a windows environment, a software application, or otherwise.
  • the NAS switch 110 further provides access to a storage network 175 other than a NAS storage network.
  • the source file server 120 is the default or original network file server for the client 140 before file migration.
  • the source file server 120 further comprises source objects 125, which include namespace directories and files such as enterprise data, records, database information, applications, and the like.
  • the source file server 120 can store a table of migrated directories maintained by the NAS switch 110 that correlate results from namespace migration.
  • the source file server 120 can store a file handle migration table, maintained by the NAS switch 110, denoting each migrated directory and file object.
  • the source file server 120 comprises, for example, a personal computer using an x86-type processor with an operating system and/or an application, a workstation, a specialized NAS device with an optimized operating system and/or application, a modified server blade, etc.
  • the destination file server 130 becomes the primary network file server used by the NAS switch 110 after file migration.
  • the destination file server 130 further comprises destination objects 135, which include the replicated namespace directories and source files.
  • the destination file server 130 can comprise the same hardware and/or software as described with reference to the source file server 120.
  • the source and destination file servers 120, 130 are preferably NAS file server, but can also be file servers using other decentralized protocols that do not inherently support file migration. Further embodiments of the source and destination file servers 120, 130 and related methods are described below.
  • the network 195 facilitates data transfers between connected hosts (e.g., 110,
  • the connections to the network 195 may be wired and/or wireless, packet and/or circuit switched, and use network protocols such as TCP/IP (Transmission Control Protocol/Internet Protocol), IEEE (Institute of Electrical and Electronics Engineers) 802.11, IEEE 802.3 (i.e., Ethernet), ATM (Asynchronous Transfer Mode), or the like.
  • the network, 195 comprises, for example, a LAN (Local Area Network), WAN (Wide Area Network), the Internet, and the like.
  • the NAS switch 110 acts as a gateway between the client 140, connected to the Internet, and the directory file server 120, and the shadow file servers 130, connected to a LAN.
  • the sub-network 196 is preferably a local area network providing optimal response time to the NAS switch 110. In one embodiment, the sub-network 196 is integrated into the network 195.
  • FIG. 2 is a block diagram illustrating the file server module 112 according to one embodiment of the present invention.
  • the file server module 114 comprises a file server interface 210, a migration module 220, and a redirection module 230.
  • the file server interface 210 manages operations before migration
  • the migration module 220 maintains data availability during migration
  • the redirection module 230 provides transparency to the client 140 after migration.
  • modules are merely exemplary groupings of functionality.
  • the file server interface 210 Prior to file migration, receives a switch file handle with a request from the client 140 which it uses to find an original NAS file handle.
  • the file server interface 210 submits the original NAS file handle with the request to the source file server 120. If the object has yet to change locations in the storage network 175, the file server interface 210 uses the original NAS file handle.
  • the file server interface 210 can submit the switch file handle to the migration module 220 to determine if the object is part of a data migration. Also, the file server interface 220 can submit the switch file handle to the redirection module 230 to determine if the object has completed data migration.
  • a migration module 220 in the NAS switch 110 coordinates migration from the source file server 120 to the destination file server 130 using namespace replication.
  • Namespace replication copies directory metadata of the source file server 120 separately from the data itself.
  • the migration module 220 walks through the directories to copy data, it updates a file handle migration table that indicates whether an object has been migrated, and if so, where the object has been migrated. Because the namespace replication is many times faster than the data migration, directory services remain available even while the data migration occurs.
  • the file handle migration table provides a current list of which objects have been migrated so that the NAS switch 110 is able to provide nearly continuous data availability, hi one embodiment, the NAS switch can reconstruct the file handle migration table in response to, for example, a device crash or data corruption.
  • the redirection module 230 looks-up switch file handles received from the client 140 in the file handle migration table. IF an object has been migrated, the redirection module outputs a destination NAS file handle corresponding to a location on the destination file server 130.
  • FIG. 3 is a high-level flow chart illustrating a method 300 of providing transparent file migration in a NAS storage network according to one embodiment of the present invention.
  • the client module 112 associates 310 an original NAS file handle with a switch file handle as described below with respect to FIG. 4. This enables the NAS switch 110 to act as an intermediary between the client 140 and the file servers 120, 130.
  • the client 140 submits NAS requests using switch file handles as if the NAS switch 110 were a file server 120, 130, and, in turn, the file servers 120, 130 process NAS file handles from the NAS switch 110 as if they were submitted by the client 140.
  • the migration module 220 performs 320 file migration using namespace replication as described below with respect to FIGS. 5-9. By separating directory replication from data replication, the migration module 220 is able to maintain availability and data integrity between the file servers 120, 130.
  • the redirection module 230 redirects 330 NAS requests concerning migrated files as described below with respect to FIG. 10. Because the NAS switch 110 coordinates and stores elements involved in migration, the client 140 continues referring to objects stored in alternative locations with the same switch file handle used prior to replication. On the back end, however, many changes can occur. For example, file migration relocates the source objects 125 from the source file server 120 to the destination file server 120.
  • FIG. 4 is a flow chart illustration the method 310 of associating a NAS file handle with a switch file handle according to one embodiment of the present invention.
  • the NAS switch 110 mounts 410 an exported directory of file systems from the primary server 120. in general, the file system organizes objects on the file servers 120, 130 into a directory hierarchy of NAS file handles.
  • the NAS switch 110 receives exported directories from associated source file servers 120 and, in turn, sends exported directories to associated clients 140.
  • the client module 112 generates 420 switch file handles independent of object locations in the primary file server 120.
  • the client module 112 organizes exported file systems from the file server 120 by replacing file system or tree identifiers with a switch file system number as shown below in Tables 2 A and 2B.
  • the client module 112 exports 430 the switch file system to the client 140 to use in requesting operations.
  • the NAS switch 110 receives the NAS request and searches replicated file handles and/or replicated namespaces using the NAS file handle.
  • the file server interface 210 checks entries of nested tables maintained by the synchronization module 230.
  • the file server interface 210 generates a NAS file handle from the switch file handle based on an object location.
  • An example of the contents of an NFS and CIFS file handle are shown in Tables 1A IB, while an example of switch file handles or modified NFS and CIFS file handles are shown in Tables 2A and 2B:
  • FIG. 5 is a flow chart illustrating the method 220 of performing file migration using namespace replication according to one embodiment of the present invention.
  • the migration module 220 replicates 510 a directory hierarchy of the source file server 120 as described below with respect to FIGS. 6-7.
  • an object access request such as a directory operation is received from the client 140, it is sent to both the first and destination file servers 120, 130 to maintain consistency between the namespace and replicated namespace.
  • a directory can thus be created or deleted during the file migration process whereas in the systems of the prior art, the directory would be locked so that such operations would not be possible.
  • the migration module 220 resubmits 530 the request to update the replicated namespace.
  • the replicated namespace is stored on the destination file server 130.
  • operations such as a create directory, create file, delete, directory, delete file, and the like affect the source namespace, that same modification is made to the replicated namespace.
  • the migration module 220 copies 550 data from the source file server 120 to the destination file server 130.
  • FIG. 6 is a flow chart illustrating the method 510 of replicating a directory hierarchy from the source file server 120 to the destination file server 130 according to one embodiment of the present invention.
  • the reproduction module 220 selects 610 a current source directory from the directory hierarchy of the source file server 120 and the current destination directory from the destination file server 130.
  • the migration module 220 adds 620 a mapping entry in a replication table with switch file handles related to the source and destination locations.
  • the migration module 220 selects 630 a current object from a listing of file and directory objects in the current source directory.
  • the migration module 220 creates 650 a directory in the destination file server 130 with the same name as the current directory in the primary file server 120.
  • the reproduction module 220 creates 645 a file with a stored file handle for the object from the file handle in the current destination directory.
  • the stored file handle is similar to the switch file handle.
  • the stored file handle is a predetermined size so that the NAS switch 110 can determine whether a file contains a stored file handle merely by inspecting the file's size.
  • An exemplary stored file format is shown in Table 3:
  • the migration module 220 adds 655 a mapping entry in a replicated file list with source and destination switch file handles.
  • the reproduction module 220 commits 690 the namespace replication. However, if there are more objects to be processed 660, the migration module 220 continues the process from selecting 630 objects. If there was an error in the directory or file creation 670, the reproduction module 220 deletes 675 the destination directory, and repeats the process from adding 620 mapping entries. Also, if there are more directories to process 680, the first file server 120 returns to selecting 510 primary directories.
  • the migration module 220 commits 690 the namespace as shown in FIG. 7.
  • FIG. 7 is a flow chart illustrating the method 590 of committing the namespace replication according to one embodiment of the present invention.
  • the migration module 220 adds 710 an entry to the migrated directory table. As a result, future object access requests will be directed to the destination file server 130 rather than the source file server 110.
  • the source file server 120 deletes 720 the replication table since it is no longer needed.
  • FIG. 8 is a flow chart illustrating the method 420 of copying data according to one embodiment of the present invention.
  • the NAS switch 110 selects 810 a current entry in the migrated file list.
  • the source file server 120 copies 820 the data of the source objects 125 to the destination objects 135 in the destination file server 130.
  • FIG. 9 is a flow chart illustrating the method 840 of committing data migration according to one embodiment of the present invention.
  • the migration module 220 locks 910 the source file to prevent further access to the file.
  • the migration module 220 replaces 920 the contents of the source file with a stored file handle indicating the new location on the destination file server 130.
  • the migration module 220 marks 930 the current entry in the migrated file list as done, and enters 840 the source and destination file handles indicative of the locations on the source and destination file servers 120, 130 in the file handle migration table.
  • the migration module 220 resumes 950 access to the source file.
  • the migration module 220 reconstructs the migration module
  • the migration module 220 due to, for example, a device crash or data corruption. To do so, the migration module 220 walks through the namespace of the source file server 120. Since the stored file handles have a consistent size, the migration module 220 can quickly recognize stored file handles and retrieve pointer information. This association is added to entries in a reconstructed file handle migration table.
  • the destination file server 110 detects an error by comparing the file size before migration to the file size after migration.
  • FIG. 10 is a flow chart illustrating the method 330 of redirecting NAS requests concerning migrated objects according to one embodiment of the present invention.
  • the NAS switch 110 locates 1010 a file system ID in the file systems table from the switch file handle.
  • the NAS switch 110 next locates 1020 the file handle migration table from the file system ID.
  • the NAS switch 110 forwards the client request using the source or original NAS file handle. If the file has migrated 1030, the NAS switch 110 retrieves the destination NAS file handle from the file handle migration table in the source file server

Abstract

A NAS switch provides file migrations in a NAS storage network that are transparent to the clients. A source file server exports an original NAS file handles indicative of object locations on the source file server to the NAS switch. The NAS switch modifies the original NAS file handles to an internal file system and maps the original NAS file handles to a switch file handles independent of location. The NAS switch exports the switch file handles to a client. The client looks-up objects and makes NAS requests to the source file server using switch file handles. The NAS switch performs file migration by first replicating the namespace containing data to be migrated from source file server to a destination file server. Separately, the NAS replicates data which is a relatively longer process than the namespace replication. During data replication, namespace access requests for objects are directed to the replicated namespace. After data replication, file object requests for migrated objects are redirected to the destination file server in a process that is transparent to the client.

Description

TRANSPARENT FILE MIGRATION USING NAMESPACE REPLICATION
Inventors: Thomas K. Wong, Panagiotis Tsirigotis Anand Iyengar, and Rajeev Chawla
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims priority under 35 U.S. C. § 119(e) to: U.S. Provisional
Patent Application No. 60/465,579, filed on April 24, 2003, entitled "Method and Apparatus for Transparent File Migration Using the Technique of Namespace Replication," by Thomas K. Wong et al.; U.S. Provisional Patent Application No. 60/465,578, filed on April 24, 2003, entitled "Method and Apparatus for Transparent File Replication Using the Technique of
Namespace Replication," by Thomas K. Wong et al.; and is related to U.S. Patent Application No. [attorney docket #23313-07962], filed on [date even herewith], entitled "Transparent File Replication Using Namespace Replication," by Thomas K. Wong et al., each of which applications are herein incorporated by reference in their entirety.
BACKGROUND OF THE INVENTION
FIELD OF THE INVENTION
[0002] This invention relates generally to storage networks and, more specifically, to a network device that uses namespace replication to migrate files between file servers in a decentralized storage network.
DESCRIPTION OF RELATED ART
[0003] In a computer network, NAS (Network Attached Storage) file servers connected directly to the network provide an inexpensive and easily configurable solution for a storage network. These NAS file servers are self-sufficient because they contain file systems that allow interoperability with clients running any operating system and communication using open protocols. For example, a Unix-based client can use the NFS (Network File System) protocol by Sun Microsystems, Inc. of Santa Clara, California and a Windows-based client can use CLFS (Common Internet File System) by Microsoft Corp. of Redmond, Washington to access files on a NAS file server. However, the operating system does not affect communication between the client and file server. Thus, NAS file servers provide true universal file access. [0004] By contrast, more expensive and powerful SAN (Storage Area Network) file servers use resources connected by Fibre Channel on a back-end, or a dedicated network. A SAN file system is part of the operating system or an application running on the client. But heterogeneous client operating systems may require additional copies of each file to be stored on the storage network to ensure compatibility on the SAN file server. Additionally, communication between file servers on a SAN use proprietary protocols and thus are typically provided by a common vendor. As a result, NAS file servers are preferred when price and ease of use are major considerations. However, the benefits of NAS storage networks over SAN storage networks also have drawbacks.
[0005] One drawback with NAS file servers is that there is no centralized control.
Accordingly, each client must maintain communication channels between each of the NFS file servers separately. When NAS file servers are either added or removed from the storage network, each client must mount or unmount directories for the associated storage resources as appropriate. This is particularly inefficient when there are changes in hardware, but not in the particular files available on the network, such as when a failing NAS file server is swapped out for an identically configured back-up NAS file server.
[0006] A related drawback is that a client must be reconfigured each time a file is relocated within the storage network, such as during file migration or file replication. The client generates a NAS file handle that identifies a physical location of the directory or file object on the file server. To access the object, the client sends an object access request directly to the NAS file server. When the file is relocated to a different NAS file server, subsequent requests for access to the file require a new look-up to locate the file and generate a new NAS file handle.
[0007] An additional drawback is that NAS file servers are inaccessible during large data transfer operations such as file migrations and replications. Such data transfers typically occur during non-business hours to reduce consequential downtime. However, ever-larger storage capacities increase the amount of time necessary for data transfers. Additionally, many enterprises and applications have a need for data that is always available.
[0008] Therefore, what is needed is a network device to provide transparency to clients of file servers such as NAS file servers. Furthermore, there is a need for the network device to allow file migrations to occur without the need for client reconfiguration. Moreover, there is a need for the network device to provide access to the data during file migration. BRIEF SUMMARY OF THE INVENTION
[0009] The present invention meets these needs by providing file migrations in a decentralized storage network that are transparent to a client. A NAS switch, in the data path of a client and NAS file servers, reliably coordinates file migration of a source file server to a destination file server using namespace replication to track new file locations. Additionally, the NAS switch maintains data availability during time-consuming data transfers.
[0010] An embodiment of a system configured according to the present invention comprises the NAS switch in communication with the client on a front-end of the storage network, and both a source file server and a destination file server on a back-end. The NAS switch associates NAS file handles (e.g., CTFS file handles or NFS file handles) received from the source and destination file servers with switch file handles that are independent of a location. The NAS switch then exports switch file handles to the client. In response to subsequent object access requests from the client, the NAS switch substitutes switch file handles with appropriate NAS file handles for submission to the appropriate NAS file server.
[0011] In another embodiment, the NAS switch further comprises a migration module to coordinate the migration of source files at locations on the source file server to destination files at locations on the destination file server. The migration module separately performs namespace replication and data replication. Namespace replication copies the namespace of the directory hierarchy on the source file server to the destination file server. Namespace replication can also include the use of stored file handles as pointers from the source file server to files migrated to the destination file server, or as pointers from the destination file server to files yet to be migrated from the source file server. Next, the migration module migrates the data and swaps stored file handles
[0012] In yet another embodiment, the migration module updates a file migration table upon successful migration of an object. Accordingly, the migration module enters the location of the object on the source file server and the location of the object on the destination file server.
When an object access request is received, the NAS switch searches the file migration table according to the switch file handle. If a there is a match, the NAS switch sends the object access request to the location on the destination file server. Otherwise, the NAS switch sends the object access request to the location on the source file server. Advantageously, the migration module provides migration services to decentralized file servers and file servers that do not otherwise natively support migration. [0013] In still another embodiment, during migration, the migration module duplicates namespace access requests to both the namespace on the source file server and the replicated namespace on the destination file server.
BRIEF DESCRIPTION OF THE DRAWINGS
[0014] FIG. 1 is a high-level block diagram illustrating a storage network system according to one embodiment of the present invention.
[0015] FIG. 2 is a block diagram illustrating a NAS switch according to one embodiment of the present invention.
[0016] FIG. 3 is a high-level flow chart illustrating a method of providing transparent file migration in a NAS storage network according to one embodiment of the present invention..
[0017] FIG. 4 is a flow chart illustration a method of associating original NAS file handles with switch file handles according to one embodiment of the present invention.
[0018] FIG. 5 is a flow chart illustrating a method of performing file migration using namespace replication according to one embodiment of the present invention..
[0019] FIG. 6 is a flow chart illustrating a method of replicating a directory hierarchy of a source file server according to one embodiment of the present invention.
[0020] FIG. 7 is a flow chart illustrating a method of committing namespace replication according to one embodiment of the present invention.
[0021] FIG. 8 is a flow chart illustrating a method of copying data according to one embodiment of the present invention.
[0022] FIG. 9 is a flow chart illustrating a method of committing data migration according to one embodiment of the present invention.
[0023] FIG. 10 is a flow chart illustrating a method of redirecting NAS requests concerning migrated objects according to one embodiment of the present invention.
DETAILED DESCRIPTION OF THE INVENTION
[0024] The present invention provides file migrations in a storage network that are transparent to the clients. A NAS (Network Attached Storage) switch in the data path of a client and NAS file servers on the storage network, uses namespace replication to coordinate file migration between decentralized servers while maintaining data availability to a client. Some embodiments of a system are described with respect to FIGS. 1-2, and some embodiments of a method operating therein are described with respect to FIGS. 3-10.
[0025] The accompanying description is for the purpose of providing a thorough explanation with numerous specific details. Of course, the field of storage networking is such that many different variations of the illustrated and described features of the invention are possible. Those skilled in the art will thus undoubtedly appreciate that the invention can be practiced without some specific details described below, and indeed will see that many other variations and embodiments of the invention can be practiced while still satisfying its teacliings and spirit. For example, although the present invention is described with reference to storage networks operating under the NAS protocol, it can similarly be embodied in future protocols for decentralized storage networks other than NAS, or in mixed protocol networks. Accordingly, the present invention should not be understood as being limited to the specific implementations described below, but only by the claims that follow.
[0026] The processes, features, or functions of the present invention can be implemented by program instructions that execute in an appropriate computing device. Example computing devices include enterprise servers, application servers, workstations, personal computers, network computers, network appliances, personal digital assistants, game consoles, televisions, , set-top boxes, premises automation equipment, point-of-sale terminals, automobiles, and personal communications devices. The program instructions can be distributed on a computer readable medium, storage volume, or the Internet. Program instructions can be in any appropriate form, such as source code, object code, or scripts.
[0027] FIG. 1 is a high-level block diagram illustrating a storage network system 100 according to one embodiment of the present invention. The system 100 comprises a NAS switch 110 and a client 140 coupled to a network 195. The NAS switch 110, a source file server 120, and a destination file server 130, are each coupled in communication through a subnetwork 196. Note that there can be various configurations of the system 100, such as embodiments including additional clients 140, additional source and/or destination file servers 120, 130, and additional NAS switches 110. The system 100 components are implemented in, for example, a personal computer with an x86-type processor executing an operating system and/or an application program, a workstation, a specialized NAS device with an optimized operating system and/or application program, a modified server blade, etc. one embodiment, the storage network 175 comprises a NAS using protocols such as NFS and CLFS. In another embodiment, the storage network 175 comprises a combination of NAS, SAN, and other types of storage networks. In yet another embodiment the storage network 175 comprises a decentralized standard or proprietary storage system other than NAS.
[0028] The NAS switch 110 provides continuous transparency to the client 140 with respect to object management. Specifically, the NAS switch can off-load tasks related to physical configurations, object management, object migration, object replication, efficient storage and/or other services on the storage network 175. Preferably, the NAS switch 110 emulates file server processes to the client 140 and emulates client processes to the file servers 120, 130. Accordingly, the client 140 is unaware of the NAS switch 110 since the NAS switch 110 is able to redirect NAS requests intended for the source file server 120 to appropriate locations on the destination file server 130. Thus, the client 140 submits object requests, such as file writes and directory reads, directly to the NAS switch 110. Likewise, the file servers 120, 130 are unaware of the NAS switch 110 since the NAS switch 110 is able to resubmit requests, contained in server file handles, as if they originated from the client 140. To do so, the NAS switch 110 can use mapping, translating, bridging, packet forwarding, other network interface functionality, and other control processes to perform file handle switching, thereby relieving the client 140 of the need to track changes in a file's physical location.
[0029] In one embodiment, the NAS switch 110 comprises a client module 112 and a file server module 114 to facilitate communications and file handle switching. The client module 112 receives exported file system directories from the file servers 120, 130 containing NAS switch handles. To create compatibility between the client 140 and the NAS switch 110, the client module 112 maps the file system directories to internal switch file systems which it sends to the client 140. To request an object, the client 140 traverses an exported switch file system and selects a switch file handle which it sends to the NAS switch 110 along with a requested operation.
[0030] The file server module 114 coordinates migration processes. The file server module 114 initiates tasks that are passively performed by the source and destination file server 120, 130, which may not have native migration capabilities. The file server module 114 replicates a namespace containing the data to be migrated from the source file server 120 to the destination file server 130, and then replicates associated data. During and afterwards, the file server module 114 redirects namespace and file object accesses request by the client 140 to appropriate locations. Thus, data transfer services remain available to the client 140.
[0031] In one embodiment, the file server module 114 also tracks reconfigurations resulting from migration, replication and other object relocation processes (e.g. adding or removing file server capacity) with a nested system of tables, or information otherwise linked to the switch file systems. The switch file handles are static as they are persistent through the relocation processes, but the associated NAS file handles can be dynamic as they are selected depending upon an object's current location. To track various copies of an object, the file server module 114 maintains a file handle migration table and a file handle replication table corresponding to each file system that maps NAS file handles of migrated and replicated objects to locations on the storage network 175. Further embodiments of the file server module 114 are described with respect to FIG. 2.
[0032] The client module 112 associates 310 a NAS file handle with a switch file handle as described below with respect to FIG. 4. This enables the NAS switch 110 to act as an intermediary between the client 140 and the file servers 120, 130. The client 140 submits NAS requests using switch file handles as if the NAS switch 110 were a file server 120, 130, and, in turn, the file servers 120, 130 process NAS file handles from the NAS switch 110 as if they were submitted by the client 140.
[0033] In general, NAS file handles uniquely identify objects, such as a directory file server, on the file servers 120, 130, such as a directory or file, as long as that object exists. NAS file handles are file server specific, and are valid only to the file servers 120, 130 that issued the file handles. The process of obtaining a file handle from a file name is called a look-up.' The NAS file handle may be formatted according to protocols such as NFS or CLFS as discussed in further detail below, e.g., with reference to Tables 1A and IB. By contrast, a switch file handle identifies a directory or file object independent of location, making it persistent through file replications, migrations, and other data transfers. The switch file handle can be a modified NAS file handle that refers to an internal system within the NAS switch 110 rather than the source file server 120. This enables the NAS switch 110 in mapping persistent file handles to a choice of alternative NAS file handles. An original NAS file handle refers to an initial object location on the source file server 120. A stored NAS file handle refers to a NAS file handle, stored as an object on the file servers 120, 130, which points to an alternative file location.
[0034] Object access requests handled by the NAS switch 110 include, for example, directory and/or file reads, writes, creation, deletion, moving, and copying. A namespace access refers to an operation accessing or modifying the namespace such as look-up, rename, delete, or create. A file access refers to an operation accessing or modifying files such as read or write. An object can refer to a directory object or a file object. Directory objects can further comprise sub-directories and file objects within directory. As used herein, various terms are used synonymously to refer to a location of an object prior to migration (e.g., "primary"; "source"; "original"; and "first") and various terms are used to refer to a location of the same object after migration (e.g., "replica"; "destination"; "substitute"; and "second"). Further embodiments of the NAS switch 110 and methods operating therein are described below.
[0035] The client 140 accesses resources on the file servers 120, 130 by submitting a switch file handle to the NAS switch 110, intended for the source file server 120. To find the switch handle, the client 140 first mounts an exported switch file system containing switch file handles. The client 140 looks-up an object to obtain its file handle and submits an associated request. From the perspective of the client 140, transactions are carried out by the file servers 120, 130 having object locations that do not change. Thus, the client 140 interacts with the
NAS switch 110 before and after a file replication in the same manner. A user of the client 140 can submit operations through a command line interface, a windows environment, a software application, or otherwise. In one embodiment, the NAS switch 110 further provides access to a storage network 175 other than a NAS storage network.
[0036] The source file server 120 is the default or original network file server for the client 140 before file migration. The source file server 120 further comprises source objects 125, which include namespace directories and files such as enterprise data, records, database information, applications, and the like. The source file server 120 can store a table of migrated directories maintained by the NAS switch 110 that correlate results from namespace migration. Moreover, the source file server 120 can store a file handle migration table, maintained by the NAS switch 110, denoting each migrated directory and file object. The source file server 120 comprises, for example, a personal computer using an x86-type processor with an operating system and/or an application, a workstation, a specialized NAS device with an optimized operating system and/or application, a modified server blade, etc.
[0037] The destination file server 130 becomes the primary network file server used by the NAS switch 110 after file migration. The destination file server 130 further comprises destination objects 135, which include the replicated namespace directories and source files. The destination file server 130 can comprise the same hardware and/or software as described with reference to the source file server 120. The source and destination file servers 120, 130 are preferably NAS file server, but can also be file servers using other decentralized protocols that do not inherently support file migration. Further embodiments of the source and destination file servers 120, 130 and related methods are described below.
[0038] The network 195 facilitates data transfers between connected hosts (e.g., 110,
140). The connections to the network 195 may be wired and/or wireless, packet and/or circuit switched, and use network protocols such as TCP/IP (Transmission Control Protocol/Internet Protocol), IEEE (Institute of Electrical and Electronics Engineers) 802.11, IEEE 802.3 (i.e., Ethernet), ATM (Asynchronous Transfer Mode), or the like. The network, 195 comprises, for example, a LAN (Local Area Network), WAN (Wide Area Network), the Internet, and the like. In one embodiment, the NAS switch 110 acts as a gateway between the client 140, connected to the Internet, and the directory file server 120, and the shadow file servers 130, connected to a LAN. The sub-network 196 is preferably a local area network providing optimal response time to the NAS switch 110. In one embodiment, the sub-network 196 is integrated into the network 195.
[0039] FIG. 2 is a block diagram illustrating the file server module 112 according to one embodiment of the present invention. The file server module 114 comprises a file server interface 210, a migration module 220, and a redirection module 230. Generally, the file server interface 210 manages operations before migration, the migration module 220 maintains data availability during migration, and the redirection module 230 provides transparency to the client 140 after migration. Note that modules are merely exemplary groupings of functionality.
[0040] Prior to file migration, the file server interface 210 receives a switch file handle with a request from the client 140 which it uses to find an original NAS file handle. The file server interface 210 submits the original NAS file handle with the request to the source file server 120. If the object has yet to change locations in the storage network 175, the file server interface 210 uses the original NAS file handle. The file server interface 210 can submit the switch file handle to the migration module 220 to determine if the object is part of a data migration. Also, the file server interface 220 can submit the switch file handle to the redirection module 230 to determine if the object has completed data migration. In either case, an appropriate NAS file handle is returned for the file server interface 210 to use in forwarding the client request to the appropriate file server 120, 130 [0041] During file migration, a migration module 220 in the NAS switch 110 coordinates migration from the source file server 120 to the destination file server 130 using namespace replication. Namespace replication copies directory metadata of the source file server 120 separately from the data itself. As the migration module 220 walks through the directories to copy data, it updates a file handle migration table that indicates whether an object has been migrated, and if so, where the object has been migrated. Because the namespace replication is many times faster than the data migration, directory services remain available even while the data migration occurs. The file handle migration table provides a current list of which objects have been migrated so that the NAS switch 110 is able to provide nearly continuous data availability, hi one embodiment, the NAS switch can reconstruct the file handle migration table in response to, for example, a device crash or data corruption.
[0042] After file migration, the redirection module 230 looks-up switch file handles received from the client 140 in the file handle migration table. IF an object has been migrated, the redirection module outputs a destination NAS file handle corresponding to a location on the destination file server 130.
[0043] FIG. 3 is a high-level flow chart illustrating a method 300 of providing transparent file migration in a NAS storage network according to one embodiment of the present invention. The client module 112 associates 310 an original NAS file handle with a switch file handle as described below with respect to FIG. 4. This enables the NAS switch 110 to act as an intermediary between the client 140 and the file servers 120, 130. The client 140 submits NAS requests using switch file handles as if the NAS switch 110 were a file server 120, 130, and, in turn, the file servers 120, 130 process NAS file handles from the NAS switch 110 as if they were submitted by the client 140.
[0044] The migration module 220 performs 320 file migration using namespace replication as described below with respect to FIGS. 5-9. By separating directory replication from data replication, the migration module 220 is able to maintain availability and data integrity between the file servers 120, 130.
[0045] The redirection module 230 redirects 330 NAS requests concerning migrated files as described below with respect to FIG. 10. Because the NAS switch 110 coordinates and stores elements involved in migration, the client 140 continues referring to objects stored in alternative locations with the same switch file handle used prior to replication. On the back end, however, many changes can occur. For example, file migration relocates the source objects 125 from the source file server 120 to the destination file server 120.
[0046] FIG. 4 is a flow chart illustration the method 310 of associating a NAS file handle with a switch file handle according to one embodiment of the present invention. Initially, the NAS switch 110 mounts 410 an exported directory of file systems from the primary server 120. in general, the file system organizes objects on the file servers 120, 130 into a directory hierarchy of NAS file handles. In one embodiment, the NAS switch 110 receives exported directories from associated source file servers 120 and, in turn, sends exported directories to associated clients 140.
[0047] The client module 112 generates 420 switch file handles independent of object locations in the primary file server 120. The client module 112 organizes exported file systems from the file server 120 by replacing file system or tree identifiers with a switch file system number as shown below in Tables 2 A and 2B. The client module 112 exports 430 the switch file system to the client 140 to use in requesting operations. In the reverse process, the NAS switch 110 receives the NAS request and searches replicated file handles and/or replicated namespaces using the NAS file handle. Accordingly, the file server interface 210 checks entries of nested tables maintained by the synchronization module 230. The file server interface 210 generates a NAS file handle from the switch file handle based on an object location. An example of the contents of an NFS and CIFS file handle are shown in Tables 1A IB, while an example of switch file handles or modified NFS and CIFS file handles are shown in Tables 2A and 2B:
Figure imgf000013_0001
Table 1A - NFS File Handle Contents
Figure imgf000013_0002
Table IB - CIFS File Handle Contents
Figure imgf000013_0003
Table 2 A - Contents of NFS Switch File Handle
Figure imgf000013_0004
Table 2B - Contents of CIFS Switch File Handle
[0048] As discussed below, after objects have been migrated, the NAS switch 110 can accesses objects at new locations using updated NAS file handle. [0049] FIG. 5 is a flow chart illustrating the method 220 of performing file migration using namespace replication according to one embodiment of the present invention. The migration module 220 replicates 510 a directory hierarchy of the source file server 120 as described below with respect to FIGS. 6-7. In one embodiment, when an object access request such as a directory operation is received from the client 140, it is sent to both the first and destination file servers 120, 130 to maintain consistency between the namespace and replicated namespace. A directory can thus be created or deleted during the file migration process whereas in the systems of the prior art, the directory would be locked so that such operations would not be possible.
[0050] If a critical directory request is issued to the source file server 520 during file migration 510, the migration module 220 resubmits 530 the request to update the replicated namespace. Preferably, the replicated namespace is stored on the destination file server 130. As a result, when operations such as a create directory, create file, delete, directory, delete file, and the like affect the source namespace, that same modification is made to the replicated namespace. Once the directory replication is complete 540, critical directory operations can be submitted directly to the replicated namespace. In a separate process, the migration module 220 copies 550 data from the source file server 120 to the destination file server 130.
[0051] FIG. 6 is a flow chart illustrating the method 510 of replicating a directory hierarchy from the source file server 120 to the destination file server 130 according to one embodiment of the present invention. The reproduction module 220 selects 610 a current source directory from the directory hierarchy of the source file server 120 and the current destination directory from the destination file server 130. The migration module 220 adds 620 a mapping entry in a replication table with switch file handles related to the source and destination locations. The migration module 220 selects 630 a current object from a listing of file and directory objects in the current source directory.
[0052] If the current object is a directory 530, the migration module 220 creates 650 a directory in the destination file server 130 with the same name as the current directory in the primary file server 120. On the other hand, if the current object is a file 640, the reproduction module 220 creates 645 a file with a stored file handle for the object from the file handle in the current destination directory. In one embodiment, the stored file handle is similar to the switch file handle. Preferably, the stored file handle is a predetermined size so that the NAS switch 110 can determine whether a file contains a stored file handle merely by inspecting the file's size. An exemplary stored file format is shown in Table 3:
Figure imgf000015_0001
Table 3 - Exemplary Stored File Handle
[0053] Note, however, that there can be variations of the stored file format. The migration module 220 adds 655 a mapping entry in a replicated file list with source and destination switch file handles.
[0054] If all objects have been processed 660, no errors were committed in the process
670, and there are no more directories to replicate 680, the reproduction module 220 commits 690 the namespace replication. However, if there are more objects to be processed 660, the migration module 220 continues the process from selecting 630 objects. If there was an error in the directory or file creation 670, the reproduction module 220 deletes 675 the destination directory, and repeats the process from adding 620 mapping entries. Also, if there are more directories to process 680, the first file server 120 returns to selecting 510 primary directories.
[0055] The migration module 220 commits 690 the namespace as shown in FIG. 7.
FIG. 7 is a flow chart illustrating the method 590 of committing the namespace replication according to one embodiment of the present invention. The migration module 220 adds 710 an entry to the migrated directory table. As a result, future object access requests will be directed to the destination file server 130 rather than the source file server 110. The source file server 120 deletes 720 the replication table since it is no longer needed. [0056] FIG. 8 is a flow chart illustrating the method 420 of copying data according to one embodiment of the present invention. The NAS switch 110 selects 810 a current entry in the migrated file list. The source file server 120 copies 820 the data of the source objects 125 to the destination objects 135 in the destination file server 130.
[0057] If no error occurs during the data transfer 830, the destination file server 130 commits 840 the data migration as shown in FIG. 9. FIG. 9 is a flow chart illustrating the method 840 of committing data migration according to one embodiment of the present invention. The migration module 220 locks 910 the source file to prevent further access to the file. The migration module 220 replaces 920 the contents of the source file with a stored file handle indicating the new location on the destination file server 130. The migration module 220 marks 930 the current entry in the migrated file list as done, and enters 840 the source and destination file handles indicative of the locations on the source and destination file servers 120, 130 in the file handle migration table. Finally, the migration module 220 resumes 950 access to the source file.
[0058] In one embodiment, the migration module 220 reconstructs the migration module
220 due to, for example, a device crash or data corruption. To do so, the migration module 220 walks through the namespace of the source file server 120. Since the stored file handles have a consistent size, the migration module 220 can quickly recognize stored file handles and retrieve pointer information. This association is added to entries in a reconstructed file handle migration table.
[0059] Referring again to FIG. 8, if an error does occur 830, the data transfer is repeated. In one embodiment, the destination file server 110 detects an error by comparing the file size before migration to the file size after migration.
[0060] FIG. 10 is a flow chart illustrating the method 330 of redirecting NAS requests concerning migrated objects according to one embodiment of the present invention. The NAS switch 110 locates 1010 a file system ID in the file systems table from the switch file handle.
The NAS switch 110 next locates 1020 the file handle migration table from the file system ID.
If the file has not migrated 1030, the NAS switch 110 forwards the client request using the source or original NAS file handle. If the file has migrated 1030, the NAS switch 110 retrieves the destination NAS file handle from the file handle migration table in the source file server
120.

Claims

WE CLAIM:
1. A method for accessing an object in a storage network, comprising: receiving a NAS (Network Attached Storage) file handle including a location of the object on a source file server; sending as representative of the object, a switch file handle that is independent of the location of the object; migrating the object from the location on the source file server to a location on a destination file server; receiving an access request associated with the switch file handle; and sending the access request to the location on the destination file server.
2. The method of claim 1, wherein the object comprises a directory having objects representative of sub-directories and files.
3. The method of claim 1, wherein the object comprises a file.
4. The method of claim 1, wherein the migrating the object comprises replicating a namespace associated with the object, the namespace located on the source file server and the replicated namespace located on the destination file server.
5. The method of claim 4, wherein the migrating the object comprises: during migration, if the access request comprises a request to access or modify the namespace, sending the namespace access request to both the namespace and the replicated namespace during migration.
6. The method of claim 4, wherein the migrating the object further comprises: prior to migrating object, storing a stored file handle in the location on the destination file server, the stored file handle indicative of the location of the object on the source file server. 1. The method of claim 4, wherein the redirecting the access request further comprises: after migrating the object, storing a stored file handle in the location on the source file server, the stored file handle indicative of the location of the object on the destination file server. 8. The method of claim 1, wherein the migrating the object comprises migrating data associated with the object.
9. The method of claim 1, wherein the migrating the object comprises updating a file handle migration table with an entry for the location on the source file server and an entry for the location on the destination file server responsive to a successful migration.
10. The method of claim 9, wherein the redirecting the object further comprises: looking-up the object in the file migration table; and if the object is located, sending the access request to the location on the destination file server. 11. The method of claim 1 , wherein the redirecting the obj ect further comprises : receiving a second access request for a second object, wherein the second object has not been migrated; looking-up the second object in the file migration table; and if the object is not located, sending the second access request to the location on the source file server.
12. The method of claim 1, wherein the access request comprises a file access request including one from the group consisting of a read request and a write request.
13. The method of claim 1 , wherein the access request comprises a namespace access request including one from the group consisting of a create request, a delete request, a move request, a copy request, a look-up request and a rename request.
14. The method of claim 1, wherein the NAS file handle comprises one from the group consisting of a NFS (Network File System) file handle and a CIFS (Common Internet File System) file handle.
15. A method for centrally accessing an object in a decentralized storage network, comprising: receiving an input file handle including a location of the object on a source file server; sending as representative of the object, a switch file handle independent of the location of the object; migrating the object from the location on the source file server to a location on a destination file server, wherein during migration an object access request is duplicated among a namespace on the source file server and a replicated namespace on the destination file server; updating a file migration table after migration, the file migration table comprising an entry object locations on the first and destination file servers; and receiving an access request associated with the switch file handle; and sending the access request to the location on the destination file server.
16. The method of claim 15, wherein the decentralized storage network is a NAS (Network Attached Storage) storage network, wherein the access request is a NAS access request, and wherein the input file handle is a NAS file handle.
17. The method of claim 15, wherein the first and destination file servers include file systems and the client does not include the file system.
18. A computer program product, comprising: a computer-readable medium having computer program instructions and data embodied thereon for a method accessing an object in a NAS (Network Attached Storage) storage network, the method comprising: receiving a NAS file handle including a location of the object on a source file server; sending as representative of the object, a switch file handle independent of the location of the object; migrating the object from the location on the source file server to a location on a destination file server; receiving an access request associated with the switch file handle; and sending the access request to the location on the destination file server.
19. The computer program product of claim 18, wherein the object comprises a directory having objects representative of sub-directories and files. 20. The computer program product of claim 18, wherein the object comprises a file.
21. The computer program product of claim 18, wherein the migrating the object comprises replicating a namespace associated with the object, the namespace located on the source file server and the replicated namespace located on the destination file server.
22. The computer program product of claim 21 , wherein the migrating the obj ect further comprises: during migration, sending the access request to both the namespace and the replicated namespace during migration.
23. The computer program product of claim 21 , wherein the migrating the obj ect further comprises: prior to migrating object, storing a stored file handle in the location on the destination file server, the stored file handle indicative of the location of the object on the source file server.
24. The computer program product of claim 21 , wherein the migrating the obj ect further comprises: after migrating the object, storing a stored file handle in the location on the source file server, the stored file handle indicative of the location of the object on the destination file server.
25. The computer program product of claim 18, wherein the migrating the object comprises migrating data associated with the object.
26. The computer program product of claim 18, wherein the migrating the object comprises updating a file handle migration table with an entry for the location on the source file server and an entry for the location on the destination file server responsive to a successful migration. 27. The computer program product of claim 26, wherein the redirecting the object further comprises: looking-up the object in the file migration table; and if the object is located, sending the access request to the location on the destination file server. 28. The computer program product of claim 18, wherein the redirecting the object further comprises: receiving a second access request for a second object, wherein the second object has not been migrated; looking-up the second object in the file migration table; and if the object is not located, sending the second access request to the location on the source file server. 29. The computer program product of claim 28, wherein the object access request comprises a file access request including one from the group consisting of a read request and a write request. 30. The computer program product of claim 18, wherein the access request comprises a namespace access request including one from the group consisting of a create request, a delete request, a move request, a copy request, a look-up request and a rename request.
31. The computer program product of claim 18, wherein the NAS file handle comprises one from the group consisting of a NFS (Network File System) file handle and a
CIFS (Common Internet File System) file handle.
32. A NAS (Network Attached Storage) switch, comprising: a file server interface to issue a switch file handle representative of the object responsive to receiving a NAS file handle including a location of the object on a source file server, the switch file handle independent of the location of the object on the source file server; a migration module to enter the location of the object on the source file server and a location of the object on the destination file server responsive to receiving an indication of successful migration; and a redirection module, communicatively coupled to the migration module, the redirection module sending an object access request to the location on the destination file server responsive to receiving the access request associated with the switch file handle. 33. The NAS switch of claim 32, wherein the object comprises a directory having objects representative of sub-directories and files.
34. The NAS switch of claim 32, wherein the object comprises a file.
35. The NAS switch of claim 32, wherein the migrating module replicates a namespace associated with the object, the namespace located on the source file server and the replicated namespace located on the destination file server.
36. The NAS switch of claim 35, wherein during migration, the redirection module sends the access request to both the namespace and the replicated namespace.
37. The NAS switch of claim 35, wherein prior to migrating the object, the migration module stores a stored file handle in the location on the destination file server, the stored file handle indicative of the location of the object on the source file server.
38. The NAS switch of claim 32, wherein after migrating the object, the migration module stores a stored file handle in the location on the source file server, the stored file handle indicative of the location of the object on the destination file server.
39. The NAS switch of claim 32, wherein the migration module migrates data associated with the object.
40. The NAS switch of claim 32, wherein the migration module updates a file handle migration table with an entry for the location on the source file server and an entry for the location on the destination file server responsive to a successful migration.
41. The NAS switch of claim 40, wherein the redirection module looks-up the object in the file migration table, and sends the object access request to the location on the destination file server.
42. The NAS switch of claim 32, wherein the redirection module receives a second access request for a second object, wherein the second object has not been migrated, looks-up the second object in the file migration table, and sends the second access request to the location on the source file server.
43. The NAS switch of claim 32, wherein the object access request comprises a file access request including one from the group consisting of a read request and a write request.
44. The NAS switch of claim 32, wherein the object access request comprises a name access request including one from the group consisting of a create request, a delete request, a move request, a copy request, a look-up request and a rename request.
45. The NAS switch of claim 32, wherein the NAS file handle comprises one from the group consisting of a NFS (Network File System) file handle and a CTFS (Common Internet File System) file handle.
PCT/US2004/012847 2003-04-24 2004-04-26 Transparent file migration using namespace replication WO2004097572A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2006513342A JP4588024B2 (en) 2003-04-24 2004-04-26 Transparent file movement using namespace replication
EP04750678A EP1618500A4 (en) 2003-04-24 2004-04-26 Transparent file migration using namespace replication

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
US46557803P 2003-04-24 2003-04-24
US46557903P 2003-04-24 2003-04-24
US60/465,578 2003-04-24
US60/465,579 2003-04-24
US10/831,376 US7346664B2 (en) 2003-04-24 2004-04-23 Transparent file migration using namespace replication
US10/831,376 2004-04-23
US10/831,701 US7587422B2 (en) 2003-04-24 2004-04-23 Transparent file replication using namespace replication
US10/831,701 2004-04-23

Publications (2)

Publication Number Publication Date
WO2004097572A2 true WO2004097572A2 (en) 2004-11-11
WO2004097572A3 WO2004097572A3 (en) 2005-01-06

Family

ID=33425572

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/US2004/012847 WO2004097572A2 (en) 2003-04-24 2004-04-26 Transparent file migration using namespace replication
PCT/US2004/012846 WO2004097686A1 (en) 2003-04-24 2004-04-26 Transparent file replication using namespace replication

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/US2004/012846 WO2004097686A1 (en) 2003-04-24 2004-04-26 Transparent file replication using namespace replication

Country Status (3)

Country Link
EP (1) EP1618500A4 (en)
JP (1) JP4588024B2 (en)
WO (2) WO2004097572A2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1669850A1 (en) * 2004-12-10 2006-06-14 Hitachi Ltd. Network storage system with a clustered configuration sharing a namespace, and control method therefore
WO2007126513A2 (en) 2006-04-28 2007-11-08 Network Appliance, Inc. Methods of converting traditional volumes into flexible volumes
US7587422B2 (en) 2003-04-24 2009-09-08 Neopath Networks, Inc. Transparent file replication using namespace replication
US7720796B2 (en) 2004-04-23 2010-05-18 Neopath Networks, Inc. Directory and file mirroring for migration, snapshot, and replication
US7831641B2 (en) 2003-04-24 2010-11-09 Neopath Networks, Inc. Large file support for a network file server
EP1861772B1 (en) * 2005-03-23 2014-06-04 Fujitsu Technology Solutions Intellectual Property GmbH Method for removing a mass storage system from a computer network, and computer program product and computer network for carrying out the method
CN104407947A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Main/backup NAS (Network attached storage) switching method and device
US10664441B2 (en) 2016-07-15 2020-05-26 Fujitsu Limited Information processing system, information processing apparatus, and non-transitory computer-readable recording medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7346664B2 (en) 2003-04-24 2008-03-18 Neopath Networks, Inc. Transparent file migration using namespace replication
WO2005029251A2 (en) 2003-09-15 2005-03-31 Neopath Networks, Inc. Enabling proxy services using referral mechanisms
US8195627B2 (en) 2004-04-23 2012-06-05 Neopath Networks, Inc. Storage policy monitoring for a storage network
US8190741B2 (en) 2004-04-23 2012-05-29 Neopath Networks, Inc. Customizing a namespace in a decentralized storage environment
EP1900189B1 (en) 2005-06-29 2018-04-18 Cisco Technology, Inc. Parallel filesystem traversal for transparent mirroring of directories and files
US8131689B2 (en) 2005-09-30 2012-03-06 Panagiotis Tsirigotis Accumulating access frequency and file attributes for supporting policy based storage management
JP4288525B2 (en) 2007-02-16 2009-07-01 日本電気株式会社 File sharing system and file sharing method
US9235595B2 (en) * 2009-10-02 2016-01-12 Symantec Corporation Storage replication systems and methods
JP2012008854A (en) * 2010-06-25 2012-01-12 Hitachi Ltd Storage virtualization device
JP6485352B2 (en) * 2013-07-23 2019-03-20 株式会社アレスシステム Receiving apparatus, method, computer program
CN109428942A (en) * 2017-09-05 2019-03-05 南京南瑞继保电气有限公司 Live File Serving System and file server are across live synchronous method more than a kind of
JP7347007B2 (en) 2019-08-28 2023-09-20 富士フイルムビジネスイノベーション株式会社 Information processing device, information processing system, and information processing program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0926585A2 (en) 1997-12-24 1999-06-30 Hitachi, Ltd. Subsystem replacement method
EP1209556A2 (en) 2000-10-26 2002-05-29 Microsoft Corporation Method and system for transparently extending non-volatile storage
US20020161855A1 (en) 2000-12-05 2002-10-31 Olaf Manczak Symmetric shared file storage system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5689701A (en) * 1994-12-14 1997-11-18 International Business Machines Corporation System and method for providing compatibility between distributed file system namespaces and operating system pathname syntax
US5937406A (en) * 1997-01-31 1999-08-10 Informix Software, Inc. File system interface to a database
AU3304699A (en) * 1998-02-20 1999-09-06 Storm Systems Llc File system performance enhancement
AU2002249939A1 (en) * 2001-01-11 2002-07-24 Z-Force Communications, Inc. File switch and switched file system
US20030154236A1 (en) * 2002-01-22 2003-08-14 Shaul Dar Database Switch enabling a database area network
US7225204B2 (en) * 2002-03-19 2007-05-29 Network Appliance, Inc. System and method for asynchronous mirroring of snapshots at a destination using a purgatory directory and inode mapping
US6540337B1 (en) * 2002-07-26 2003-04-01 Hewlett-Packard Company Slotted substrates and methods and systems for forming same
US7284030B2 (en) * 2002-09-16 2007-10-16 Network Appliance, Inc. Apparatus and method for processing data in a network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0926585A2 (en) 1997-12-24 1999-06-30 Hitachi, Ltd. Subsystem replacement method
EP1209556A2 (en) 2000-10-26 2002-05-29 Microsoft Corporation Method and system for transparently extending non-volatile storage
US20020161855A1 (en) 2000-12-05 2002-10-31 Olaf Manczak Symmetric shared file storage system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP1618500A4

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7587422B2 (en) 2003-04-24 2009-09-08 Neopath Networks, Inc. Transparent file replication using namespace replication
US7831641B2 (en) 2003-04-24 2010-11-09 Neopath Networks, Inc. Large file support for a network file server
US7720796B2 (en) 2004-04-23 2010-05-18 Neopath Networks, Inc. Directory and file mirroring for migration, snapshot, and replication
EP1669850A1 (en) * 2004-12-10 2006-06-14 Hitachi Ltd. Network storage system with a clustered configuration sharing a namespace, and control method therefore
US8161133B2 (en) 2004-12-10 2012-04-17 Hitachi, Ltd. Network storage system with a clustered configuration sharing a namespace, and control method therefor
EP1861772B1 (en) * 2005-03-23 2014-06-04 Fujitsu Technology Solutions Intellectual Property GmbH Method for removing a mass storage system from a computer network, and computer program product and computer network for carrying out the method
WO2007126513A2 (en) 2006-04-28 2007-11-08 Network Appliance, Inc. Methods of converting traditional volumes into flexible volumes
EP2013735A2 (en) * 2006-04-28 2009-01-14 Network Appliance, Inc. Methods of converting traditional volumes into flexible volumes
EP2013735A4 (en) * 2006-04-28 2011-09-14 Network Appliance Inc Methods of converting traditional volumes into flexible volumes
CN104407947A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Main/backup NAS (Network attached storage) switching method and device
US10664441B2 (en) 2016-07-15 2020-05-26 Fujitsu Limited Information processing system, information processing apparatus, and non-transitory computer-readable recording medium

Also Published As

Publication number Publication date
EP1618500A2 (en) 2006-01-25
WO2004097572A3 (en) 2005-01-06
WO2004097686A1 (en) 2004-11-11
JP4588024B2 (en) 2010-11-24
JP2006524873A (en) 2006-11-02
EP1618500A4 (en) 2009-01-07

Similar Documents

Publication Publication Date Title
US7346664B2 (en) Transparent file migration using namespace replication
US7720796B2 (en) Directory and file mirroring for migration, snapshot, and replication
US7587422B2 (en) Transparent file replication using namespace replication
US7072917B2 (en) Extended storage capacity for a network file server
US8190741B2 (en) Customizing a namespace in a decentralized storage environment
US8195627B2 (en) Storage policy monitoring for a storage network
US7831641B2 (en) Large file support for a network file server
EP1805665B1 (en) Storage policy monitoring for a storage network
EP1618500A2 (en) Transparent file migration using namespace replication
US7877511B1 (en) Method and apparatus for adaptive services networking
US6947940B2 (en) Uniform name space referrals with location independence
US8131689B2 (en) Accumulating access frequency and file attributes for supporting policy based storage management
US9930099B2 (en) Hybrid segment-oriented file server and WAN accelerator
US9323758B1 (en) Efficient migration of replicated files from a file server having a file de-duplication facility
US8255364B2 (en) System for emulating a virtual boundary of a file system for data management at a fileset granularity
US8429360B1 (en) Method and system for efficient migration of a storage object between storage servers based on an ancestry of the storage object in a network storage system
US20150261801A1 (en) Method for handling large object files in an object storage system
US20070088669A1 (en) Method and apparatus for accessing information based on distributed file system (DFS) paths
US8429368B2 (en) Providing an administrative path for accessing a writeable master storage volume in a mirrored storage environment
WO2013173539A1 (en) Indirection objects in a cloud storage system
WO2007041456A2 (en) Accumulating access frequency and file attributes for supporting policy based storage management
WO2004097571A2 (en) Extended storage capacity for a network file server

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2006513342

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2004750678

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 2004750678

Country of ref document: EP