| CPC G06F 3/0676 (2013.01) [G06F 3/0604 (2013.01); G06F 13/4068 (2013.01); G06F 13/4295 (2013.01)] | 20 Claims |

|
1. A polarity inversion method, comprising:
acquiring a product ID of a current hard disk, an identity ID of a slot of a Serial Attached SCSI (SAS) card connected to the current hard disk, and type information of the SAS card, wherein the identity ID comprises a bus ID, a device ID, and a function ID;
determining corresponding polarity inversion information from a preset table according to the product ID, the identity ID, and the type information, wherein different columns of the preset table are respectively configured to indicate different product IDs of the hard disk, different identity IDs of the slot, and different ID information of the SAS card; and
inverting polarity of the SAS card according to the polarity inversion information, so that the polarity which is inverted is consistent with polarity of the current hard disk.
|