1. Field of the Invention
The present invention relates generally to computing systems, and more particularly to, systems and methods for migrating data from an unprotected small computer system interface logical unit number (SCSI LUN) to a protected SCSI LUN and migrating data from a protected SCSI LUN to an unprotected SCSI LUN utilizing a peer-to-peer remote copy (PPRC) application.
2. Description of the Related Art
The T10 small computer system interface (SCSI) standard defines a DIF information model where a SCSI block device may be formatted with a data integrity field (DIF) associated with each logical block. The DIF provides end-to-end protection and verification of the integrity of the data from the time that the SCSI host initially writes the data.
A block device that is formatted without DIF information is referred to as including type 0 protection. A block device formatted with DIF information is referred to as including type 1 protection and includes a block cyclic redundancy check (CRC), a reference tag (LBA), and an application-defined application tag.
As support for T10 DIF emerges, it is desirable to migrate data from existing volumes that have type 0 protection (i.e., do not include type 1 protection) to volumes that are formatted with type 1 protection. Current systems and methods for performing this type of data migration typically utilize a SCSI host to perform the data migration. Specifically, the SCSI host reads all of the blocks of data from the unprotected volume, formats the blocks of data with DIF information, and then writes the blocks of data along with the DIF information to the new volume. In other words, the SCSI host is responsible for performing each of the tasks related to migrating data between volumes.
Various embodiments provide systems for migrating data. One system comprises a small computer system interface logical unit number (SCSI LUN) configured to store protected data, a processor, and memory coupled to the processor. The memory is configured to store a peer-to-peer remote copy (PPRC) application, wherein the processor is configured to execute the PPRC application to modify the protection in transmitted data and received data.
Other embodiments provide methods for migrating unprotected data to a protected SCSI LUN. One method comprises receiving unprotected data from a first processor. The method further comprises utilizing, by a second processor, a PPRC application to add protection to the data to generate protected data and storing the protected data in a protected SCSI LUN.
Methods for migrating protected data to an unprotected SCSI LUN are also provided. A method comprises receiving, at a protected SCSI LUN, a request to transmit the protected data, utilizing a PPRC application to strip the protection from the protected data to generate unprotected data, and transmitting the unprotected data to the unprotected SCSI LUN.
In order that the advantages of the invention will be readily understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered to be limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:
The illustrated embodiments below provide systems and methods for migrating data. One system comprises a small computer system interface logical unit number (SCSI LUN) configured to store protected data, a processor, and memory coupled to the processor. The memory is configured to store a peer-to-peer remote copy (PPRC) application, wherein the processor is configured to execute the PPRC application to modify the protection in transmitted data and received data.
Other embodiments provide methods for migrating unprotected data to a protected SCSI LUN. One method comprises receiving unprotected data from a first processor. The method further comprises utilizing, by a second processor, a PPRC application to add protection to the data to generate protected data and storing the protected data in a protected SCSI LUN.
Methods for migrating protected data to an unprotected SCSI LUN are also provided. A method comprises receiving, at a protected SCSI LUN, a request to transmit the protected data, utilizing a PPRC application to strip the protection from the protected data to generate unprotected data, and transmitting the unprotected data to the unprotected SCSI LUN.
Turning now to the figures,
Memory 110 may be any memory system and/or device capable of storing a peer-to-peer remote copy (PPRC) application 1110. PPRC 1110, in one embodiment, is a protocol (e.g., computer-executable code) utilized to mirror a first SCSI LUN (e.g., a source volume) to a second SCSI LUN (e.g., a target volume).
SCSI LUN 120 may be any memory system and/or block device capable of storing data. In one embodiment, SCSI LUN 120 comprises unprotected data. In other words, SCSI LUN 120 is formatted without DIF information (e.g., includes type 0 protection). The unprotected data in SCSI LUN 120 is capable of being transmitted to SCSI LUN 130 utilizing PPRC application 1110.
SCSI LUN 130 may be any memory system and/or device capable of storing data. In one embodiment, SCSI LUN 130 comprises protected data. In other words, SCSI LUN 130 is formatted with DIF information (e.g., includes type 1 protection). Data stored in SCSI LUN 130 includes a data integrity field (DIF) that includes a block cyclic redundancy check (CRC), a reference tag (LBA), and an application-defined application tag. The protected data in SCSI LUN 130 is capable of being transmitted to SCSI LUN 120 utilizing PPRC application 1110.
Processor 140 may be any system, device, and/or device capable of executing PPRC application 1110 in the background to migrate (e.g., mirror) data between SCSI LUN 120 and SCSI LUN 130. In one embodiment, processor 140 is configured to migrate unprotected data from SCSI LUN 120 to SCSI LUN 130. Specifically, processor 140 is configured to utilize PPRC application 1110 to convert the unprotected data to protected data and store the protected data in SCSI LUN 130. In other words, processor 140 is configured to utilize PPRC application 1110 to add type 1 protection to the data and store the data with type 1 protection in SCSI LUN 130.
When migrating data from SCSI LUN 120 to SCSI LUN 130, processor 140 is configured to determine from the small computer system interface command descriptor block (SCSI CDB) that the data being migrated from SCSI LUN 120 is not formatted with type 1 protection and that the write command is addressed to a volume that that is formatted with type 1 protection (i.e., SCSI LUN 130). In response thereto, processor 140 is configured to generate DIF information on the logical blocks of the data as the blocks are being written into SCSI LUN 130. The DIF information generated will have good block CRC, a reference tag, and an application tag set to the industry standard “FFFFh”, which indicates that the validity of the DIF should not be checked.
When type 1 protection with a valid application tag is generated, then the integrity of the data from the time that the DIF information was generated on SCSI LUN 130 is ensured. When a host reads the data on SCSI LUN 130, a valid DIF on the logical blocks ensures that the data was not corrupted after the data was written to SCSI LUN 130.
In an alternative embodiment, processor 140 is configured to provide an interface that enables a user to select a value to use for the application tag, rather than “FFFFh.” An application tag that is not FFFFh indicates that the validity of the DIF should be checked and allows a user to check the validity of the data stored in SCSI LUN 130. In other words, enabling a user to define and/or select an application tag that is different than FFFFh (i.e., an application tag that is different than the industry standard default application tag), allows the user to check the CRC of the data subsequent to reading the data from SCSI LUN 130.
In another embodiment, processor 140 is configured to migrate data from SCSI LUN 130 (i.e., from a volume formatted with type 1 protection) to SCSI LUN 120 (i.e., to a volume that does not include type 1 protection). That is, SCSI LUN 130 has support for the data transformation, while SCSI LUN 120 does not support the data transformation.
To perform the data migration, processor 140 is configured to determine if the receiving SCSI LUN (i.e., SCSI LUN 120) is formatted with DIF information. This determination is made when a relationship between SCSI LUN 120 and SCSI LUN 130 is first established. Specifically, SCSI LUN 130 issues a query to SCSI LUN 120 to determine the state of SCSI LUN 120. In response to the query, SCSI LUN 120 transmits a response that includes a flag that indicates whether or not the secondary volume is formatted with DIF information (i.e., a flag that indicates that SCSI LUN 120 is not formatted with type 1 protection) and SCSI LUN 130 stores this information. When data is transferred from SCSI LUN 130 to SCSI LUN 120, processor 140 is configured to strip the type 1 protection from the logical blocks being transmitted from SCSI LUN 130 to SCSI LUN 120 prior to transmitting the data to SCSI LUN 120.
The following sequence is illustrative of the operation of this embodiment of system 100. Initially, processor 140 determines that it is necessary to issue a command to write data from SCSI LUN 130 to SCSI LUN 120. Processor 140 then determines that SCSI LUN 130 is formatted with type 1 protection and that SCSI LUN 120 is not formatted with type 1 protection. Processor 140 is then configured to strip the type 1 protection from the logical blocks and then transfer the logical blocks to SCSI LUN 120. Furthermore, processor 140 then strips the DIF from the blocks as processor 140 reads the data from SCSI LUN 130 and then sends a SCSI write command with the data to SCSI LUN 120.
Although
With reference to
Computing device 210, which is similar to system 100 discussed above with reference to
Memory 2110 may be any memory system and/or device capable of storing a PPRC application 2112. PPRC 2112, in one embodiment, is a protocol (e.g., computer-executable code) utilized to mirror a first SCSI LUN (e.g., a source volume) to a second SCSI LUN (e.g., a target volume).
SCSI LUN 2120 may be any memory system and/or block device capable of storing data. In one embodiment, SCSI LUN 2120 comprises unprotected data. In other words, SCSI LUN 2120 is formatted without DIF information (e.g., includes type 0 protection). The unprotected data in SCSI LUN 2120 is capable of being transmitted to SCSI LUN 2130 utilizing PPRC application 2112.
SCSI LUN 2130 may be any memory system and/or device capable of storing data. In one embodiment, SCSI LUN 2130 comprises protected data. In other words, SCSI LUN 2130 is formatted with DIF information (e.g., includes type 1 protection). Data stored in SCSI LUN 2130 includes a data integrity field (DIF) that includes a block CRC, an LBA, and an application-defined application tag. The protected data in SCSI LUN 2130 is capable of being transmitted to SCSI LUN 2120 utilizing PPRC application 2112.
Processor 2140 may be any system, device, and/or device capable of executing PPRC application 2112 in the background to migrate (e.g., mirror) data between SCSI LUN 2120 and SCSI LUN 2130. In one embodiment, processor 2140 is configured to migrate unprotected data from SCSI LUN 2120 to SCSI LUN 2130. Specifically, processor 2140 is configured to utilize PPRC application 2112 to convert the unprotected data to protected data and store the protected data in SCSI LUN 2130. In other words, processor 2140 is configured to utilize PPRC application 2112 to add type 1 protection to the data and store the data with type 1 protection in SCSI LUN 2130.
When migrating data from SCSI LUN 2120 to SCSI LUN 2130, processor 2140 is configured to determine from the SCSI CDB that the data being migrated from SCSI LUN 2120 is not formatted with type 1 protection and that the write command is addressed to a volume that that is formatted with type 1 protection (i.e., SCSI LUN 2130). In response thereto, processor 2140 is configured to generate DIF information on the logical blocks of the data as the blocks are being written into SCSI LUN 2130. The DIF information generated will have good block CRC, a reference tag, and an application tag set to the industry standard “FFFFh.”
When type 1 protection with a valid application tag is generated, then the integrity of the data from the time that the DIF information was generated on SCSI LUN 2130 is ensured. When a host reads the data on SCSI LUN 2130, a valid DIF on the logical blocks ensures that the data was not corrupted after the data was written to SCSI LUN 2130.
In an alternative embodiment, processor 2140 is configured to provide an interface that enables a user to select a value to use for the application tag, rather than “FFFFh.” An application tag that is not FFFFh indicates that the validity of the DIF should be checked and allows a user to check the validity of the data stored in SCSI LUN 2130. In other words, enabling a user to define and/or select an application tag that is different than FFFFh (i.e., an application tag that is different than the industry standard default application tag), allows the user to check the CRC of the data subsequent to reading the data from SCSI LUN 2130.
In another embodiment, processor 2140 is configured to migrate data from SCSI LUN 2130 (i.e., from a volume formatted with type 1 protection) to SCSI LUN 2120 (i.e., to a volume that does not include type 1 protection). That is, SCSI LUN 2130 has support for the data transformation, while SCSI LUN 2120 does not support the data transformation.
To perform the data migration, processor 2140 is configured to determine if the receiving SCSI LUN (i.e., SCSI LUN 2120) is formatted with DIF information. This determination is made when a relationship between SCSI LUN 2120 and SCSI LUN 2130 is first established. Specifically, SCSI LUN 2130 issues a query to SCSI LUN 2120 to determine the state of SCSI LUN 2120. In response to the query, SCSI LUN 2120 transmits a response that includes a flag that indicates whether SCSI LUN 2120 is formatted with DIF information (i.e., a flag that indicates that SCSI LUN 2120 is not formatted with type 1 protection) and SCSI LUN 2130 stores this information. When data is transferred from SCSI LUN 2130 to SCSI LUN 2120, processor 2140 is configured to strip the type 1 protection from the logical blocks being transmitted from SCSI LUN 2130 to SCSI LUN 2120 prior to transmitting the data to SCSI LUN 2120.
The following sequence is illustrative of the operation of this embodiment of computing device 210. Initially, processor 2140 determines that it is necessary to issue a command to write data from SCSI LUN 2130 to SCSI LUN 2120. Processor 2140 then determines that SCSI LUN 2130 is formatted with type 1 protection and that SCSI LUN 2120 is not formatted with type 1 protection. Processor 2140 is then configured to strip the type 1 protection from the logical blocks and then transfer the logical blocks to SCSI LUN 2120. Furthermore, processor 2140 then strips the DIF from the blocks as processor 2140 reads the data from SCSI LUN 2130 and then sends a SCSI write command with the data to SCSI LUN 2120.
Computing device 220, which is similar to system 100 discussed above with reference to
Memory 2210 may be any memory system and/or device capable of storing a PPRC application 2212. PPRC 2212, in one embodiment, is a protocol (e.g., computer-executable code) utilized to mirror a first SCSI LUN (e.g., a source volume) to a second SCSI LUN (e.g., a target volume).
SCSI LUN 2220 may be any memory system and/or block device capable of storing data. In one embodiment, SCSI LUN 2220 comprises unprotected data. In other words, SCSI LUN 2220 is formatted without DIF information (e.g., includes type 0 protection). The unprotected data in SCSI LUN 2220 is capable of being transmitted to SCSI LUN 2230 utilizing PPRC application 2212.
SCSI LUN 2230 may be any memory system and/or device capable of storing data. In one embodiment, SCSI LUN 2230 comprises protected data. In other words, SCSI LUN 2230 is formatted with DIF information (e.g., includes type 1 protection). Data stored in SCSI LUN 2230 includes a data integrity field (DIF) that includes a block CRC, an LBA, and an application-defined application tag. The protected data in SCSI LUN 2230 is capable of being transmitted to SCSI LUN 2220 utilizing PPRC application 2212.
Processor 2240 may be any system, device, and/or device capable of executing PPRC application 2212 in the background to migrate (e.g., mirror) data between SCSI LUN 2220 and SCSI LUN 2230. In one embodiment, processor 2240 is configured to migrate unprotected data from SCSI LUN 2220 to SCSI LUN 2230. Specifically, processor 2240 is configured to utilize PPRC application 2212 to convert the unprotected data to protected data and store the protected data in SCSI LUN 2230. In other words, processor 2240 is configured to utilize PPRC application 2212 to add type 1 protection to the data and store the data with type 1 protection in SCSI LUN 2230.
When migrating data from SCSI LUN 2220 to SCSI LUN 2230, processor 2240 is configured to determine from the SCSI CDB that the data being migrated from SCSI LUN 2220 is not formatted with type 1 protection and that the write command is addressed to a volume that that is formatted with type 1 protection (i.e., SCSI LUN 2230). In response thereto, processor 2240 is configured to generate DIF information on the logical blocks of the data as the blocks are being written into SCSI LUN 2230. The DIF information generated will have good block CRC, a reference tag, and an application tag set to the industry standard “FFFFh.”
When type 1 protection with a valid application tag is generated, then the integrity of the data from the time that the DIF information was generated on SCSI LUN 2230 is ensured. When a host reads the data on SCSI LUN 2230, a valid DIF on the logical blocks ensures that the data was not corrupted after the data was written to SCSI LUN 2230.
In an alternative embodiment, processor 2240 is configured to provide an interface that enables a user to select a value to use for the application tag, rather than “FFFFh.” An application tag that is not FFFFh indicates that the validity of the DIF should be checked and allows a user to check the validity of the data stored in SCSI LUN 2230. In other words, enabling a user to define and/or select an application tag that is different than FFFFh (i.e., an application tag that is different than the industry standard default application tag), allows the user to check the CRC of the data subsequent to reading the data from SCSI LUN 2230.
In another embodiment, processor 2240 is configured to migrate data from SCSI LUN 2230 (i.e., from a volume formatted with type 1 protection) to SCSI LUN 2220 (i.e., to a volume that does not include type 1 protection). That is, SCSI LUN 2230 has support for the data transformation, while SCSI LUN 2220 does not support the data transformation.
To perform the data migration, processor 2240 is configured to determine if the receiving SCSI LUN (i.e., SCSI LUN 2220) is formatted with DIF information. This determination is made when a relationship between SCSI LUN 2220 and SCSI LUN 2230 is first established. Specifically, SCSI LUN 2230 issues a query to SCSI LUN 2220 to determine the state of SCSI LUN 2220. In response to the query, SCSI LUN 2220 transmits a response that includes a flag that indicates whether SCSI LUN 2220 is formatted with DIF information (i.e., a flag that indicates that SCSI LUN 2220 is not formatted with type 1 protection) and SCSI LUN 2230 stores this information. When data is transferred from SCSI LUN 2230 to SCSI LUN 2220, processor 2240 is configured to strip the type 1 protection from the logical blocks being transmitted from SCSI LUN 2230 to SCSI LUN 2220 prior to transmitting the data to SCSI LUN 2220.
The following sequence is illustrative of the operation of this embodiment of computing device 220. Initially, processor 2240 determines that it is necessary to issue a command to write data from SCSI LUN 2230 to SCSI LUN 2220. Processor 2240 then determines that SCSI LUN 2230 is formatted with type 1 protection and that SCSI LUN 2220 is not formatted with type 1 protection. Processor 2240 is then configured to strip the type 1 protection from the logical blocks and then transfer the logical blocks to SCSI LUN 2220. Furthermore, processor 2240 then strips the DIF from the blocks as processor 2240 reads the data from SCSI LUN 2230 and then sends a SCSI write command with the data to SCSI LUN 2220.
In addition, system 200 is capable of migrating data between computing device 210 and computing device 220. Specifically, system 200 is capable of migrating unprotected data from SCSI LUN 2120 to SCSI LUN 2230 and from SCSI LUN 2220 to SCSI LUN 2130. Furthermore, system 200 is capable of migrating protected data from SCSI LUN 2130 to SCSI LUN 2220 and from SCSI LUN 2230 to SCSI LUN 2120.
With additional reference to processor 2140, processor 2140 is further configured to execute PPRC application 2112 to migrate (e.g., mirror) data between SCSI LUN 2220 and SCSI LUN 2130. In one embodiment, processor 2140 is configured to migrate unprotected data from SCSI LUN 2220 to SCSI LUN 2130. Specifically, processor 2140 is configured to utilize PPRC application 2112 to convert the unprotected data to protected data and store the protected data in SCSI LUN 2130. In other words, processor 2140 is configured to utilize PPRC application 2112 to add type 1 protection to the data stored in SCSI LUN 2220 and store the data with type 1 protection in SCSI LUN 2130.
When migrating data from SCSI LUN 2220 to SCSI LUN 2130, processor 2140 is configured to determine from the SCSI CDB that the data being migrated from SCSI LUN 2220 is not formatted with type 1 protection and that the write command is addressed to a volume that that is formatted with type 1 protection (i.e., SCSI LUN 2130). In response thereto, processor 2140 is configured to generate DIF information on the logical blocks of the data as the blocks are being written into SCSI LUN 2130. The DIF information generated will have good block CRC, a reference tag, and an application tag set to the industry standard “FFFFh.”
When type 1 protection with a valid application tag is generated, then the integrity of the data from the time that the DIF information was generated on SCSI LUN 2130 is ensured. When a host reads the data on SCSI LUN 2130, a valid DIF on the logical blocks ensures that the data was not corrupted after the data was written to SCSI LUN 2130.
In an alternative embodiment, processor 2140 is configured to provide an interface that enables a user to select a value to use for the application tag, rather than “FFFFh.” An application tag that is not FFFFh indicates that the validity of the DIF should be checked and allows a user to check the validity of the data stored in SCSI LUN 2130. In other words, enabling a user to define and/or select an application tag that is different than FFFFh (i.e., an application tag that is different than the industry standard default application tag), allows the user to check the CRC of the data subsequent to reading the data from SCSI LUN 2130.
In another embodiment, processor 2140 is further configured to migrate data from SCSI LUN 2130 (i.e., from a volume formatted with type 1 protection) to SCSI LUN 2220 (i.e., to a volume that does not include type 1 protection). That is, SCSI LUN 2130 has support for the data transformation, while SCSI LUN 2220 does not support the data transformation.
To perform the data migration, processor 2140 is configured to determine if the receiving SCSI LUN (i.e., SCSI LUN 2220) is formatted with DIF information. This determination is made when a relationship between SCSI LUN 2220 and SCSI LUN 2130 is first established. Specifically, processor 2140 issues a query to SCSI LUN 2220 to determine the state of SCSI LUN 2220. In response to the query, SCSI LUN 2220 transmits a response that includes a flag that indicates whether SCSI LUN 2220 is formatted with DIF information (i.e., a flag that indicates that SCSI LUN 2220 is not formatted with type 1 protection) and SCSI LUN 2130 stores this information. When data is transferred from SCSI LUN 2130 to SCSI LUN 2220, processor 2140 is configured to strip the type 1 protection from the logical blocks being transmitted from SCSI LUN 2130 to SCSI LUN 2220 prior to transmitting the data to SCSI LUN 2220.
The following sequence is illustrative of the operation of this embodiment of processor 2140. Initially, processor 2140 determines that it is necessary to issue a command to write data from SCSI LUN 2130 to SCSI LUN 2220. Processor 2140 then determines that SCSI LUN 2130 is formatted with type 1 protection and that SCSI LUN 2220 is not formatted with type 1 protection. Processor 2140 is then configured to strip the type 1 protection from the logical blocks and then transfer the logical blocks to SCSI LUN 2220. Furthermore, processor 2140 then strips the DIF from the blocks as processor 2140 reads the data from SCSI LUN 2130 and then sends a SCSI write command with the data to SCSI LUN 2220.
With reference to an additional embodiment of processor 2240, processor 2240 is further configured to execute PPRC application 2212 to migrate (e.g., mirror) data between SCSI LUN 2220 and SCSI LUN 2230. In one embodiment, processor 2240 is configured to migrate unprotected data from SCSI LUN 2120 to SCSI LUN 2230. Specifically, processor 2240 is configured to utilize PPRC application 2212 to convert the unprotected data to protected data and store the protected data in SCSI LUN 2230. In other words, processor 2240 is configured to utilize PPRC application 2212 to add type 1 protection to the data stored in SCSI LUN 2220 and store the data with type 1 protection in SCSI LUN 2230.
When migrating data from SCSI LUN 2120 to SCSI LUN 2230, processor 2240 is configured to determine from the SCSI CDB that the data being migrated from SCSI LUN 2120 is not formatted with type 1 protection and that the write command is addressed to a volume that that is formatted with type 1 protection (i.e., SCSI LUN 2230). In response thereto, processor 2240 is configured to generate DIF information on the logical blocks of the data as the blocks are being written into SCSI LUN 2230. The DIF information generated will have good block CRC, a reference tag, and an application tag set to the industry standard “FFFFh.”
When type 1 protection with a valid application tag is generated, then the integrity of the data from the time that the DIF information was generated on SCSI LUN 2230 is ensured. When a host reads the data on SCSI LUN 2230, a valid DIF on the logical blocks ensures that the data was not corrupted after the data was written to SCSI LUN 2230.
In an alternative embodiment, processor 2240 is configured to provide an interface that enables a user to select a value to use for the application tag, rather than “FFFFh.” An application tag that is not FFFFh indicates that the validity of the DIF should be checked and allows a user to check the validity of the data stored in SCSI LUN 2230. In other words, enabling a user to define and/or select an application tag that is different than FFFFh (i.e., an application tag that is different than the industry standard default application tag), allows the user to check the CRC of the data subsequent to migrating reading the data from SCSI LUN 2230.
In another embodiment, processor 2240 is further configured to migrate data from SCSI LUN 2230 (i.e., from a volume formatted with type 1 protection) to SCSI LUN 2220 (i.e., to a volume that does not include type 1 protection). That is, SCSI LUN 2230 has support for the data transformation, while SCSI LUN 2120 does not support the data transformation.
To perform the data migration, processor 2240 is configured to determine if the receiving SCSI LUN (i.e., SCSI LUN 2120) is formatted with DIF information. This determination is made when a relationship between SCSI LUN 2120 and SCSI LUN 2230 is first established. Specifically, processor 2240 issues a query to SCSI LUN 2120 to determine the state of SCSI LUN 2220. In response to the query, SCSI LUN 2220 transmits a response that includes a flag that indicates whether SCSI LUN 2120 is formatted with DIF information (i.e., a flag that indicates that SCSI LUN 2120 is not formatted with type 1 protection) and SCSI LUN 2230 stores this information. When data is transferred from SCSI LUN 2230 to SCSI LUN 2120, processor 2240 is configured to strip the type 1 protection from the logical blocks being transmitted from SCSI LUN 2230 to SCSI LUN 2120 prior to transmitting the data to SCSI LUN 2120.
The following sequence is illustrative of the operation of this embodiment of processor 2240. Initially, processor 2240 determines that it is necessary to issue a command to write data from SCSI LUN 2230 to SCSI LUN 2120. Processor 2240 then determines that SCSI LUN 2230 is formatted with type 1 protection and that SCSI LUN 2120 is not formatted with type 1 protection. Processor 2240 is then configured to strip the type 1 protection from the logical blocks and then transfer the logical blocks to SCSI LUN 2120. Furthermore, processor 2240 then strips the DIF from the blocks as processor 2240 reads the data from SCSI LUN 2230 and then sends a SCSI write command with the data to SCSI LUN 2120.
Although
In addition, Although
With reference to
Computing device 310 comprises a memory 3110, a SCSI LUN 3120 comprising unprotected data, and a processor 3140 coupled to one another via a bus 3150 (e.g., a wired and/or wireless bus). Memory 3110 may be any memory system and/or device capable of storing a peer-to-peer remote copy (PPRC) application 3112. PPRC 3112, in one embodiment, is a protocol (e.g., computer-executable code) utilized to migrate (or mirror) unprotected data stored in SCSI LUN 3120 (e.g., a source volume) to a SCSI LUN 3230 (e.g., a target volume). Furthermore, PPRC 3212, when executed by processor 3140, is configured to receive unprotected data from SCSI LUN 3230 and store the unprotected data in SCSI LUN 3120
SCSI LUN 3120 may be any memory system and/or block device capable of storing data. In one embodiment, SCSI LUN 3120 comprises unprotected data. In other words, SCSI LUN 3120 is formatted without DIF information (e.g., includes type 0 protection). The unprotected data in SCSI LUN 3120 is capable of being transmitted to computing device 320 and data from computing device 320 is capable of being transmitted to SCSI LUN 3120.
Processor 3140 may be any system, device, and/or device capable of communicating with and executing PPRC 3112 to migrate (e.g., mirror) data between computing device 310 and computing device 320. Specifically, processor 3140 is configured to transmit unprotected data from SCSI LUN 3120 to computing device 320 and receive unprotected data from computing device 320 for storage in SCSI LUN 3120.
Computing device 320 comprises a memory 3210, a SCSI LUN 3230 comprising protected data (e.g., data with DIF information), and a processor 3240 coupled to one another via a bus 3250 (e.g., a wired and/or wireless bus). Memory 3210 may be any memory system and/or device capable of storing a protection module 3211 (e.g., an application, computer-executable code, and/or a computer program) capable of adding type 1 protection to unprotected data (e.g., data including type 0 protection or data without DIF information) and a PPRC 3212.
SCSI LUN 3230 may be any memory system and/or device capable of storing data. In one embodiment, SCSI LUN 3230 comprises protected data. In other words, SCSI LUN 3230 is formatted with DIF information (e.g., includes type 1 protection). Data stored in SCSI LUN 3230 includes a data integrity field (DIF) that includes a block CRC, an LBA, and an application-defined application tag. The protected data in SCSI LUN 3230 is capable of being transmitted to SCSI LUN 3220 utilizing PPRC application 3212.
Processor 3240 may be any system, device, and/or device capable of executing protection module 3211 and PPRC application 3212 in the background to migrate (e.g., mirror) data between SCSI LUN 3230 and SCSI LUN 3120. In one embodiment, processor 3240 is configured to migrate unprotected data from SCSI LUN 3120 to SCSI LUN 3230. Specifically, processor 3240 is configured to utilize protection module 3211 to convert the unprotected data to protected data and store the protected data in SCSI LUN 3230. In other words, processor 3240 is configured to utilize protection module 3211 to add type 1 protection to the unprotected data and store the data with type 1 protection in SCSI LUN 3230.
When migrating data from SCSI LUN 3120 to SCSI LUN 3230 utilizing protection module 3211, processor 3240 is configured to determine from the SCSI CDB that the data being migrated from SCSI LUN 3120 is not formatted with type 1 protection and that the write command is addressed to a volume that that is formatted with type 1 protection (i.e., SCSI LUN 3230). In response thereto, processor 3240 is configured to generate DIF information on the logical blocks of the data as the blocks are being written into SCSI LUN 3230. The DIF information generated will have a good block CRC, a reference tag, and an application tag set to the industry standard “FFFFh.”
When type 1 protection with a valid application tag is generated, the integrity of the data from the time that the DIF information was generated on SCSI LUN 3230 is ensured. In other words, when a host reads the data on SCSI LUN 3230, a valid DIF on the logical blocks ensures that the data was not corrupted after the data was written to SCSI LUN 3230.
In an alternative embodiment, processor 3240 is configured to provide an interface that enables a user to select a value to use for the application tag, rather than “FFFFh.” An application tag that is not FFFFh indicates that the validity of the DIF should be checked and allows a user to check the validity of the data stored in SCSI LUN 3230. In other words, enabling a user to define and/or select an application tag that is different than FFFFh (i.e., an application tag that is different than the industry standard default application tag), allows the user to check the CRC of the data subsequent to reading the data from SCSI LUN 3230.
In another embodiment, processor 3240 is configured to utilize PPRCE 3212 to migrate data from SCSI LUN 3230 (i.e., from a volume formatted with type 1 protection) to SCSI LUN 3120 (i.e., to a volume that does not include type 1 protection). That is, SCSI LUN 3230 has support for the data transformation, while SCSI LUN 3120 does not support the data transformation.
To perform the data migration, processor 3240 is configured to determine if the receiving SCSI LUN (i.e., SCSI LUN 3120) is formatted with DIF information. This determination is made when a relationship between SCSI LUN 3120 and SCSI LUN 3230 is first established. Specifically, processor 3240 issues a query to SCSI LUN 3120 to determine the state of SCSI LUN 3120. In response to the query, SCSI LUN 3120 transmits a response that includes a flag that indicates whether SCSI LUN 3120 is formatted with DIF information (i.e., a flag that indicates that SCSI LUN 3120 is not formatted with type 1 protection) and processor 3240 stores this information. When data is transferred from SCSI LUN 3230 to SCSI LUN 3120, processor 3240 is configured to strip the type 1 protection from the logical blocks being transmitted from SCSI LUN 3230 to SCSI LUN 3120 prior to transmitting the data to SCSI LUN 3120 and utilize PPRC 3212 to migrate the data to SCSI LUN 3120.
The following sequence is illustrative of the operation of this embodiment of system 300. Initially, processor 3240 determines that it is necessary to issue a command to write data from SCSI LUN 3230 to SCSI LUN 3120. Processor 3240 then determines that SCSI LUN 3230 is formatted with type 1 protection and that SCSI LUN 3120 is not formatted with type 1 protection. Processor 3240 is then configured to strip the type 1 protection from the logical blocks and then transfer the logical blocks to SCSI LUN 3120. Furthermore, processor 3240 then strips the DIF from the blocks as processor 3240 reads the data from SCSI LUN 3230 and then utilizes PPRC 3212 to send a SCSI write command with the now unprotected data to SCSI LUN 3120.
Although
Although
With reference now to
Method 400 further comprises utilizing, by the protected SCSI LUN, a PPRC application to add type 1 protection to the data to generate protected data (block 420) and storing the protected data in the protected SCSI LUN (block 430). The protected SCSI LUN executes the PPRC in the background so that other functions of, for example, system 100, system 200, and system 300 may be performed in the foreground.
In one embodiment, the protected SCSI LUN and the unprotected SCSI LUN comprised within a same computing device (see e.g., system 100 in
In various embodiments, modifying a value in the application tag such that the value is different than an industry standard default value for protected data (block 440). That is, method 400 further comprises adding the type 1 DIF information (see block 420) with an application tag of FFFFh when a user-defined value is not set or generating and adding valid type 1 DIF information using a user-defined application tag value if the application tag value was set by a user.
Method 400 further comprises checking a CRC for the protected data when a request to read and/or migrate the protected data is received (block 450). That is, the CRC is checked when the application tag value is a value other than FFFFh to ensure the integrity of the data in the protected SCSI LUN.
Referring now to
In one embodiment, method 500 further comprises checking a CRC for the protected data in response to receiving the request (block 520). The CRC is checked to determine if the protection data is valid when the DIF includes a value other than FFFFh.
Method 500 further comprises utilizing, by a processor, a PPRC application to strip the protection from the protected data (block 530) and transmit the unprotected data to the unprotected SCSI LUN (block 540). In one embodiment, the protected SCSI LUN and the unprotected SCSI LUN are comprised within the same computing device (e.g., system 100 in
While at least one exemplary embodiment has been presented in the foregoing detailed description of the invention, it should be appreciated that a vast number of variations exist. It should also be appreciated that the exemplary embodiment or exemplary embodiments are only examples, and are not intended to limit the scope, applicability, or configuration of the invention in any way. Rather, the foregoing detailed description will provide those skilled in the art with a convenient road map for implementing an exemplary embodiment of the invention, it being understood that various changes may be made in the function and arrangement of elements described in an exemplary embodiment without departing from the scope of the invention as set forth in the appended claims and their legal equivalents.
As will be appreciated by one of ordinary skill in the art, aspects of the present invention may be embodied as a system, method, or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module,” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer-readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer-readable medium(s) may be utilized. The computer-readable medium may be a computer-readable signal medium or a physical computer-readable storage medium. A physical computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, crystal, polymer, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Examples of a physical computer-readable storage medium include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, RAM, ROM, an EPROM, a Flash memory, an optical fiber, a CD-ROM, an optical processor, a magnetic processor, or any suitable combination of the foregoing. In the context of this document, a computer-readable storage medium may be any tangible medium that can contain, or store a program or data for use by or in connection with an instruction execution system, apparatus, or device.
Computer code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, radio frequency (RF), etc., or any suitable combination of the foregoing. Computer code for carrying out operations for aspects of the present invention may be written in any static language, such as the “C” programming language or other similar programming language. The computer code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, or communication system, including, but not limited to, a local area network (LAN) or a wide area network (WAN), Converged Network, or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the present invention are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks. The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the above figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
While one or more embodiments of the present invention have been illustrated in detail, one of ordinary skill in the art will appreciate that modifications and adaptations to those embodiments may be made without departing from the scope of the present invention as set forth in the following claims.
Number | Name | Date | Kind |
---|---|---|---|
20030236953 | Grieff et al. | Dec 2003 | A1 |
20050071372 | Bartfai et al. | Mar 2005 | A1 |
20060098818 | Fifer et al. | May 2006 | A1 |
20070294493 | Buah et al. | Dec 2007 | A1 |
20090182961 | Astigarraga et al. | Jul 2009 | A1 |
Number | Date | Country | |
---|---|---|---|
20130282996 A1 | Oct 2013 | US |