# US 11,907,058 B2 · Method and device for positioning faulty disk

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

- Number: US 11,907,058 B2
- Document ID: US11907058B2
- Status: Granted
- Kind: B2
- Application number: 17/636,224
- Filed: 2020-08-27
- Published: 2022-09-15
- Granted: 2024-02-20
- Earliest claimed: 2019-08-27
- Assignees: Zte Corporation
- Applicants: ZTE Corporation
- Inventors: Yuxue Liu
- Web page: https://patentgrep.com/patent/US11907058B2

## CPC

- G06F 3/0605: {by facilitating the interaction with a user or administrator}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 11/2221: {to test input/output devices or peripheral units}
- G06F 11/3034: {where the computing system component is a storage system, e.g. DASD based or network based (digital input from or digital output to record carriers G06F3/06; digital recording or reproducing G11B20/18; 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], H04L67/1097)}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 11/3058: {Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations (thermal management in cooling arrangements of a computing system G06F1/206)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are a method and device for positioning a faulty disk. The method comprises: in response to detecting that a first disk is faulted, determining positioning information of the first disk, the positioning information comprising a logic Enclosure Identity (EID) and a logic Slot Identity (SID); and positioning the first disk according to the EID and SID of the first disk.

## Claims

### Claim 1

A method for positioning a faulty disk, comprising:
in response to detecting that a first disk is faulted, determining positioning information of the first disk, the positioning information comprising a logic Enclosure Identity (EID) and a logic Slot Identity (SID);
and positioning the first disk according to the EID and SID of the first disk;
wherein the determining positioning information of the first disk comprises:
identifying a management mode of the first disk, which is Serial Attached SCSI (SAS) controller management or Redundant Arrays of Independent Drives (RAID) management; and
determining positioning information of the first disk according to the management mode of the first disk;
wherein, in response to the management mode of the first disk being SAS controller management, the determining positioning information of the first disk according to the management mode of the first disk comprises:
determining Small Computer System Interface (SCSI) bus information of the first disk according to the name of the first disk;
acquiring the EID and SID of the first disk mapped in a corresponding sysfs according to the SCSI bus information of the first disk; and
verifying whether the SCSI bus information of the first disk presents and whether the SID of the first disk is within a scope of jurisdiction of a logic enclosure corresponding to the EID of the first disk; and
wherein the positioning the first disk according to the EID and SID of the first disk comprises:
in response to there being the SCSI bus information of the first disk and the SID of the first disk being within the scope of jurisdiction of the logic enclosure corresponding to the EID of the first disk, positioning the first disk according to the EID and SID of the first disk.

### Claim 2 (depends on 1)

The method of claim 1, wherein, in response to the management mode of the first disk being RAID card management, the determining positioning information of the first disk according to the management mode of the first disk comprises:
acquiring a correspondence table of RAID card controllers and PCI buses;
determining SCSI bus information of the first disk according to the name of the first disk;
acquiring PCI bus information mapped by the corresponding sysfs according to the SCSI bus information of the first disk;
determining, according to the correspondence table and the PCI bus information mapped by the sysfs, a RAID card controller to which the first disk belongs; and
acquiring, according to the RAID card controller to which the first disk belongs, the EID and SID of the first disk.

### Claim 3 (depends on 2)

The method of claim 2, wherein the acquiring, according to the RAID card controller to which the first disk belongs, the EID and SID of the first disk comprises:
acquiring the value of a T bit in an HCTL in the SCSI bus of the first disk;
acquiring a DG field of first disk information under the RAID card controller to which the first disk belongs; and
in response to the value of the T bit being equal to the value of the disk group (DG) field, acquiring the EID and SID of the first disk by using the DG field.

### Claim 4 (depends on 1)

The method of claim 1, wherein the positioning the first disk according to the EID and SID of the first disk comprises:
warning and/or lighting about the first disk according to the EID and SID of the first disk.

### Claim 5 (depends on 1)

A non-transitory computer-readable storage medium having information processing programs stored thereon which, when executed by a processor, cause the processor to perform the method for positioning a faulty disk of claim 1.

### Claim 6

An apparatus for positioning a faulty disk, comprising:
a determination unit, configured to, in response to detecting that a first disk is faulted, determine positioning information of the first disk, the positioning information comprising a logic Enclosure Identity (EID) and a logic Slot Identity (SID), wherein the determination unit is further configured to identify a management mode of the first disk, which is Serial Attached SCSI (SAS) controller management or Redundant Arrays of Independent Drives (RAID) management, and determine positioning information of the first disk according to the management mode of the first disk, wherein the determination unit is further configured to, in response to the management mode of the first disk being SAS controller management, determine Small Computer System Interface (SCSI) bus information of the first disk according to the name of the first disk, and acquire the EID and SID of the first disk mapped in a corresponding sysfs according to the SCSI bus information of the first disk;
a verification unit configured to, after acquiring the EID and SID of the first disk mapped by the corresponding sysfs according to the SCSI bus information of the first disk, verify whether the SCSI bus information of the first disk presents and whether the SID of the first disk is within a scope of jurisdiction of a logic enclosure corresponding to the EID of the first disk; and
a positioning unit, configured to position the first disk according to the EID and SID of the first disk, wherein the positioning unit is further configured to, in response to there being the SCSI bus information of the first disk and the SID of the first disk being within the scope of jurisdiction of the logic enclosure corresponding to the EID of the first disk, position the first disk according to the EID and SID of the first disk.

### Claim 7

A device for positioning a faulty disk, comprising a memory, a processor and computer programs that are stored on the memory and executable by the processor, wherein the computer programs, when executed by the processor, cause the processor to carry out a method for positioning a faulty disk, the method comprising:
in response to detecting that a first disk is faulted, determining positioning information of the first disk, the positioning information comprising a logic Enclosure Identity (EID) and a logic Slot Identity (SID); and
positioning the first disk according to the EID and SID of the first disk;
wherein the determining positioning information of the first disk comprises:
identifying a management mode of the first disk, which is Serial Attached SCSI (SAS) controller management or Redundant Arrays of Independent Drives (RAID) management; and
determining positioning information of the first disk according to the management mode of the first disk;
wherein, in response to the management mode of the first disk being SAS controller management, the determining positioning information of the first disk according to the management mode of the first disk comprises:
determining Small Computer System Interface (SCSI) bus information of the first disk according to the name of the first disk;
acquiring the EID and SID of the first disk mapped in a corresponding sysfs according to the SCSI bus information of the first disk; and
verifying whether the SCSI bus information of the first disk presents and whether the SID of the first disk is within a scope of jurisdiction of a logic enclosure corresponding to the EID of the first disk; and
wherein the positioning the first disk according to the EID and SID of the first disk comprises:
in response to there being the SCSI bus information of the first disk and the SID of the first disk being within the scope of jurisdiction of the logic enclosure corresponding to the EID of the first disk, positioning the first disk according to the EID and SID of the first disk.
