# US 2022/0291874 A1 · Data integrity checking mechanism for shared external volume

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0291874 A1
- Document ID: US20220291874A1
- Status: Published application
- Kind: A1
- Application number: 17/201,832
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Hitachi, Ltd.
- Applicants: Hitachi, Ltd.
- Inventors: Naruki KURATA; Tomohiro KAWAGUCHI
- Web page: https://patentgrep.com/patent/US20220291874A1

## CPC

- G06F 3/0664: {at device level, e.g. emulation of a storage device or system}
- G06F 3/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Example implementations described herein involve systems and methods which can include managing a mapping between write identifier, access virtual device identifier, and physical device for a drive unit comprising a plurality of physical devices. for migration of a virtual device from a first controller to a second controller, example implementations can further involve retrieving a virtual device identifier from the second controller; determining the physical device associated with the virtual device from the plurality of physical devices; and updating, for the determined physical device, the access virtual device identifier with the virtual device identifier in the mapping. Commands received to the determined physical device are processed through modification of one or more fields related to a data integrity field of the commands based on the updated mapping. Data received from the determined physical device is processed through modification of the data integrity field based on the updated mapping.

## Claims

### Claim 1

A method, comprising:
managing a mapping between write identifier, access virtual device identifier, and physical device for a drive unit comprising a plurality of physical devices;
for migration of a virtual device from a first controller to a second controller:
retrieving a virtual device identifier from the second controller;
determining the physical device associated with the virtual device from the plurality of physical devices; and
updating, for the determined physical device, the access virtual device identifier with the virtual device identifier in the mapping;
wherein
a command received from the second controller to the determined physical device is processed through modification of one or more fields related to a data integrity field of the command based on the updated mapping; and
data received from the determined physical device to the second controller is processed through modification of the data integrity field of the data based on the updated mapping.

### Claim 2 (depends on 1)

The method of claim 1, wherein the modification of the one or more fields related to the data integrity field based on the updated mapping comprises:
modifying the one or more fields related to the data integrity field of the command according to the write identifier to form a modified command; and
transmitting the modified command to the determined physical device.

### Claim 3 (depends on 1)

The method of claim 1, wherein the modification of the data integrity field based on the updated mapping comprises:
modifying the data integrity field of received data directed to the second controller with the access virtual device identifier to form modified data; and
transmitting the modified data to the second controller.

### Claim 4 (depends on 1)

The method of claim 1, further comprising, for replication of the virtual device from the first controller to the second controller:
determining the physical device associated with the virtual device from the plurality of physical devices;
retrieving the access virtual identifier associated with the second controller for the physical device;
adding to the mapping, another mapping between the virtual device identifier, the physical device, and a controller identifier of the second controller.

### Claim 5 (depends on 1)

The method of claim 1, further comprising, for the data received from the first controller being a write data:
caching the write data in a cache of the drive unit;
modifying the data integrity field of the write data in the cache with an identifier of the determined physical device to form modified write data; and
writing the modified write data from the cache to the determined physical device.

### Claim 6 (depends on 5)

The method of claim 5, wherein the identifier of the determined physical device comprises the write identifier.

### Claim 7 (depends on 1)

The method of claim 1, further comprising, for the migration of the virtual device from the first controller to the second controller:
for the virtual device identifier indicated by the mapping as already being in use within the second controller, generating a new virtual device identifier for the migration.

### Claim 8

A non-transitory computer readable medium, storing instructions for executing a process, the instructions comprising:
managing a mapping between write identifier, access virtual device identifier, and physical device for a drive unit comprising a plurality of physical devices;
for migration of a virtual device from a first controller to a second controller:
retrieving a virtual device identifier from the second controller;
determining the physical device associated with the virtual device from the plurality of physical devices; and
updating, for the determined physical device, the access virtual device identifier with the virtual device identifier in the mapping;
wherein
a command received from the second controller to the determined physical device is processed through modification of one or more fields related to a data integrity field of the command based on the updated mapping; and
data received from the determined physical device to the second controller is processed through modification of the data integrity field of the data based on the updated mapping.

### Claim 9 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the modification of the one or more fields related to the data integrity field based on the updated mapping comprises:
modifying the one or more fields related to the data integrity field of the command according to the write identifier to form a modified command; and
transmitting the modified command to the determined physical device.

### Claim 10 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the modification of the data integrity field based on the updated mapping comprises:
modifying the data integrity field of received data directed to the second controller with the access virtual device identifier to form modified data; and
transmitting the modified data to the second controller.

### Claim 11 (depends on 8)

The non-transitory computer readable medium of claim 8, further comprising, for replication of the virtual device from the first controller to the second controller:
retrieving a virtual device identifier from the second controller;
determining the physical device associated with the virtual device from the plurality of physical devices;
adding to the mapping, another mapping between the virtual device identifier, the physical device, and a controller identifier of the second controller.

### Claim 12 (depends on 8)

The non-transitory computer readable medium of claim 8, further comprising, for the data received from the first controller being a write data:
caching the write data in a cache of the drive unit;
modifying the data integrity field of the write data in the cache with an identifier of the determined physical device to form modified write data; and
writing the modified write data from the cache to the determined physical device.

### Claim 13 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the identifier of the determined physical device comprises the write identifier.

### Claim 14 (depends on 8)

The non-transitory computer readable medium of claim 8, further comprising, for the migration of the virtual device from the first controller to the second controller:
for the virtual device identifier indicated by the mapping as already being in use within the second controller, generating a new virtual device identifier for the migration.

### Claim 15

An apparatus, comprising:
a memory configured to manage a mapping between write identifier, access virtual device identifier, and physical device for a drive unit comprising a plurality of physical devices; and
a processor, configured to:
for migration of a virtual device from a first controller to a second controller:
retrieve a virtual device identifier from the second controller;
determine the physical device associated with the virtual device from the plurality of physical devices; and
update, for the determined physical device, the access virtual device identifier with the virtual device identifier in the mapping;
wherein
a command received from the second controller to the determined physical device is processed through modification of one or more fields related to a data integrity field of the command based on the updated mapping; and
data received from the determined physical device to the second controller is processed through modification of the data integrity field of the data based on the updated mapping.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the processor is configured to modify the one or more fields related to the data integrity field based on the updated mapping by:
modifying the one or more fields related to the data integrity field of the command according to the write identifier to form a modified command; and
transmitting the modified command to the determined physical device.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the processor is configured to modify the data integrity field based on the updated mapping by:
modifying the data integrity field of received data directed to the second controller with the access virtual device identifier to form modified data; and
transmitting the modified data to the second controller.

### Claim 18 (depends on 15)

The apparatus of claim 15, the processor further configured to, for replication of the virtual device from the first controller to the second controller:
retrieve a virtual device identifier from the second controller;
determine the physical device associated with the virtual device from the plurality of physical devices;
add to the mapping, another mapping between the virtual device identifier, the physical device, and a controller identifier of the second controller.

### Claim 19 (depends on 15)

The apparatus of claim 15, the processor further configured to, for the data received from the first controller being a write data:
cache the write data in a cache of the drive unit;
modify the data integrity field of the write data in the cache with an identifier of the determined physical device to form modified write data; and
write the modified write data from the cache to the determined physical device.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the identifier of the determined physical device comprises the write identifier.

### Claim 21 (depends on 15)

The apparatus of claim 15, further comprising, for the migration of the virtual device from the first controller to the second controller:
for the virtual device identifier indicated by the mapping as already being in use within the second controller, generating a new virtual device identifier for the migration.
