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

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