CN101063946A - Management method of equipment locking down - Google Patents

Management method of equipment locking down Download PDF

Info

Publication number
CN101063946A
CN101063946A CN 200610074949 CN200610074949A CN101063946A CN 101063946 A CN101063946 A CN 101063946A CN 200610074949 CN200610074949 CN 200610074949 CN 200610074949 A CN200610074949 A CN 200610074949A CN 101063946 A CN101063946 A CN 101063946A
Authority
CN
China
Prior art keywords
equipment
locking
management node
management
lock
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
Application number
CN 200610074949
Other languages
Chinese (zh)
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.)
Inventec Corp
Original Assignee
Inventec 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 Inventec Corp filed Critical Inventec Corp
Priority to CN 200610074949 priority Critical patent/CN101063946A/en
Publication of CN101063946A publication Critical patent/CN101063946A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This invention discloses one device lock management method, which comprises the following steps: using at least one management point to record multiple devices relationship between each management point; when it operates one device and accordingly recording layer relationship according to relative management point and finding other points to judge whether to process lock management method on device to ensure utility in multi-task operation environment.

Description

A kind of management method of equipment locking down
Technical field
The present invention relates to a kind of management method of equipment locking down, utilize at least one management node record corresponding to the hierarchical relationship of a plurality of equipment rooms of this management node respectively, to carry out the method for equipment lock management.
Background technology
In the field that stores, often need multiple logical device, these logical device are the multilayer level normally, promptly sets up new logical device on logical device, for example sets up disk array with two hard disks.And nearly all operation to storage facilities (for example read, write, deletion etc.) all needs these equipment are locked, in order to avoid be interfered in the process of operation, causes the mistake of reading and writing data.
The locked condition of multilayer level has following two kinds at present, the one, lock after the equipment, with this device-dependent all devices all with locked and can not use, another then is after equipment of locking, build on this equipment on miscellaneous equipment still can continue to use.
And management method of equipment locking down often adopts following dual mode at present, the one, and operation mutual exclusion locking, the 2nd, specific installation locking.First kind operation mutual exclusion lock mode is when equipment is write or deletes, and does not allow other any operation of all devices; Second kind specific installation lock mode is to generate different locks (for example file, signal etc.) at different equipment, before will using equipment, check whether this equipment has and represent the lock of this equipment to be generated,, do not allow to operate if having then lockedly for this equipment.But two kinds of above-mentioned lock management modes all have problem separately to exist, and first kind operation mutual exclusion lock mode significantly can make the service efficiency of equipment reduce because all devices is all locked; Second kind specific installation lock mode then is that relevant device all needs to lock when the relative subset of locking one equipment, and its management process is loaded down with trivial details and complexity is high.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of management method of equipment locking down, utilize at least one management node record corresponding to the hierarchical relationship of a plurality of equipment rooms of this management node respectively to carry out lock management, when desire is operated an equipment, the hierarchical relationship that will be write down according to the pairing management node of this equipment, look for and related other management node of this equipment, judged whether the locked locked in the lump and restriction apparatus operating lock management method of this equipment that makes of lower floor's equipment, so can reach quick lock in equipment and learn the locking kind fast, make and in the environment of multi-job operation with under the prerequisite that guarantees device security, to improve utilization rate.
For achieving the above object, the disclosed method of the present invention, include the following step: the request that at first detects operation one equipment produces, operation of the present invention, include and read, write, access actions such as deletion, then the operation associated numbering according to the management node of this equipment begins to look for the management node that is associated with this equipment, looking for the locking kind that can obtain this equipment after finishing, thereby can judge whether to operate this equipment, after judgement can be carried out requested operation, on the management node of this equipment, set corresponding locking kind, the last locking kind that deletion is set after complete operation.Because said method does not need the locking kind to each each equipment of equipment inspection, therefore can make the speed of setting or obtain the locking kind of equipment obviously promote.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Figure 1A is the method flow diagram of the management method of equipment locking down that the present invention carried;
Figure 1B is the method flow diagram of obtaining the locking kind that the present invention carried;
Fig. 2 is the management node synoptic diagram that the present invention carried;
The logical device Organization Chart that Fig. 3 carries for the embodiment of the invention.
Wherein, Reference numeral:
Step 110 produces management node
The request of step 120 detecting operation equipment
Step 130 reads management node
Step 140 obtains the locking kind
Step 141 reads management node
Step 142 judges whether the locking kind is non-locking
Step 143 judges whether related management node
But step 150 judges whether operating equipment
Step 160 locking device
Step 180 unlocks
Step 190 deletion management node
200: management node
220: Action number
230: operation associated numbering
240: lock token
200A: first management node, first disk
200B: second management node, second disk
200C: the 3rd management node, the 3rd disk
200E: the 5th management node, first disk array
200F: the 6th management node, the first nonmagnetic disk array
200G: the 7th management node, first storage area
200H: the 8th management node, first stores block
200I: the 9th management node, second stores block
Embodiment
Below operation workflow of the present invention will be described.Locking kind of the present invention includes non-locking, shares locking, monopolizes locking, locks fully.Non-locking can carry out all operations; Share locking, occur in equipment read in, the equipment that is set allows to read, relevant equipment can allow to read or write; Monopolize locking, occur in equipment write in, the equipment that is set does not allow all operations, relevant equipment can allow to read or write; Locking fully, occur in equipment deleted in, equipment that is set and relevant device thereof do not allow all operations.
Shown in Figure 1A, the present invention at first can detect the request whether operating equipment is arranged and produce, if there is this request to produce (step 120), then read management node 200 (step 130) corresponding to this equipment, management node wherein of the present invention as shown in Figure 2, include Action number 220, operation associated numbering 230, lock token 240, then begin to look for the management node of the miscellaneous equipment relevant with this equipment according to the operation associated numbering 230 of management node 200, to obtain the locking kind (step 140) of this equipment, then judge whether and to carry out requested operation (step 150) to this equipment according to this locking kind, if can carry out requested operation, then set locking kind (step 160) corresponding to requested operation at the lock token 240 of management node 200, after requested operation is finished, remove the locking kind (step 180) that step 160 sets at last.Then explanation obtains the detailed process of locking kind (step 140), shown in Figure 1B, read the management node 200 (step 141) of this equipment correspondence, then judge the lock token 240 of the management node 200 of this equipment, judge whether not to be set to as yet locking (step 142), if not, then can whether record operation associated numbering 230 (step 143) at the management node 200 of judging this equipment, if have, the locking kind that promptly can this lock token 240 be write down carry out step 150; If the management node of this equipment 200 does not record operation associated numbering 230, represent that then this equipment does not have relevant equipment, therefore can finish to look for.In addition, add so that service to be provided as new equipment (not having the equipment of corresponding management node or newly-established equipment etc.), will produce the management node of this new equipment correspondence, the operation associated numbering of the management node that will newly produce is set at the Action number (step 110) of the management node of the equipment that is established simultaneously; When equipment stops to provide service, for example delete equipment, the management node (step 190) that deletion is corresponding to set up.
Then How It Works of the present invention is described with an embodiment, logical device framework in one stocking system is as follows, use first disk and second disk to set up first disk array (RAID), use the 3rd disk to set up the first nonmagnetic disk array (NoRAID), use first disk array and the first nonmagnetic disk array to set up first storage area (Volume Group), on first storage area, set up first and store the block (LogicalVolume, Volume) and the second storage block.
According to the above-mentioned management node of setting up, the management node that produces the first disk correspondence is the first management node 200A, the management node that produces the second disk correspondence is the second management node 200B, the management node that produces the first disk array correspondence is the 5th management node 200E, and the operation associated numbering of the first management node 200A is set at the Action number of the 5th management node, at last as shown in Figure 3,200A, 200B, ..., 200I is respectively first disk, second disk, the 3rd disk, first disk array, the first nonmagnetic disk array, first storage area, first stores block, second stores the management node of block correspondence, below represent each logical device with the management node of each logical device, for example represent the 3rd disk with the 3rd management node 200C.
If the operation of the change first storage area 200G title is arranged to be carried out, because being operating as of title of change writes, so the lock token of the 7th management node 200G meeting record locking kind is for monopolizing locking, then detect the operation generation that change first stores block 200H title, so will read the 8th management node 200H, learn and operation associatedly be numbered 7, being similarly the 7 relevant equipment that can get by the Action number of the 7th management node 200G is the first storage area 200G, so read the lock token of the 7th management node, find that the locking kind is for monopolizing locking, therefore allow the first storage block 200H to change title, former lock token with the 8th management node 200H is set at monopolizes locking, unlock the locking kind of promptly deleting lock token and being write down after finishing up to the operation of renaming.
Logical architecture as the above embodiments, because all existing corresponding management node of all devices, so need not produce management node, if have the operation of reading the first storage area 200G title to carry out this moment, then the lock token of the 7th management node 200G can be recorded as and share locking, the operation that then has change first to store block 200H title produces, so look for related management node with the 8th management node 200H, when looking for, find to have the locking of sharing, so allow change first to store the operation of block to the 7th management node 200G.
Then with an embodiment How It Works of the present invention is described again, logical architecture as first embodiment, if the operation of the deletion first storage area 200G is arranged this moment to be carried out, this is the locking kind that locks fully, produce when detecting the operation of reading the first storage block 200H, just can begin to look for other management node relevant with the 8th management node, learn that when looking for the first storage area 200G is locking fully, so do not allow to read the operation of the first storage block 200H to the 7th management node.After the operation of the first storage area 200G is finished, also can delete the 7th management node 200G.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (9)

1. management method of equipment locking down, utilize at least one management node record corresponding to the hierarchical relationship of at least one equipment room of this management node respectively to carry out lock management, it is characterized in that this method comprises the following step:
(a) detect and to have a request of operation first equipment to produce, wherein this request comprises deletion, writes, reads one of them or the operations more than both;
(b) read first management node corresponding with this first equipment, wherein this first management node comprises:
On behalf of one of this first equipment, one Action number number in order to record;
One operation associated numbering, in order to write down the Action number of second management node, wherein this second management node corresponding to this first device-dependent second equipment; And
One lock token, in order to write down a locking kind of this first equipment, wherein this locking kind comprises non-locking, locks, monopolizes locking fully, shares locking;
(c) according to the operation associated numbering of first management node, look for respectively this management node relevant, obtain this locking kind after looking for first management node;
(d) judge whether and to carry out this requested operation to this first equipment according to this locking kind;
(e) judge if can carry out this requested operation to this first equipment the time, set corresponding locking kind at this lock token of this first management node; And
(f) behind this first device-end, this lock token of this first management node is deleted.
2. management method of equipment locking down according to claim 1, it is characterized in that, when described this locking kind of looking for this lock token record that comprises this first management node of judgement of this step (c) is non-locking, also further judge this Action number of second management node whether this operation associated numbering of this first management node records, if, read second management node, and be first management node, repeat this step (c) with second management node.
3. management method of equipment locking down according to claim 1 is characterized in that, this step (a) also comprises a step before, produces corresponding to the management node of this equipment respectively.
4. management method of equipment locking down according to claim 1 is characterized in that, this locking kind that this step (c) obtains be one fully the lock, then step (d) will be judged and can not operate this first equipment.
5. management method of equipment locking down according to claim 1, it is characterized in that, this locking kind that this step (c) obtains is an exclusive lock, then step (d) also comprises and judges this locking kind this locking kind with this lock token record of this first management node is identical, if not, then can write or read one of them or boths' operation to this first equipment.
6. management method of equipment locking down according to claim 5 is characterized in that, this step (d) is judged when this locking kind of this lock token record of this locking kind and this first management node is identical, then can not be operated this first equipment.
7. management method of equipment locking down according to claim 1, it is characterized in that, this locking kind that this step (c) obtains is a shared lock, then step (d) also comprises and judges this locking kind this locking kind with this lock token record of this first management node is identical, if not, then can write or read one of them or boths' operation to this first equipment.
8. management method of equipment locking down according to claim 7 is characterized in that, this step (d) judges when this locking kind of this lock token record of this locking kind and this first management node is identical, then the operation that can read this first equipment.
9. management method of equipment locking down according to claim 1 is characterized in that, this step (a) also comprises a step before, and deletion can't provide the management node of an equipment correspondence of service.
CN 200610074949 2006-04-25 2006-04-25 Management method of equipment locking down Pending CN101063946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610074949 CN101063946A (en) 2006-04-25 2006-04-25 Management method of equipment locking down

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610074949 CN101063946A (en) 2006-04-25 2006-04-25 Management method of equipment locking down

Publications (1)

Publication Number Publication Date
CN101063946A true CN101063946A (en) 2007-10-31

Family

ID=38964981

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610074949 Pending CN101063946A (en) 2006-04-25 2006-04-25 Management method of equipment locking down

Country Status (1)

Country Link
CN (1) CN101063946A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504621B (en) * 2009-04-01 2011-06-29 杭州华三通信技术有限公司 Distributed system and equipment for preventing global resource out-of-order, and its application method
CN102360312A (en) * 2011-10-31 2012-02-22 河南省电力公司计量中心 Equipment scheduling method
CN105808556A (en) * 2014-12-29 2016-07-27 深圳云之家网络有限公司 Operating method for database and database engine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504621B (en) * 2009-04-01 2011-06-29 杭州华三通信技术有限公司 Distributed system and equipment for preventing global resource out-of-order, and its application method
CN102360312A (en) * 2011-10-31 2012-02-22 河南省电力公司计量中心 Equipment scheduling method
CN102360312B (en) * 2011-10-31 2013-09-11 河南省电力公司计量中心 Equipment scheduling method
CN105808556A (en) * 2014-12-29 2016-07-27 深圳云之家网络有限公司 Operating method for database and database engine
CN105808556B (en) * 2014-12-29 2020-02-11 深圳云之家网络有限公司 Database operation method and database engine

Similar Documents

Publication Publication Date Title
US6823436B2 (en) System for conserving metadata about data snapshots
US7634496B1 (en) Techniques for managing state changes of a data storage system utilizing the object oriented paradigm
CN106548789A (en) Method and apparatus for operating stacked tile type magnetic recording equipment
CN1534478A (en) Equipment and method of relocating shared computer data in multiline procedure computer
CN1848022A (en) Authority control method based on access control list
CN102760136B (en) File system control method based on rapid video data storage
CN1900928A (en) Method for accessing file system snapshots and file system
CN1928872A (en) Device and method for writing data into disc by dynamic switching
CN107783988A (en) The locking method and equipment of a kind of directory tree
CN101063946A (en) Management method of equipment locking down
CN111368165A (en) Spatio-temporal streaming data integration platform
CN1694415A (en) Method and device for safety of storaged network data
CN101256528A (en) Magnetic disk data backup system and method supporting nought backup window
CN100347705C (en) Method for file merge
CN113253932A (en) Read-write control method and system for distributed storage system
CN1641610A (en) Hard disk replacement control and management method for network storage system
CN1661572A (en) Method in use for managing data access between storing devices and equipment of host computer
CN106293510A (en) A kind of data sharing method towards MVS and system
CN1916814A (en) Method for sending command to portable storage device
CN1416062A (en) Method for gathering resources of storage media on computer network
CN109992220A (en) A kind of lock method for releasing, device, equipment and medium
CN1960361A (en) Increment synchronization method of disk data of computer
CN108959604A (en) Safeguard the method, apparatus and computer readable storage medium of data-base cluster
CN112596955B (en) Emergency processing system and method for processing large-scale system emergency in cloud computing
US7565486B2 (en) Method and apparatus for handling multi-volume datasets in a tape storage 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication