Claims
- 1. A method of migrating data from at least one original host storage system to a replacement host storage system, comprising:
connecting a replacement host storage system to an original host storage system; retrieving the attributes of a remote file having data to be migrated from the original host storage system to the replacement host storage system, and storing the attributes in a database in the replacement host storage system; determining if the data in the file is linked to one file or to more than one file, if the data is linked to only one file, creating the file in the replacement host storage system and migrating the data; if the data in the file is linked to more than one file, looking up the file id and file system id from the retrieved attributes in the replacement host storage system database, determining if the file id and file system id are found in the database, if the file id and file system id are found in the database, retrieving the replacement host storage system identifier for the file and creating a hard link to the file associated with the file system identifier retrieved, and if the file id and file system id are not found in the database, creating the file in the replacement host storage system, retrieving the identifier for the newly created file in the replacement storage system file system, migrating the data associated therewith to the replacement host storage system, and storing the retrieved identifier for the file in the database keyed by the file id and file system id retrieved from the file attributes from the original system.
- 2. The method of claim 1, further comprising, if the data in a file is linked to more than two files, linking the file id and file system id for each file from the retrieved attributes in the replacement host storage system, determining if the file id and file system id for each file is found in the database, for each file id and file system id found in the database, retrieving the replacement host storage system identifier for each file and creating a hard link to each, and for each file whose file id and file system id is not found in the database, creating each said file in the replacement host storage system, retrieving the identifier for each newly created file in the replacement storage file system, migrating the data associated therewith to the replacement host storage system, storing the retrieved identifier for the file in the database keyed by the file id and file system id retrieved from the file attributes, and creating a hard link to each file.
- 3. The method of claim 2, further comprising creating hard links between files whose file id and file system id are found in the database and files for which data is migrated, for all files associated with the same data.
- 4. A replacement host storage system for migrating data from an original host storage system to the replacement host storage system, the replacement host storage system, comprising:
means for connecting the replacement host storage system directly to an original host storage system from which data is to be copied onto the replacement host storage system; a file system module for arranging and managing data on the replacement host storage system; and a data migration module for retrieving the attributes of a remote file having data to be migrated from the original host storage system to the replacement host storage system, and said file system module further comprising a data migration database for storing the attributes retrieved therein; said data migration module being further configured for migrating data from the original host storage system to the replacement host storage system and for determining if the data in the file migrated is linked to one file or to more than one file; said data migration module being operative to create the file in the replacement host storage system and migrate the data associated therewith if the data is only associated with one file; and said data migration module being further configured, in the event the data is linked to more than one file, for determining if the file id and file system id are found in the database, if the file id and file system id are found in the database, retrieving the replacement host storage system identifier for the file and creating a hard link to the file associated with the file system identifier retrieved, and if the file id and file system id are not found in the database, for creating the file in the replacement host storage system, retrieving the identifier for the newly created file in the replacement storage system file system, migrating the data associated therewith to the replacement host storage system, and storing the retrieved identifier for the file in the database keyed by the file id and file system id retrieved from the file attributes.
- 5. The system of claim 4, wherein said data migration module is further configured, in the event the data is linked to more than two files, for determining if the file id and file system id for each file is found in the database, for the files whose file id and file system id are found in the database, retrieving the replacement host storage system identifier for the file and creating hard links to the file associated with the file system identifier retrieved, and if the file id and file system id are not found in the database, for creating the file in the replacement host storage system, retrieving the identifier for the newly created file in the replacement storage file system, migrating the data associated therewith to the replacement host storage system, and storing the retrieved identifier for the file in the database keyed by the file id and file system id retrieved from the file attributes, and creating a hard link to each file.
- 6. The system of claim 5, wherein said data migration module is further configured for creating hard links between files whose file id and file system id are found in the database and files for which data is migrated, for all files associated with the same data.
1. CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application is related to co-pending application Ser. No. (Attorney Docket No. 40921/264452) entitled “Method and System for Migrating Data,” and co-pending application Ser. No. (Attorney Docket No. 40921/264452A) entitled “Method and System for Migrating Data While Maintaining Access to Data With Use of the Same Pathname,” both concurrently filed herewith.