# US 2004/0019752 A1 · Method and system for upgrading drive firmware in a non-disruptive manner

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

- Number: US 2004/0019752 A1
- Document ID: US20040019752A1
- Status: Published application
- Kind: A1
- Application number: 10/208,373
- Filed: 2002-07-29
- Published: 2004-01-29
- Earliest claimed: 2002-07-29
- Assignees: International Business Machines Corporation
- Inventors: David Alan Burton; Noel Simen Otterness
- Web page: https://patentgrep.com/patent/US20040019752A1

## CPC

- G06F 3/0676: {Magnetic disk device}
- G06F 3/0607: {by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device}
- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 8/656: while running
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present invention is a method and system for upgrading drive firmware on a drive within a distributed data storage system in a manner that is transparent and non-disruptive to the host system operations. The method and system allow for normal read and write operations to occur during the firmware upgrade process, even while the primary disk drive is off-line, through alteration of the controller read and write policies. A mapping file is created on a temporary storage device to reduce the necessary time period of the upgrade process. This time period is further reduced in a mirrored storage system or in a system having a spare drive, where a logging file is created to store the data diverted from the primary disk drive during the upgrade process. An advantage is the ability to maintain storage system redundancy during the upgrade process. The upgrade process in general is also simplified because the drive upgrade module is compatible with legacy equipment and may reside in the storage system controller firmware.

## Claims

### Claim 1

A method for updating control instructions in an electronic storage device of a distributed data storage system including a storage system controller, a primary electronic storage device, and a temporary electronic storage device, the method comprising:
diverting write operation data originally directed to the primary electronic storage device;
generating at least a partial mapping file of the write operation data diverted from the primary electronic storage device; and
updating control instructions in the primary electronic storage device while the write operation data is being diverted.

### Claim 2 (depends on 1)

The method of claim 1, wherein the write operation data comprises at least a primary electronic storage device sector.

### Claim 3 (depends on 1)

The method of claim 1, further comprising determining spare electronic storage device availability.

### Claim 4 (depends on 1)

The method of claim 1, further comprising updating the control instructions on any available spare electronic storage device.

### Claim 5 (depends on 1)

The method of claim 1, further comprising designating the temporary electronic storage device, comprising:
designating a spare electronic storage device as the temporary electronic storage device; and
designating a controller cache as the temporary electronic storage device, if a spare electronic storage device is not available.

### Claim 6 (depends on 1)

The method of claim 1, further comprising determining mirror electronic storage device availability.

### Claim 7 (depends on 1)

The method of claim 1, further comprising altering the read policy of the distributed data storage system during the control instruction update of the primary electronic storage device, comprising:
reading requested data from a mirror electronic storage device;
reading requested data from a logging file on the temporary electronic storage device; and
regenerating requested read data from parity drives using error-correcting codes, if the mirror and temporary electronic storage devices are not available.

### Claim 8 (depends on 1)

The method of claim 1, wherein diverting write operation data further comprises altering the write policy of the distributed data storage system during the update of the control instructions in the primary electronic storage device, including mapping a primary electronic storage device write sector in the mapping file on the temporary electronic storage device.

### Claim 9 (depends on 8)

The method of claim 8, further comprising writing data to a logging file on the temporary electronic storage device.

### Claim 10 (depends on 1)

The method of claim 1, further comprising writing data to a mirror electronic storage device.

### Claim 11 (depends on 1)

The method of claim 1, wherein updating of control instructions in the primary electronic storage device further comprises allowing normal read and write operations to occur during the control instructions update period.

### Claim 12 (depends on 1)

The method of claim 1, further comprising rebuilding at least the diverted write operation data on the primary electronic storage device, comprising:
copying data written to a mirror electronic storage device from the mirror electronic storage device to the primary electronic storage device; and
copying data written to a logging file on the temporary electronic storage device from the logging file to the corresponding primary electronic storage device sectors mapped in the mapping file, if the mirror electronic storage device is not available; and
regenerating write data on the primary electronic storage device at the primary electronic storage device sectors mapped in the mapping file, if the mirror electronic storage device and the logging file are not available.

### Claim 13

A method for updating control instructions in an electronic storage device of a distributed data storage system including at storage system controller and a primary electronic storage device, the method comprising:
determining spare drive availability;
designating a temporary electronic storage device;
determining mirror drive availability;
altering the read policy of the distributed data storage system to allow normal read operations to occur during the control instructions update period;
altering the write policy of the distributed data storage system to allow normal write operations to occur during the control instructions update period;
restricting host system access to the primary electronic storage device;
updating the control instructions in the primary electronic storage device while the read and write policies are altered;
rebuilding write operation data on the primary electronic storage device; and
restoring host system access to the primary electronic storage device.

### Claim 14

A drive update module for use in a storage system controller, the drive update module capable of updating control instructions in a primary electronic storage device and configured to update control instructions in an electronic storage device within a distributed data storage system, the drive update module comprising:
a write policy alteration module configured to divert write operation data directed to the primary electronic storage device;
a mapping module configured to generate at least a partial mapping file of the write operation data diverted from the primary electronic storage device; and
a control instructions update module configured to update the control instructions in the primary electronic storage device.

### Claim 15 (depends on 14)

The drive update module of claim 14, further comprising a drive update initiation module configured to initiate a control instructions update in the primary electronic storage device.

### Claim 16 (depends on 14)

The drive update module of claim 14, further comprising a spare drive availability module configured to determine spare electronic storage device availability.

### Claim 17 (depends on 14)

The drive update module of claim 14, further comprising a spare drive update module configured to update the control instructions in a spare electronic storage devices.

### Claim 18 (depends on 14)

The drive update module of claim 14, further comprising a temporary storage designation module configured to designate the temporary electronic storage device, the temporary storage designation module comprising:
a spare drive designation module configured to designate a spare electronic storage device as the temporary electronic storage device; and
a controller cache designation module configured to designate a controller cache as the temporary electronic storage device, if a spare electronic storage device is not available.

### Claim 19 (depends on 14)

The drive update module of claim 14, further comprising a mirror drive availability module configured to determine mirror electronic storage device availability.

### Claim 20 (depends on 14)

The drive update module of claim 14, further comprising a read policy alteration module configured to alter the read policy of the distributed data storage system during the control instructions update in the primary electronic storage device, the read alteration module comprising:
a mirror drive read module configured to read requested data from a mirror electronic storage device;
a logging file read module configured to read requested data from a logging file on a temporary electronic storage device, if the mirror electronic storage device is not available; and
a regeneration read module configured to regenerate requested read data from parity drives using error-correcting codes, if the mirror and temporary electronic storage devices are not available.

### Claim 21 (depends on 14)

The drive update module of claim 14, further comprising a mapping module configured to map the upgrade drive write sector in a mapping file on a temporary electronic storage device.

### Claim 22 (depends on 14)

The write policy alteration module of claim 14, further comprising a logging file write module configured to write data to a logging file on a temporary electronic storage device.

### Claim 23 (depends on 14)

The write policy alteration module of claim 14, further comprising a mirror drive write module configured to write data to a mirror electronic storage device.

### Claim 24 (depends on 14)

The drive update module of claim 14, further comprising a control instructions update module configured to update the control instructions in the primary electronic storage device.

### Claim 25 (depends on 24)

The control instruction update module of claim 24, wherein the control instruction update module is configured to allow normal read and write operations to occur during the control instructions update period.

### Claim 26 (depends on 14)

The drive update module of claim 14, further comprising a drive rebuild module configured to rebuild at least diverted write operation data on the primary electronic storage device, the drive rebuild module comprising:
a mirror drive rebuild module configured to copy data written to a mirror electronic storage device from the mirror electronic storage device to the primary electronic storage device;
a logging file rebuild module configured to copy data written to a logging file on the temporary electronic storage device from the logging file to the corresponding primary electronic storage device sectors mapped in the mapping file, if the mirror electronic storage device is not available; and
a regeneration rebuild module configured to regenerate write data on the primary electronic storage device at the primary electronic storage device sectors mapped in the mapping file, if the mirror electronic storage device and the logging file are not available.

### Claim 27 (depends on 14)

The drive update module of claim 14, further comprising a drive update completion module configured to complete a control instructions update in the primary electronic storage device.

### Claim 28

A distributed data storage system having a capability to be updated, the distributed data storage system comprising:
a primary electronic storage device;
a storage system controller;
a temporary electronic storage device;
a write policy alteration module configured to divert write operation data directed to the primary electronic storage device;
a mapping module configured to generate at least a partial mapping file of the write operation data diverted from the primary electronic storage device; and
a control instructions update module configured to update the control instructions in the primary electronic storage device.

### Claim 29

A distributed data storage device comprising:
an electronic storage device; and
a storage system controller comprising:
means for diverting write operation data originally directed to the primary electronic storage device;
means for generating at least a partial mapping file of the write operation data diverted from the primary electronic storage device; and
means for updating control instructions in the primary electronic storage device while the write operation data is being diverted.
