CN103543962A - Disk online and offline processing method for expansion card - Google Patents

Disk online and offline processing method for expansion card Download PDF

Info

Publication number
CN103543962A
CN103543962A CN201310515720.7A CN201310515720A CN103543962A CN 103543962 A CN103543962 A CN 103543962A CN 201310515720 A CN201310515720 A CN 201310515720A CN 103543962 A CN103543962 A CN 103543962A
Authority
CN
China
Prior art keywords
disk
standby condition
time
event
expansion card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310515720.7A
Other languages
Chinese (zh)
Other versions
CN103543962B (en
Inventor
汪洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Innovation Software Technology Co., Ltd.
Shenzhen Innovation Technology Co., Ltd.
Original Assignee
UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd
CHUANGXINKE SOFTWARE TECHNOLOGY (SHENZHEN) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd, CHUANGXINKE SOFTWARE TECHNOLOGY (SHENZHEN) Co Ltd filed Critical UIT STORAGE TECHNOLOGY (SHENZHEN) Co Ltd
Priority to CN201310515720.7A priority Critical patent/CN103543962B/en
Publication of CN103543962A publication Critical patent/CN103543962A/en
Application granted granted Critical
Publication of CN103543962B publication Critical patent/CN103543962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a disk online and offline processing method for an expansion card. By the method, flash breakage of a disk can be avoided. The method includes A, performing roll polling by a port management module of the expansion card to acquire a disk event; B, judging whether the disk is in a ready state or not, if yes, executing step C, and if not, executing step D; C, processing in a ready state of the disk, and returning to step A; D, detecting whether non-ready state time of the disk is detected or not, if yes, executing step E, and if not, executing step G; E, judging a difference value of the recorded non-ready state time of the disk and current system time is larger than a preset threshold value or not, if yes, executing step F, and if not, returning to step A; F, processing in a non-ready state of the disk, reporting a disk offline event to a drive module, and returning to step A; G, recording the current system time as the non-ready state time of the disk, and returning step A.

Description

Disposal route rolls off the production line on a kind of disk of expansion card
Technical field
The application relates to computer memory technical field, relates in particular to the disposal route that rolls off the production line on a kind of disk of expansion card.
Background technology
Serial Attached SCSI (SAS) (SAS), small computer system interface (SCSI of new generation, Small Computer System Interface) technology, and Serial Advanced Technology Attachment (SATA, Serial Advanced Technology Attachment) interface is identical, be all to adopt serial technology to obtain higher transmission speed, and improve inner space etc. by shortening tie line.SAS is the new interfaces that parallel scsi interface is developed afterwards.The design of this interface is usefulness, availability and the extendibility in order to improve storage system, and the compatibility with SATA hard disk is provided.
The interfacing of SAS can backward compatible SATA.Interface standard, SATA is a substandard of SAS, so SAS controller can directly be controlled SATA hard disk.Due to the compatibility of SAS system, make user can use the hard disk of distinct interface to meet the demand of types of applications on capacity or in usefulness, therefore when expanding storage system, have more elasticity, allow memory device bring into play maximum returns of investment.
In the expansion card equipment (expander) of existing support 6GSAS and SATA interface, system can detect by the mode of poll whether produced the disk event of reaching the standard grade or roll off the production line, and processes.But at certain in particular cases, disk can constantly produce and reach the standard grade within a period of time, the event that rolls off the production line, produces extremely, causes flash phenomenon.
Summary of the invention
The application provides the disposal route that rolls off the production line on a kind of disk of expansion card, can avoid occurring disk flash phenomenon.
The disposal route that rolls off the production line on the disk of a kind of expansion card that the embodiment of the present application provides, comprising:
The Port Management module of A, expansion card is carried out this poll processing, obtains disk event;
B, judge that disk, whether in standby condition, if so, performs step C, otherwise execution step D;
C, carry out the processing procedure of disk standby condition, then enter next polling cycle, return to steps A;
Whether D, inspection the non-standby condition time of recording disc, if so, performs step E, otherwise execution step G;
Whether the non-standby condition time of disk that E, judgement have been recorded and the difference of current system time are greater than predefined threshold value, if so, perform step F, otherwise enter next polling cycle, return to steps A;
F, carry out the processing procedure of the non-standby condition of disk, report a lower wall event to driver module, then enter next polling cycle, return to steps A;
G, record the current system time as the non-standby condition of the disk time, enter next polling cycle, return to steps A.
Preferably, step C further comprises: remove the non-standby condition time of disk of having recorded.
Preferably, described threshold value is 5 seconds.
The embodiment of the present application also provides a kind of expansion card, comprises Port Management module and driver module, and described Port Management module comprises:
Poll processing unit, for carrying out poll processing, obtains disk event;
The first judging unit, judges that for the disk event of obtaining according to poll processing unit whether disk is in standby condition, if notice disk processing unit carries out the processing procedure of disk standby condition, otherwise enables time detecting unit;
Time detecting unit, for whether checking the non-standby condition of the recording disc time, if record does not record the current system time as the non-standby condition of the disk time; Whether the non-standby condition time of disk that if so, judgement has been recorded and the difference of current system time are greater than predefined threshold value, the processing procedure of if so, notifying disk processing unit to carry out the non-standby condition of disk, otherwise do not process;
Disk processing unit, for carry out the processing procedure of disk standby condition or the non-standby condition of disk according to notice, reports a lower wall event to driver module during the processing procedure of the non-standby condition of conducting disk.
Preferably, the disk event that described the first judging unit obtains according to poll processing unit judge disk whether the result in standby condition be yes, further notify time detecting unit to remove the non-standby condition time of disk of having recorded.
Preferably, described threshold value is 5 seconds.
As can be seen from the above technical solutions, in Port Management module, disk is rolled off the production line to reporting events during to driver module, inquiry short time and so on, whether this disk there is dish event, did not if so, report, and left poll next time for and processed; If no, reported.In this way, a large amount of lower wall events that produce at short notice during by disk flash, only postpone to report once, in the situation that not affecting normal process process, have solved the problem of disk flash.Simultaneously, (reset) disk of can resetting while coiling on master controller due to the memory device based on dual control framework, now from controller, can think that disk produces mistake, in mistake, processing in branch also can reset disk, cause principal and subordinate to control the mistake of continuous reset disk, present techniques scheme has also been avoided the generation of this situation well.Therefore because dish on disk is a process relatively slowly at SCSI layer, for example, as long as is set a suitable time delay (about 5 seconds), can not affect the function that rolls off the production line on disk normal.
Accompanying drawing explanation
Process flow figure rolls off the production line on the disk that Fig. 1 provides for the embodiment of the present application.
Embodiment
Present techniques scheme, by revising the processing mode rolling off the production line on disk, has been avoided the generation of flash phenomenon.In Port Management module, disk is rolled off the production line to reporting events during to driver module, inquiry short time and so on, whether this disk there is dish event, did not if so, report, and left poll next time for and processed; If no, reported.In this way, a large amount of lower wall events that produce at short notice during by disk flash, only postpone to report once, in the situation that not affecting normal process process, have solved the problem of disk flash.
For making know-why, feature and the technique effect of present techniques scheme clearer, below in conjunction with specific embodiment, present techniques scheme is described in detail.
Fig. 1 shows the process flow that rolls off the production line on the disk of the expansion card that the embodiment of the present application provides, and comprises the steps:
Step 101: the Port Management module of expansion card is carried out this poll processing, obtains disk event;
Step 102: judge that disk, whether in preparing (ready) state, if so, performs step 103, otherwise performs step 105;
Step 103: remove the non-standby condition time of disk of having recorded;
Step 104: carry out the processing procedure of disk standby condition, then enter next polling cycle, return to step 101.
Step 105: whether check and if so, to perform step 106, otherwise to perform step 108 the non-standby condition time of recording disc;
Step 106: whether the non-standby condition time of disk that judgement has been recorded and the difference of current system time are greater than predefined threshold value, if so, perform step 107, otherwise enter next polling cycle, return to step 101.In the embodiment of the present application, described threshold value setting is 5 seconds.
Step 107: carry out the processing procedure of the non-standby condition of disk, report a lower wall event to driver module, then enter next polling cycle, return to step 101.
Step 108: record the current system time as the non-standby condition of the disk time, enter next polling cycle, return to step 101.
The embodiment of the present application also provides a kind of expansion card, comprises Port Management module and driver module, and described Port Management module comprises:
Poll processing unit, for carrying out poll processing, obtains disk event;
The first judging unit, judges that for the disk event of obtaining according to poll processing unit whether disk is in standby condition, if notice disk processing unit carries out the processing procedure of disk standby condition, otherwise enables time detecting unit;
Time detecting unit, for whether checking the non-standby condition of the recording disc time, if record does not record the current system time as the non-standby condition of the disk time; Whether the non-standby condition time of disk that if so, judgement has been recorded and the difference of current system time are greater than predefined threshold value, the processing procedure of if so, notifying disk processing unit to carry out the non-standby condition of disk, otherwise do not process;
Disk processing unit, for carry out the processing procedure of disk standby condition or the non-standby condition of disk according to notice, reports a lower wall event to driver module during the processing procedure of the non-standby condition of conducting disk.
Preferably, the disk event that described the first judging unit obtains according to poll processing unit judge disk whether the result in standby condition be yes, further notify time detecting unit to remove the non-standby condition time of disk of having recorded.
The foregoing is only the application's preferred embodiment; not in order to limit the application's protection domain; all within the spirit and principle of present techniques scheme, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of the application's protection.

Claims (6)

1. the disposal route that rolls off the production line on the disk of expansion card, is characterized in that, comprising:
The Port Management module of A, expansion card is carried out this poll processing, obtains disk event;
B, judge that disk, whether in standby condition, if so, performs step C, otherwise execution step D;
C, carry out the processing procedure of disk standby condition, then enter next polling cycle, return to steps A;
Whether D, inspection the non-standby condition time of recording disc, if so, performs step E, otherwise execution step G;
Whether the non-standby condition time of disk that E, judgement have been recorded and the difference of current system time are greater than predefined threshold value, if so, perform step F, otherwise enter next polling cycle, return to steps A;
F, carry out the processing procedure of the non-standby condition of disk, report a lower wall event to driver module, then enter next polling cycle, return to steps A;
G, record the current system time as the non-standby condition of the disk time, enter next polling cycle, return to steps A.
2. method according to claim 1, is characterized in that, step C further comprises: remove the non-standby condition time of disk of having recorded.
3. method according to claim 1 and 2, is characterized in that, described threshold value is 5 seconds.
4. an expansion card, comprises Port Management module and driver module, it is characterized in that, described Port Management module comprises:
Poll processing unit, for carrying out poll processing, obtains disk event;
The first judging unit, judges that for the disk event of obtaining according to poll processing unit whether disk is in standby condition, if notice disk processing unit carries out the processing procedure of disk standby condition, otherwise enables time detecting unit;
Time detecting unit, for whether checking the non-standby condition of the recording disc time, if record does not record the current system time as the non-standby condition of the disk time; Whether the non-standby condition time of disk that if so, judgement has been recorded and the difference of current system time are greater than predefined threshold value, the processing procedure of if so, notifying disk processing unit to carry out the non-standby condition of disk, otherwise do not process;
Disk processing unit, for carry out the processing procedure of disk standby condition or the non-standby condition of disk according to notice, reports a lower wall event to driver module during the processing procedure of the non-standby condition of conducting disk.
5. expansion card according to claim 4, it is characterized in that, the disk event that described the first judging unit obtains according to poll processing unit judge disk whether the result in standby condition be yes, further notify time detecting unit to remove the non-standby condition time of disk of having recorded.
6. according to the expansion card described in claim 4 or 5, it is characterized in that, described threshold value is 5 seconds.
CN201310515720.7A 2013-10-28 2013-10-28 Roll off the production line on a kind of expansion card and disk thereof processing method Active CN103543962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310515720.7A CN103543962B (en) 2013-10-28 2013-10-28 Roll off the production line on a kind of expansion card and disk thereof processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310515720.7A CN103543962B (en) 2013-10-28 2013-10-28 Roll off the production line on a kind of expansion card and disk thereof processing method

Publications (2)

Publication Number Publication Date
CN103543962A true CN103543962A (en) 2014-01-29
CN103543962B CN103543962B (en) 2016-06-08

Family

ID=49967460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310515720.7A Active CN103543962B (en) 2013-10-28 2013-10-28 Roll off the production line on a kind of expansion card and disk thereof processing method

Country Status (1)

Country Link
CN (1) CN103543962B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992437A (en) * 2017-12-29 2019-07-09 华为技术有限公司 Processing method, device, equipment and the storage medium of hard disk flash

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080151411A1 (en) * 2006-12-26 2008-06-26 Fujitsu Limited Startup processing method for medium storage device, controller for medium storage device, and medium storage device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080151411A1 (en) * 2006-12-26 2008-06-26 Fujitsu Limited Startup processing method for medium storage device, controller for medium storage device, and medium storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992437A (en) * 2017-12-29 2019-07-09 华为技术有限公司 Processing method, device, equipment and the storage medium of hard disk flash
CN109992437B (en) * 2017-12-29 2020-08-14 华为技术有限公司 Processing method, device and equipment for hard disk flash break and storage medium

Also Published As

Publication number Publication date
CN103543962B (en) 2016-06-08

Similar Documents

Publication Publication Date Title
US10031671B2 (en) Method, apparatus, and system for calculating identification threshold to distinguish cold data and hot data
CN109684140B (en) Slow disk detection method, device and equipment and computer readable storage medium
CN102591591B (en) Disk detection system, disk detection method and network store system
CN106354583B (en) A kind of heat backup method and system of MySQL database
CN103488544A (en) Processing method and device for detecting slow disk
CN107239238B (en) Storage IO operation method and device based on distributed lock
CN105912086A (en) Power module fault diagnosis method, power module and whole cabinet server
CN103037203A (en) Method and device for index recovery based on block storage
CN105138425A (en) Detection method and system for health status of disk
CN102999399A (en) Method and device of automatically restoring storage of JBOD (just bundle of disks) array
CN102566941B (en) Method for recognizing serial advanced technology attachment (SATA) hard disk through serial attached SCSI (SAS) hard disk expander
CN105630653A (en) CPU vacancy rate determination method and device for Docker container
EP3072049B1 (en) Indicating rebuild state of storage devices
CN103543962A (en) Disk online and offline processing method for expansion card
CN104239167A (en) Backup method and backup device for database as well as electronic equipment
CN105260140A (en) Disk size monitoring method and apparatus
CN111124818B (en) Monitoring method, device and equipment for Expander
CN105744200B (en) The storage method and device of surveillance video
CN103092710A (en) High available virtual machine running method in cloud computing operating system
CN106648969A (en) Method and system for inspecting damaged data in disk
CN106970851A (en) Method and apparatus for disk detection process in distributed file system
JP5814825B2 (en) Storage device and storage method
CN109558288A (en) Detection method, device, system and the storage medium of NVME hard disk life-span
CN109102839A (en) A kind of bad block labeling method, device, equipment and readable storage medium storing program for executing
CN104111382A (en) Capacitance detection method and device for capacitor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518057 Room 501A, 9 Buildings, Shenzhen Software Park (Phase 2), No. 1 Science and Technology Middle Road, Nanshan High-tech Zone, Shenzhen, Guangdong Province

Co-patentee after: Shenzhen Innovation Technology Co., Ltd.

Patentee after: Shenzhen Innovation Software Technology Co., Ltd.

Address before: 518057 Section D West, 2nd Floor, 1st # Building, Industrial Building, Great Wall Computer Building, No. 3 Kefa Road, Nanshan District, Shenzhen City, Guangdong Province

Co-patentee before: UIT Storage Technology (Shenzhen) Co., Ltd.

Patentee before: Chuangxinke Software Technology (Shenzhen) Co., Ltd.

CP03 Change of name, title or address