Abstract:
A method for setting a working mode of a multi-processor system includes: detecting, after a current board is inserted into a slot of the backplane, whether an associated board exists on the backplane; detecting, if the associated board exists, whether the associated board is in an independent working state; powering on the current board according to a slave working mode if the associated board is not in an independent working state, so as to work coordinately with the associated board; detecting, within a predetermined detection time if the associated board does not exist, whether a board is inserted into another slot of the backplane except the slot of the master board; and powering on the current board according to a master working mode if it is detected that the board is inserted, so as to work coordinately with the board in the other slot.
Abstract:
This invention discloses a hard disk data recovery method, apparatus, and system. The method includes: recording a logical block address corresponding to erroneous data if an error is discovered when data is read from the hard disk; performing a recovery operation for data at a first physical block address corresponding to the logical block address according to a preset algorithm to obtain recovered data; and sending an instruction of writing the recovered data into the logical block address to the hard disk so that the hard disk writes the recovered data into the logical block address according to the instruction, where the logical block address corresponds to a remapped second physical block address. Therefore, the method repairs an erroneous sector or a bad block of the hard disk quickly and improves efficiency of repairing the erroneous sector of the hard disk or the bad block of the hard disk.
Abstract:
A method for detecting an interface connection between devices is disclosed, including setting a recommended working parameter of a first interface as a first working parameter; obtaining, by using an auto negotiation operation, a second working parameter of a second interface; determining whether the second working parameter is equal to the first working parameter, and if the second working parameter is not equal to the first working parameter, sending an alarm to indicate that a connection is unmatched; if the second working parameter is equal to the first working parameter, setting the recommended working parameter of the first interface as a third working parameter, sending, by using the auto negotiation operation, the third working parameter to the second interface, and receiving the third working parameter sent by a second device through the second interface, so that the first interface communicates with the second interface by using the third working parameter.