CN106527996A - Disk identification method and device for disk cabinet - Google Patents
Disk identification method and device for disk cabinet Download PDFInfo
- Publication number
- CN106527996A CN106527996A CN201611034768.6A CN201611034768A CN106527996A CN 106527996 A CN106527996 A CN 106527996A CN 201611034768 A CN201611034768 A CN 201611034768A CN 106527996 A CN106527996 A CN 106527996A
- Authority
- CN
- China
- Prior art keywords
- disk
- identifier
- chassis
- state
- data base
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0632—Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
- G06F3/0676—Magnetic disk device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a disk identification method and device for a disk cabinet, relates to the technical field of storage arrays, and aims to provide a disk identification method for the disk cabinet on the basis of the own identifier of a disk firmware zone. The technical key point of the method comprises the following steps of: S1: reading the identifiers in the firmware zones of disks inserted into the disk cabinet one by one; S2: enabling the identifiers of all disks in the disk cabinet and the states of the disks to be corresponded and written into a management database of the disk cabinet; S3: when a certain disk in the disk cabinet is pulled out, updating the state of the disk which is pulled out of the management database of the disk cabinet; and S4: when the disk is inserted into the disk cabinet, reading the identifier in the disk firmware zone, matching the identifier with the identifiers in the management database of the disk cabinet, updating the state of the disk corresponding to the identifier if the matched identifier is found, and writing the identifier of the disk and the state of the corresponding disk into the management database of the disk cabinet if no matched identifiers are found.
Description
Technical field
The present invention relates to storage array technical field, especially a kind of disk management method of disk chassis.
Background technology
In current storage system, highdensity disk chassis (such as a point disk array Disk Array and disk cluster JBOD, are shown in figure
1) it is the information-based Typical Disposition for storing, needs to be managed collectively substantial amounts of disk.When cabinet safeguards that being related to disk inserts
When pulling out, how the confirmation disk of precise and high efficiency belongs to (belonging to which disk chassis or disk cluster), is to safeguard compact disk cabinet
Important means.When to wherein disk is safeguarded when, in disk chassis, a large amount of disks are extracted, afterwards must be original according to disk
In ownership reduction insertion disk chassis, disk chassis normally could run.
The method that tradition confirms disk identity, generally on the physical sector of disk, according to disk chassis, producer makes by oneself
Justice, writes identification of the manufacturer information.After disk insertion disk chassis, by reading the identification information, disk identity is identified.But
The method has the following disadvantages:
1st, need self-defined identity data is write on disk physical medium, take partial data memory space;
2nd, such as disk physical medium is damaged or identification information loss, then disk identity cannot confirm.
The content of the invention
The technical problem to be solved is:For above-mentioned problem, there is provided a kind of to be based on disk firmware area
The disk chassis disk personal identification method of the identifier for carrying.
A kind of disk chassis disk recognition methodss that the present invention is provided, including:
Step 1:The identifier in the firmware area of disk in insertion disk chassis is read one by one;
Step 2:The identifier and Disk State of all disks in disk chassis are corresponded to and write in disk chassis management data base;
Step 3:When certain disk is pulled out in disk chassis, the shape of the disk being pulled out in disk chassis management data base is updated
State;
Step 4:When there is disk to be inserted in disk chassis, read the identifier in the disk firmware area, and by the identifier with
The identifier in data base is managed in disk chassis to be matched, the corresponding magnetic of the identifier is updated if the identifier of matching is found
Plate-like state;By the identifier of the disk and corresponding Disk State write disk management data if the identifier of matching is not found
In storehouse;
The identifier is the character string with unique mark function in disk firmware area.
Further, the identifier is the identifier in disk firmware area in S.M.A.R.T information.
Further, the Disk State includes insert state and extracts state.
Present invention also offers a kind of disk chassis disk identifying device, including:
Identifier read module, for reading the identifier in insertion disk chassis in the firmware area of disk one by one;
Identifier writing module, for corresponding to and writing disk chassis the identifier and Disk State of all disks in disk chassis
In management data base;
Disk extracts state update module, for when in disk chassis, certain disk is pulled out, updating in disk chassis management data base
The disk being pulled out state;
Disk insert state update module, for when there is disk to be inserted in disk chassis, reading the mark in the disk firmware area
Know symbol, and the identifier is matched with the identifier in disk chassis management data base, if the identifier of matching is found
Update the corresponding Disk State of the identifier;By the identifier of the disk and corresponding disk if the identifier of matching is not found
In state write disk management data base;
The identifier is the character string with unique mark function in disk firmware area.
In sum, as a result of above-mentioned technical proposal, the invention has the beneficial effects as follows:
The present invention overcomes the defect of traditional magnetic disk identity method, disk physical medium write disk chassis manufacturer itself mark
Know data, meanwhile, the determination of disk identity relies only on disk firmware area S.M.A.R.T information, with data in magnetic disk storage medium without
Close.As the comparison of disc information is to manage to enter between database data and the disk S.M.A.R.T information of reading in disk chassis
OK, traditional magnetic disk personal identification method is contrasted, disk cylinder need not be operated to carry out data extraction, therefore, disk belongs to and identity
Identification is more efficient.
Description of the drawings
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is disk chassis storage architecture schematic diagram.
Fig. 2 is the inventive method flow chart.
Specific embodiment
All features disclosed in this specification, or disclosed all methods or during the step of, except mutually exclusive
Feature and/or step beyond, can combine by any way.
Any feature disclosed in this specification, unless specifically stated otherwise, can be equivalent or with similar purpose by other
Alternative features are replaced.I.e., unless specifically stated otherwise, each feature is an example in a series of equivalent or similar characteristics
.
Such as Fig. 2, a kind of disk chassis disk recognition methodss, including:
Step 1:The identifier in the firmware area of disk in insertion disk chassis is read one by one.The identifier of disk is disk firmware area
No. ID in middle S.M.A.R.T (Self-Monitoring Analysis and Reporting Technology) information, be
Disk producer writes disk firmware area before disk dispatches from the factory, the function with unique sign, i.e., different disk this No. ID
It is different.Disk firmware area is normally at the several physical tracks in foremost of 0 physics cylinder of disk, thus the present invention without the need for
Disk physics cylinder writes the beacon information of disk, even if the memory space and disk physical medium that are not take up disk are damaged, its
The identifier in firmware area is still present.
Step 2:The identifier of all disks and the Disk State of the disk in disk chassis is corresponded and write magnetic
In disk cabinet management data base.The Disk State at least includes insert state and extracts state.Now, the disc-shaped in data base
State is insertion.
Step 3:When certain disk is pulled out in disk chassis, disk chassis are managed into the shape of the disk being pulled out in data base
State is updated to extract.
Step 4:When there is disk to be inserted in disk chassis, the identifier in the disk firmware area is read, and this is identified
Accord with and being matched with the identifier in disk chassis management data base, identifier correspondence is updated if the identifier of matching is found
Disk State for insertion;By the identifier of the disk and corresponding Disk State write magnetic if the identifier of matching is not found
In disk management data base.
Present invention also offers a kind of and one-to-one floppy disk system of said method step.
Including:Identifier read module, for reading the identifier in insertion disk chassis in the firmware area of disk one by one;
Identifier writing module, for corresponding to and writing disk chassis the identifier and Disk State of all disks in disk chassis
In management data base;
Disk extracts state update module, for when in disk chassis, certain disk is pulled out, updating in disk chassis management data base
The disk being pulled out state;
Disk insert state update module, for when there is disk to be inserted in disk chassis, reading the mark in the disk firmware area
Know symbol, and the identifier is matched with the identifier in disk chassis management data base, if the identifier of matching is found
Update the corresponding Disk State of the identifier;By the identifier of the disk and corresponding disk if the identifier of matching is not found
In state write disk management data base.
The invention is not limited in aforesaid specific embodiment.The present invention is expanded to and any is disclosed in this manual
New feature or any new combination, and the arbitrary new method that discloses or the step of process or any new combination.
Claims (6)
1. a kind of disk chassis disk recognition methodss, it is characterised in that include:
Step 1:The identifier in the firmware area of disk in insertion disk chassis is read one by one;
Step 2:The identifier and Disk State of all disks in disk chassis are corresponded to and write in disk chassis management data base;
Step 3:When certain disk is pulled out in disk chassis, the shape of the disk being pulled out in disk chassis management data base is updated
State;
Step 4:When there is disk to be inserted in disk chassis, read the identifier in the disk firmware area, and by the identifier with
The identifier in data base is managed in disk chassis to be matched, the corresponding magnetic of the identifier is updated if the identifier of matching is found
Plate-like state;By the identifier of the disk and corresponding Disk State write disk management data if the identifier of matching is not found
In storehouse;
The identifier is the character string with unique mark function in disk firmware area.
2. a kind of disk chassis disk recognition methodss according to claim 1, it is characterised in that the identifier is solid for disk
Identifier in part area in S.M.A.R.T information.
3. a kind of disk chassis disk recognition methodss according to claim 1, it is characterised in that the Disk State includes inserting
Enter state and extract state.
4. a kind of disk chassis disk identifying device, it is characterised in that include:
Identifier read module, for reading the identifier in insertion disk chassis in the firmware area of disk one by one;
Identifier writing module, for corresponding to and writing disk chassis the identifier and Disk State of all disks in disk chassis
In management data base;
Disk extracts state update module, for when in disk chassis, certain disk is pulled out, updating in disk chassis management data base
The disk being pulled out state;
Disk insert state update module, for when there is disk to be inserted in disk chassis, reading the mark in the disk firmware area
Know symbol, and the identifier is matched with the identifier in disk chassis management data base, if the identifier of matching is found
Update the corresponding Disk State of the identifier;By the identifier of the disk and corresponding disk if the identifier of matching is not found
In state write disk management data base;
The identifier is the character string with unique mark function in disk firmware area.
5. a kind of disk chassis disk identifying device according to claim 4, it is characterised in that the identifier is solid for disk
Identifier in part area in S.M.A.R.T information.
6. a kind of disk chassis disk identifying device according to claim 4, it is characterised in that the Disk State includes inserting
Enter state and extract state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611034768.6A CN106527996A (en) | 2016-11-23 | 2016-11-23 | Disk identification method and device for disk cabinet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611034768.6A CN106527996A (en) | 2016-11-23 | 2016-11-23 | Disk identification method and device for disk cabinet |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106527996A true CN106527996A (en) | 2017-03-22 |
Family
ID=58356485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611034768.6A Pending CN106527996A (en) | 2016-11-23 | 2016-11-23 | Disk identification method and device for disk cabinet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106527996A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134341A (en) * | 2019-05-24 | 2019-08-16 | 长城超云(北京)科技有限公司 | A kind of hard disk life cycle management method of server |
CN112463504A (en) * | 2020-12-14 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Double-control storage product testing method, system, terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0798718A2 (en) * | 1996-03-29 | 1997-10-01 | Matsushita Electric Industrial Co., Ltd. | Optical disk changer system and method of managing optical disk changer |
CN102202087A (en) * | 2011-04-25 | 2011-09-28 | 中兴通讯股份有限公司 | Method for identifying storage equipment and system thereof |
CN105278882A (en) * | 2015-10-26 | 2016-01-27 | 创新科存储技术有限公司 | Disk management method of distributed file system |
-
2016
- 2016-11-23 CN CN201611034768.6A patent/CN106527996A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0798718A2 (en) * | 1996-03-29 | 1997-10-01 | Matsushita Electric Industrial Co., Ltd. | Optical disk changer system and method of managing optical disk changer |
CN102202087A (en) * | 2011-04-25 | 2011-09-28 | 中兴通讯股份有限公司 | Method for identifying storage equipment and system thereof |
CN105278882A (en) * | 2015-10-26 | 2016-01-27 | 创新科存储技术有限公司 | Disk management method of distributed file system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134341A (en) * | 2019-05-24 | 2019-08-16 | 长城超云(北京)科技有限公司 | A kind of hard disk life cycle management method of server |
CN112463504A (en) * | 2020-12-14 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Double-control storage product testing method, system, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1609984B (en) | Method and apparatus for recording data and recovering recorded data | |
CN102456101B (en) | Genetic information management system and method | |
US10255235B2 (en) | Database storage system based on jukebox and method using the system | |
JP4891418B2 (en) | Recording method | |
CN109213817B (en) | Incremental data abstracting method, device and server | |
US6625732B1 (en) | Method for tracking the devices used to load, read, and write removable storage media | |
CA2575418A1 (en) | Information recording medium, recording/ reproducing apparatus, and recording/ reproducing method | |
CA2512446A1 (en) | Write once type recording medium, recording device and recording method for write once type recording medium, and reproduction device and reproduction method for write once type recording medium | |
CN104462433B (en) | A kind of method of recovery FAT32 partition datas | |
CN106155589B (en) | A kind of virtual dynamic partition image file generation method and system | |
CN106527996A (en) | Disk identification method and device for disk cabinet | |
CN107943723A (en) | A kind of hard disc of computer recognition methods and system | |
KR101148097B1 (en) | System and method for writing data and a time value to an addressable unit of a removable storage medium | |
CN104239438A (en) | File information storage method and file information read-write method based on separate storage | |
CN102385610B (en) | Digital hard disc video recorder video file is preserved method and the system thereof recovered with data | |
CN104407821B (en) | A kind of method and device for realizing RAID reconstruction | |
CN109254971A (en) | Resource inventory method and device | |
RU2010145181A (en) | NON-RECORDABLE INFORMATION RECORDING MEDIA, INFORMATION RECORDING DEVICE, INFORMATION RECORDING METHOD, INFORMATION PLAYBACK DEVICE AND METHOD OF PLAYBACK | |
AU2018345147B2 (en) | Database processing device, group map file production method, and recording medium | |
CN100437534C (en) | Drive tracking system for removable media | |
CN104598164B (en) | CD exchanges the CD server system separated with data storage and data read-write method | |
CN106776144B (en) | Method for repairing hard disk after firmware access is closed | |
CN105354149A (en) | Memory data search method and apparatus | |
CN105830067A (en) | Document information processing method, apparatus, and document processing apparatus and system | |
US20070168838A1 (en) | Reproduction apparatus and method for reproducing a unique medium identifier |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170322 |
|
RJ01 | Rejection of invention patent application after publication |