Patent ID: 11907058
Assignee: ZTE CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 5:
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.