CN101876885A - Method and device for allocating logical DOS drives - Google Patents

Method and device for allocating logical DOS drives Download PDF

Info

Publication number
CN101876885A
CN101876885A CN2010102117986A CN201010211798A CN101876885A CN 101876885 A CN101876885 A CN 101876885A CN 2010102117986 A CN2010102117986 A CN 2010102117986A CN 201010211798 A CN201010211798 A CN 201010211798A CN 101876885 A CN101876885 A CN 101876885A
Authority
CN
China
Prior art keywords
logical dos
dos drives
hard disc
disc physical
physical sign
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
CN2010102117986A
Other languages
Chinese (zh)
Other versions
CN101876885B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010211798.6A priority Critical patent/CN101876885B/en
Publication of CN101876885A publication Critical patent/CN101876885A/en
Priority to PCT/CN2011/075832 priority patent/WO2011157219A1/en
Application granted granted Critical
Publication of CN101876885B publication Critical patent/CN101876885B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures

Abstract

The invention discloses a method and a device for allocating logical DOS drives, which are used for solving the problem that logical DOS drives allocated by a system to physical hard disks may be inconsistent before and after the restart of the system in the prior art, as a result of which the corresponding physical hard disks can not be found based on the logical DOS drives. The method for allocating the logical DOS drives comprises the following steps: after starting the system, determining logical DOS drives corresponding to hard disk physical identities based on the saved correspondence relationship between the hard disk physical identities and the logical DOS drives; and allocating the determined logical DOS drives to the corresponding hard disk physical identities. By using the method, the correspondence relationship between the hard disk physical identities and the logical DOS drives can be kept consistent before and after the restart of the system, thereby, the corresponding physical hard disks can be found based on the logical DOS drives, thus further improving the efficiency of finding faulty hard disks.

Description

A kind of method and apparatus of assignment logic drive
Technical field
The present invention relates to technical field of data storage, particularly a kind of method and apparatus of assignment logic drive.
Background technology
In the server that connects a plurality of hard disks, system is the logical DOS drives that physical hard disk distributes, and inconsistent situation might occur before and after restarting in system.This variation of logical DOS drives when needs use software that a plurality of hard disks are managed, owing to can only discern the corresponding physical hard disk by logical DOS drives, can bring very big difficulty to management.
Abnormal conditions appear such as certain piece hard disk, after the system restart, because variation has taken place in its logical DOS drives, and abnormal conditions not reproduction temporarily again, be difficult to this moment determine which piece hard disk has taken place unusually.
Give an example: three hard disks are arranged on certain blade server, and before hard disk was not out of order, the hard disk that system identification goes out was as follows:
Hard disk sequence number logical DOS drives
9QJ37WQ1 /dev/sdb
9QJ3AKBW /dev/sdc
9QJ39ZZY /dev/sdd
(wherein, the hard disk sequence number can the unique identification hard disk.)
This moment is if some mistake takes place in 9QJ37WQ1.Restart system, driver is a hard disk assignment logic drive, and the hard disk that system identification goes out is as follows:
Hard disk sequence number logical DOS drives
9QJ3AKBW /dev/sdb
9QJ39ZZY /dev/sdc
9QJ37WQ1 /dev/sdd
Because pairing hard disk changed before and after sdb was restarted in system, broke down and only put down in writing sdb in the system journal, did not put down in writing the hard disk sequence number of sdb correspondence, be difficult to therefore determine that problem has taken place which piece hard disk.Usually the way that solves is: after hard disk occurs unusually, manually go to the hard disk storing scene to check hard disk sequence number or hard disc physical position, need pull up hard disk in case of necessity to check, waste time and energy, efficient is very low.
In sum, because system is the logical DOS drives that physical hard disk distributes, inconsistent situation might occur before and after restarting in system in the prior art, can't find the corresponding physical hard disk by logical DOS drives.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of assignment logic drive, in order to solve in the prior art because system is the logical DOS drives that physical hard disk distributes, restart front and back in system and inconsistent situation might occur, can't find the problem of corresponding physical hard disk by logical DOS drives.
The method of a kind of assignment logic drive that the embodiment of the invention provides comprises:
After system start-up,, determine the corresponding logical DOS drives of hard disc physical sign according to the hard disc physical sign of preserving and the corresponding relation of logical DOS drives;
The logical DOS drives of determining is distributed to corresponding hard disc physical sign.
This method is set up the corresponding relation of hard disc physical sign and logical DOS drives according to the following step:
With system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
This method also comprises:
After changing hard disk or newly-increased hard disk, the described corresponding relation that deletion has been set up, with system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence, and rebulids the corresponding relation of hard disc physical sign and logical DOS drives; Or
After changing hard disk or newly-increased hard disk,, and upgrade the corresponding relation of having set up for hard disk or the newly-increased hard disk changed are redistributed a logical DOS drives.
The logical DOS drives of determining is distributed to before the hard disc physical sign of correspondence, is also comprised:
Determine that the current logical DOS drives of distributing to hard disc physical sign of system identifies with hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives different.
The corresponding relation of hard disc physical sign and logical DOS drives is recorded in the CONFIG.SYS.
The equipment of a kind of assignment logic drive that the embodiment of the invention provides comprises:
Determination module is used for after system start-up, according to the hard disc physical sign of preserving and the corresponding relation of logical DOS drives, determines the corresponding logical DOS drives of hard disc physical sign;
Distribution module is used for the logical DOS drives of determining is distributed to corresponding hard disc physical sign.
This equipment also comprises:
The opening relationships module, being used for system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
This equipment also comprises:
Update module, be used for after changing hard disk or newly-increased hard disk, the described corresponding relation that deletion has been set up is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence with system, and rebulids the corresponding relation of hard disc physical sign and logical DOS drives; Or
After changing hard disk or newly-increased hard disk,, and upgrade the corresponding relation of having set up for hard disk or the newly-increased hard disk changed are redistributed a logical DOS drives.
Distribution module specifically is used for:
In determining the corresponding relation of the current logical DOS drives of distributing to the hard disc physical sign of system and hard disc physical sign and logical DOS drives corresponding logical DOS drives different after, the hard disc physical of definite logical DOS drives being distributed to correspondence identifies.
The opening relationships module also is used for:
The corresponding relation of hard disc physical sign and logical DOS drives is recorded in the CONFIG.SYS.
Because the embodiment of the invention by after system start-up, is determined the corresponding logical DOS drives of hard disc physical sign according to the corresponding relation between hard disc physical sign of preserving and the logical DOS drives; The logical DOS drives of determining is distributed to corresponding hard disc physical sign.Corresponding relation between hard disc physical sign and the logical DOS drives is consistent before and after restarting in system, thereby can finds the corresponding physical hard disk, further improve and search the efficient that faulty hard disk is arranged by logical DOS drives.
Description of drawings
Fig. 1 is the method synoptic diagram of embodiment of the invention assignment logic drive;
Fig. 2 sets up hard disc physical sign and the corresponding relation of logical DOS drives and the method flow synoptic diagram of assignment logic drive for the embodiment of the invention;
Fig. 3 is the device structure synoptic diagram of embodiment of the invention assignment logic drive.
Embodiment
The method of a kind of assignment logic drive that the embodiment of the invention provides is by determining the corresponding logical DOS drives of hard disc physical sign according to the corresponding relation between hard disc physical sign that sets in advance and the logical DOS drives; The logical DOS drives of determining is distributed to corresponding hard disc physical sign.Corresponding relation between hard disc physical sign and the logical DOS drives is consistent before and after restarting in system, thereby can finds the corresponding physical hard disk by logical DOS drives.
As shown in Figure 1, the method for a kind of assignment logic drive that the embodiment of the invention provides comprises the steps:
Step 101, after system start-up, according to the hard disc physical sign of preserving and the corresponding relation of logical DOS drives, determine the logical DOS drives of hard disc physical sign correspondence.
Step 102, the logical DOS drives of determining is distributed to corresponding hard disc physical sign.
In the step 101, hard disc physical sign can be that the sequence number of hard disk etc. can unique sign of determining a hard disk.In system, the corresponding logical DOS drives of hard disc physical sign, the different corresponding different logical DOS drives of hard disc physical sign.
The corresponding relation of hard disc physical sign and logical DOS drives can be determined according to following steps:
1, initially set up the corresponding relation of hard disc physical sign and logical DOS drives:
Restarting driver automatically for behind the hard disk assignment logic drive in system, is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence with system, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
The step that concrete corresponding relation is set up can be carried out before step 101 or in the step 101.
Wherein, the corresponding relation of initially setting up hard disc physical sign and logical DOS drives can be after system start-up, and the step of this corresponding relation is set up in triggering when determining not preserve the corresponding relation of hard disc physical sign and logical DOS drives.
Concrete, after driver is hard disk assignment logic drive automatically, read the hard disc physical sign of each logical DOS drives correspondence, determine not preserve the corresponding relation of hard disc physical sign and logical DOS drives, with system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
2, rebulid the corresponding relation of hard disc physical sign and logical DOS drives:
After changing hard disk or newly-increased hard disk, the corresponding relation that deletion has been set up is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence with system, and rebulids the corresponding relation of hard disc physical sign and logical DOS drives; Or
After changing hard disk or newly-increased hard disk, keep the corresponding relation of having set up, for hard disk or the newly-increased hard disk changed are redistributed a logical DOS drives, and upgrade the corresponding relation of having set up.
Concrete corresponding relation updating steps can be before step 101, in the step 101, between step 101 and the step 102, carry out in the step 102 or after the step 102.
Wherein, the corresponding relation that rebulids hard disc physical sign and logical DOS drives can be at the corresponding relation of determining to have preserved hard disc physical sign and logical DOS drives, and current triggering when new hard disc physical sign (promptly determining replacing hard disk or newly-increased hard disk) is arranged.
The example that rebulids corresponding relation behind the newly-increased hard disk is as follows:
Two hard disks are arranged, and the corresponding relation of having preserved is:
9QJ37WQ1 /dev/sdb;
9QJ3AKBW /dev/sdc;
Increased a hard disk 9QJ39ZZY newly, the situation of system assignment is:
9QJ3AKBW /dev/sdb;
9QJ39ZZY /dev/sdc;
9QJ37WQ1 /dev/sdd;
At this moment, the logical DOS drives in the corresponding relation does not have/dev/sdd, then/dev/sdd can be distributed to the hard disk 9QJ39ZZY that increases newly, and the corresponding relation that rebulids is:
9QJ37WQ1 /dev/sdb;
9QJ3AKBW /dev/sdc;
9QJ39ZZY /dev/sdd。
Can be when changing hard disk with the logical DOS drives of the hard disk correspondence that replaces logical DOS drives as new hard disk correspondence, mode and top similar does not repeat them here.
Further, the hard disc physical sign of foundation and the corresponding relation of logical DOS drives can be recorded in the configuration file of system.
In the step 102, the logical DOS drives of determining is distributed to corresponding hard disc physical label manner can be adopted to increase in system and remap module, remap module by operation after system start-up, according to the hard disc physical sign of setting up in advance and the corresponding relation of logical DOS drives, the logical DOS drives of determining is distributed to corresponding hard disc physical sign.
It is emphasized that, the logical DOS drives of determining is distributed to corresponding hard disc physical label manner be not limited to increase the mode that remaps module, other can be distributed to the logical DOS drives of determining corresponding hard disc physical label manner and be suitable for the embodiment of the invention too.
Further, when the logical DOS drives of determining is redistributed hard disc physical sign to correspondence, the logical DOS drives of determining can be replaced current logical DOS drives; Also can delete current all corresponding logical DOS drives of hard disc physical sign earlier, then the logical DOS drives of determining be distributed to corresponding hard disc physical sign.
For conserve system resources, preferably, before can and redistributing logical DOS drives at the corresponding logical DOS drives of the current all hard disc physical sign of deletion, the current logical DOS drives of distributing to the hard disc physical sign of system identified with hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives compare.
Concrete, the logical DOS drives that if system is current to distribute to the hard disc physical sign identifies with hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives identical, then do not delete current all corresponding logical DOS drives of hard disc physical sign, the logical DOS drives that retention system has distributed;
The logical DOS drives that if system is current to distribute to the hard disc physical sign identifies with hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives inequality, then delete current all corresponding logical DOS drives of hard disc physical sign, corresponding relation according to hard disc physical sign and logical DOS drives is hard disc physical identification distribution logical DOS drives.
As shown in Figure 2, it is as follows that the embodiment of the invention is set up the method flow of the corresponding relation of hard disc physical sign and logical DOS drives and assignment logic drive:
Step 201, system start-up, driver are that the hard disc physical that identifies identifies automatic assignment logic drive.
Step 202, read the hard disc physical sign of current each hard disk logical DOS drives correspondence.
Step 203, judge whether to exist the corresponding relation of hard disc physical sign and logical DOS drives, if, execution in step 204; Otherwise, execution in step 206.
Step 204, judge whether new hard disc physical sign, if, execution in step 205; Otherwise, execution in step 207.
Wherein, when changing hard disk or newly-increased hard disk, determine new hard disc physical sign.
The corresponding relation of step 205, the already present hard disc physical sign of deletion and logical DOS drives.
Step 206, with system be the logical DOS drives of each hard disc physical identification distribution as the corresponding logical DOS drives of each hard disc physical sign, and set up the corresponding relation of hard disc physical sign and logical DOS drives.
Whether step 207, more current system be identical for the logical DOS drives that each physical label is corresponding in each physical label logical DOS drives that distributes and the corresponding relation of having set up, if not change system is the logical DOS drives of each physical label distribution; If not, execution in step 208.
The corresponding relation that step 208, basis have been set up is each physical label assignment logic drive.
Need to prove that Fig. 2 only is a preferred embodiment of the present invention, not in order to restriction the present invention.The corresponding relation of when setting up or upgrading hard disc physical sign and logical DOS drives also is not limited to the sequential described in Fig. 2, sets up or upgrades that hard disc physical identifies and the corresponding relation of logical DOS drives is applicable to the embodiment of the invention too with other sequential.
As shown in Figure 3, the equipment of the assignment logic drive that the embodiment of the invention provides comprises: determination module 301 and distribution module 302.
Determination module 301 is used for after system start-up, according to the hard disc physical sign of preserving and the corresponding relation of logical DOS drives, determines the corresponding logical DOS drives of hard disc physical sign.
Distribution module 302 is used for the logical DOS drives of determining is distributed to corresponding hard disc physical sign.
Wherein, hard disc physical sign can be that the sequence number etc. of hard disk can unique sign of determining a hard disk.In system, the corresponding logical DOS drives of hard disc physical sign, the different corresponding different logical DOS drives of hard disc physical sign.
Further, the equipment of assignment logic drive provided by the invention can further include:
Opening relationships module 303, be used for restarting driver automatically for behind the hard disk assignment logic drive in system, with system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
Concrete, after driver is hard disk assignment logic drive automatically, read the hard disc physical sign of each logical DOS drives correspondence, with system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
Further, the equipment of assignment logic drive provided by the invention can further include:
Update module 304, be used for after changing hard disk or newly-increased hard disk, the corresponding relation that deletion has been set up is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as this hard disc physical sign correspondence with system, and rebulids the corresponding relation of hard disc physical sign and logical DOS drives; Or
After changing hard disk or newly-increased hard disk, keep the corresponding relation of having set up, for hard disk or the newly-increased hard disk changed are redistributed a logical DOS drives, and upgrade the corresponding relation of having set up.
Further, opening relationships module 303 and update module 304 can record the corresponding relation of hard disc physical sign and logical DOS drives in the configuration file of system.
Wherein, distribution module 302 can directly be distributed to the logical DOS drives of determining corresponding hard disc physical sign, can also the logical DOS drives of determining be distributed to corresponding hard disc physical sign by the module that remaps in the system.
If by the module that remaps in the system, the equipment of assignment logic drive then provided by the invention can further include: remap module 305.
Distribution module 302 can be called and remap module 305 when the logical DOS drives of determining being distributed to corresponding hard disc physical sign.
Remapping module 305, be used for after being called, is hard disc physical identification distribution logical DOS drives according to the hard disc physical sign of having set up and the corresponding relation of logical DOS drives.
Further, when the logical DOS drives of determining is redistributed hard disc physical sign to correspondence, the logical DOS drives of determining can be replaced current logical DOS drives; Also can delete current all corresponding logical DOS drives of hard disc physical sign earlier, then the logical DOS drives of determining be distributed to corresponding hard disc physical sign.
For conserve system resources, preferably, before distribution module 302 can and be redistributed logical DOS drives at the corresponding logical DOS drives of the current all hard disc physical sign of deletion, the current logical DOS drives of distributing to the hard disc physical sign of system identified with hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives compare.
Concrete, the logical DOS drives that if system is current to distribute to the hard disc physical sign identifies with hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives identical, then distribution module 302 is not deleted current all corresponding logical DOS drives of hard disc physical sign, the logical DOS drives that retention system has distributed;
The logical DOS drives that if system is current to distribute to the hard disc physical sign identifies with hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives inequality, then the current all hard disc physicals of distribution module 302 deletions identify corresponding logical DOS drives, corresponding relation according to hard disc physical sign and logical DOS drives is hard disc physical identification distribution logical DOS drives.
Wherein, distribution module 302 can have 3 interfaces, and promptly first interface is realized, second interface is realized and the 3rd interface is realized.The logical DOS drives of determining is distributed to corresponding hard disc physical sign to be realized by first interface; Deleting current all corresponding logical DOS drives of hard disc physical sign is realized by second interface; The current logical DOS drives of distributing to hard disc physical sign of system identified with hard disc physical and the corresponding relation of logical DOS drives compares by the 3rd interface and realizes.
The function of first interface, second interface and the 3rd interface can be realized by two interfaces, also can be realized by an interface.
Opening relationships module 303 can have two interfaces, i.e. the 4th interface and the 5th interface, and the hard disc physical sign that reads each logical DOS drives correspondence is realized by the 4th interface; Setting up the corresponding relation of hard disc physical sign and logical DOS drives is realized by the 5th interface;
The function of the 4th interface and the 5th interface can be realized by an interface.
Update module 304 can have three interfaces, i.e. the 6th interface, the 7th interface and the 8th interface, and the hard disc physical sign that reads each logical DOS drives correspondence is realized by the 6th interface; Upgrading the corresponding relation of hard disc physical sign and logical DOS drives is realized by the 7th interface; The corresponding relation that deletion has been set up is realized by the 8th interface.
The function of the 6th interface, the 7th interface and the 8th interface can be realized by two interfaces, also can be realized by an interface.
In addition, the 4th interface and the 6th interface can be same interfaces, also can be different interfaces.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware embodiment, complete software implementation example or in conjunction with the form of the embodiment of software and hardware aspect.And the present invention can adopt the form that goes up the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The present invention is that reference is described according to the process flow diagram and/or the block scheme of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block scheme and/or square frame and process flow diagram and/or the block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make on computing machine or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of carrying out on computing machine or other programmable devices is provided for being implemented in the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Although described the preferred embodiments of the present invention, in a single day those skilled in the art get the basic creative notion of cicada, then can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
From the foregoing description as can be seen: the current location information that embodiment of the invention map server obtains user terminal is a primary importance information; Map server is according to the second place information of the destination of described primary importance information and described user terminal correspondence, determine the distance of the position and the destination of user terminal, when the distance of determining during less than threshold value, send reminder message to user terminal, the user is near the destination in the indicating user terminal prompting.
Because the embodiment of the invention after system start-up, is determined the corresponding logical DOS drives of hard disc physical sign according to the corresponding relation between hard disc physical sign of preserving and the logical DOS drives; The logical DOS drives of determining is distributed to corresponding hard disc physical sign.Corresponding relation between hard disc physical sign and the logical DOS drives is consistent before and after restarting in system, thereby can finds the corresponding physical hard disk, further improve and search the efficient that faulty hard disk is arranged by logical DOS drives.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. the method for an assignment logic drive is characterized in that, this method comprises:
After system start-up,, determine the corresponding logical DOS drives of described hard disc physical sign according to the hard disc physical sign of preserving and the corresponding relation of logical DOS drives;
The described logical DOS drives of determining is distributed to corresponding hard disc physical sign.
2. the method for claim 1 is characterized in that, described corresponding relation is set up according to following manner:
With system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as described hard disc physical sign correspondence, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
3. method as claimed in claim 1 or 2 is characterized in that, described corresponding relation upgrades according to following manner:
After changing hard disk or newly-increased hard disk, the described corresponding relation that deletion has been set up, with system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as described hard disc physical sign correspondence, and rebulids the corresponding relation of hard disc physical sign and logical DOS drives; Or
After changing hard disk or newly-increased hard disk,, and upgrade the corresponding relation of having set up for hard disk or the newly-increased hard disk changed are redistributed a logical DOS drives.
4. method as claimed in claim 1 or 2 is characterized in that, the described described logical DOS drives that will determine is distributed to before the corresponding hard disc physical sign, also comprises:
Determine that the current logical DOS drives of distributing to described hard disc physical sign of system identifies with described hard disc physical and the corresponding relation of logical DOS drives in corresponding logical DOS drives different.
5. method as claimed in claim 1 or 2 is characterized in that, the corresponding relation of described hard disc physical sign and logical DOS drives is recorded in the CONFIG.SYS.
6. the equipment of an assignment logic drive is characterized in that, this equipment comprises:
Determination module is used for after system start-up, according to the hard disc physical sign of preserving and the corresponding relation of logical DOS drives, determines the corresponding logical DOS drives of described hard disc physical sign;
Distribution module is used for the described logical DOS drives of determining is distributed to corresponding hard disc physical sign.
7. equipment as claimed in claim 6 is characterized in that, described equipment also comprises:
The opening relationships module, being used for system is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as described hard disc physical sign correspondence, and sets up the corresponding relation of hard disc physical sign and logical DOS drives.
8. as claim 6 or 7 described equipment, it is characterized in that described equipment also comprises:
Update module, be used for after changing hard disk or newly-increased hard disk, the described corresponding relation that deletion has been set up is the logical DOS drives of the logical DOS drives of each hard disc physical identification distribution as described hard disc physical sign correspondence with system, and rebulids the corresponding relation of hard disc physical sign and logical DOS drives; Or
After changing hard disk or newly-increased hard disk,, and upgrade the corresponding relation of having set up for hard disk or the newly-increased hard disk changed are redistributed a logical DOS drives.
9. as claim 6 or 7 described equipment, it is characterized in that described distribution module specifically is used for:
In determining the corresponding relation of the current logical DOS drives of distributing to described hard disc physical sign of system and described hard disc physical sign and logical DOS drives corresponding logical DOS drives different after, the hard disc physical of definite described logical DOS drives being distributed to correspondence identifies.
10. equipment as claimed in claim 7 is characterized in that, described opening relationships module also is used for:
The corresponding relation of described hard disc physical sign and logical DOS drives is recorded in the CONFIG.SYS.
CN201010211798.6A 2010-06-18 2010-06-18 A kind of method and apparatus of assignment logic drive Expired - Fee Related CN101876885B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010211798.6A CN101876885B (en) 2010-06-18 2010-06-18 A kind of method and apparatus of assignment logic drive
PCT/CN2011/075832 WO2011157219A1 (en) 2010-06-18 2011-06-16 Method and device for distributing logic disk letter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010211798.6A CN101876885B (en) 2010-06-18 2010-06-18 A kind of method and apparatus of assignment logic drive

Publications (2)

Publication Number Publication Date
CN101876885A true CN101876885A (en) 2010-11-03
CN101876885B CN101876885B (en) 2015-11-25

Family

ID=43019452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010211798.6A Expired - Fee Related CN101876885B (en) 2010-06-18 2010-06-18 A kind of method and apparatus of assignment logic drive

Country Status (2)

Country Link
CN (1) CN101876885B (en)
WO (1) WO2011157219A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156830A (en) * 2011-03-15 2011-08-17 北京思创银联科技股份有限公司 Method for mapping logical device name to drive letter
WO2011157219A1 (en) * 2010-06-18 2011-12-22 中兴通讯股份有限公司 Method and device for distributing logic disk letter
CN102789371A (en) * 2012-07-27 2012-11-21 曙光信息产业(北京)有限公司 Method for distributing disk identifier of hard disk
CN102830941A (en) * 2012-06-15 2012-12-19 记忆科技(深圳)有限公司 Solid-state hard disk driving method and storage system
CN103150126A (en) * 2013-02-28 2013-06-12 北京百度网讯科技有限公司 Disc character correct allocation method and device based on disc under Linux
CN103218279A (en) * 2013-03-08 2013-07-24 福建星网视易信息系统有限公司 Method for managing hard discs of embedded system
CN103823730A (en) * 2014-02-27 2014-05-28 山东超越数控电子有限公司 Drive detecting method based on domestic disc array
CN106469103A (en) * 2015-08-14 2017-03-01 华为软件技术有限公司 The maintaining method of hard disk and device
CN106815154A (en) * 2017-01-16 2017-06-09 联想(北京)有限公司 A kind of method and device of the mark for recognizing hard disk
CN108459823A (en) * 2017-07-28 2018-08-28 紫光华山信息技术有限公司 A kind of installation method and device of operating system
CN108733501A (en) * 2017-04-14 2018-11-02 优估(上海)信息科技有限公司 A kind of drive bearing calibration, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11144442A (en) * 1997-11-13 1999-05-28 Sony Corp Disk recording apparatus and disk reproducing apparatus and disk
US20050086528A1 (en) * 2003-10-21 2005-04-21 Aladdin Knowledge Systems Ltd. Method for hiding information on a computer
US20070011579A1 (en) * 2002-05-24 2007-01-11 Hitachi, Ltd. Storage system, management server, and method of managing application thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010097563A (en) * 2008-10-20 2010-04-30 Nec Corp Network storage system, disk array device, host device, access control method, and data access method
CN101876885B (en) * 2010-06-18 2015-11-25 中兴通讯股份有限公司 A kind of method and apparatus of assignment logic drive

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11144442A (en) * 1997-11-13 1999-05-28 Sony Corp Disk recording apparatus and disk reproducing apparatus and disk
US20070011579A1 (en) * 2002-05-24 2007-01-11 Hitachi, Ltd. Storage system, management server, and method of managing application thereof
US20050086528A1 (en) * 2003-10-21 2005-04-21 Aladdin Knowledge Systems Ltd. Method for hiding information on a computer

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011157219A1 (en) * 2010-06-18 2011-12-22 中兴通讯股份有限公司 Method and device for distributing logic disk letter
CN102156830A (en) * 2011-03-15 2011-08-17 北京思创银联科技股份有限公司 Method for mapping logical device name to drive letter
CN102830941B (en) * 2012-06-15 2016-03-30 记忆科技(深圳)有限公司 The driving method of solid state hard disc and storage system thereof
CN102830941A (en) * 2012-06-15 2012-12-19 记忆科技(深圳)有限公司 Solid-state hard disk driving method and storage system
CN102789371A (en) * 2012-07-27 2012-11-21 曙光信息产业(北京)有限公司 Method for distributing disk identifier of hard disk
CN103150126A (en) * 2013-02-28 2013-06-12 北京百度网讯科技有限公司 Disc character correct allocation method and device based on disc under Linux
CN103150126B (en) * 2013-02-28 2016-02-10 北京百度网讯科技有限公司 Based on character correct allocation method and the device of the disk under Linux
CN103218279A (en) * 2013-03-08 2013-07-24 福建星网视易信息系统有限公司 Method for managing hard discs of embedded system
CN103823730A (en) * 2014-02-27 2014-05-28 山东超越数控电子有限公司 Drive detecting method based on domestic disc array
CN106469103A (en) * 2015-08-14 2017-03-01 华为软件技术有限公司 The maintaining method of hard disk and device
CN106469103B (en) * 2015-08-14 2019-10-18 华为软件技术有限公司 The maintaining method and device of hard disk
CN106815154A (en) * 2017-01-16 2017-06-09 联想(北京)有限公司 A kind of method and device of the mark for recognizing hard disk
CN108733501A (en) * 2017-04-14 2018-11-02 优估(上海)信息科技有限公司 A kind of drive bearing calibration, device, equipment and computer readable storage medium
CN108459823A (en) * 2017-07-28 2018-08-28 紫光华山信息技术有限公司 A kind of installation method and device of operating system
CN108459823B (en) * 2017-07-28 2020-08-04 新华三信息技术有限公司 Installation method and device of operating system
US11106443B2 (en) 2017-07-28 2021-08-31 New H3C Information Technologies Co., Ltd. Operating system installation

Also Published As

Publication number Publication date
CN101876885B (en) 2015-11-25
WO2011157219A1 (en) 2011-12-22

Similar Documents

Publication Publication Date Title
CN101876885A (en) Method and device for allocating logical DOS drives
CN102981931B (en) Backup method and device for virtual machine
WO2016165597A1 (en) Processing method and device for data storage
CN103473142B (en) Virtual machine migration method under a kind of cloud computing operating system and device
EP2998861A1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
CN106844583B (en) Optimization method for establishing FAT file system on NOR Flash
CN102096561B (en) Hierarchical data storage processing method, device and storage equipment
CN102521289B (en) File synchronization method, device and system
CN105574141B (en) Method and device for carrying out data migration on database
US10795579B2 (en) Methods, apparatuses, system and computer program products for reclaiming storage units
CN104657378A (en) File cache method and device
CN104899049A (en) File deletion method and device
CN103559139A (en) Data storage method and device
CN104040512A (en) Method and device for processing storage space and non-volatile computer readable storage medium
CN103713926B (en) Method and system for updating software of client in advance
CN114237519A (en) Method, device, equipment and medium for migrating object storage data
CN104793981A (en) Online snapshot managing method and device for virtual machine cluster
CN104268097A (en) Metadata processing method and system
CN102419734A (en) Method and device for storing data
US11176089B2 (en) Systems and methods for implementing dynamic file systems
CN104808953A (en) Device and method for controlling data storage and mobile terminal
CN117033268A (en) SSD controller, data processing method, device and storage medium
CN102708107A (en) Method and system for storing appended files
CN107688442B (en) Virtual block management method for solid state disk
CN107422991B (en) Storage strategy management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151125

Termination date: 20200618