CN104391654A - Shared disk management method and system - Google Patents

Shared disk management method and system Download PDF

Info

Publication number
CN104391654A
CN104391654A CN201410637110.9A CN201410637110A CN104391654A CN 104391654 A CN104391654 A CN 104391654A CN 201410637110 A CN201410637110 A CN 201410637110A CN 104391654 A CN104391654 A CN 104391654A
Authority
CN
China
Prior art keywords
node device
disk unit
disk
carry
management equipment
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
CN201410637110.9A
Other languages
Chinese (zh)
Other versions
CN104391654B (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201410637110.9A priority Critical patent/CN104391654B/en
Publication of CN104391654A publication Critical patent/CN104391654A/en
Application granted granted Critical
Publication of CN104391654B publication Critical patent/CN104391654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems

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)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a shared disk management method and system. The method comprises the following steps that a UUID (universally unique identifier) is set for a disk device in advance; when the disk device is hung and carried by a node device and provides service, mounting requests of other node devices are shielded; after the use completion of the disk device by the node device mounting the disc device, a disk management device is triggered to select a target node device from other node devices according to preset selection strategies. The method and the system have the advantages that the UUID of a shared disk device in a cluster is realized, meanwhile, the data security and the service continuity of data on the shared disk device are ensured, and the problem of data damage is effectively avoided.

Description

A kind of shared disk management method and system
Technical field
The invention belongs to disk management field, particularly relate to a kind of shared disk management method and system.
Background technology
In present cluster-based storage, shared disk has been a kind of more common high availability implementation method, when but shared disk uses in the cluster, there is carry simultaneously, there is provided service simultaneously, cause the situation of corrupted data, how to avoid this problem of shared disk, ensureing the security of data, is a very important problem.
Summary of the invention
The invention provides a kind of shared disk management method and system, to solve the problem.
The invention provides a kind of shared disk management method.Said method comprises the following steps:
In advance for disk unit arranges general unique identifier UUID;
Described disk unit is by node device carry and when providing service, then shield other node device carry request;
If after the node device of disk unit uses described disk unit described in carry, trigger disk management equipment according to the Selection Strategy preset, select target node device from other node device.
The present invention also provides a kind of shared disk management system, comprises disk unit, multiple node device, disk management equipment; Wherein, described disk unit is connected with multiple node device respectively; Described disk management equipment is connected with described disk unit, described multiple node device respectively;
In advance for disk unit arranges general unique identifier UUID;
Described disk unit, for when providing service, being shielded other node device carry request by node device carry;
Described node device, after using described disk unit, sends trigger notice to disk management equipment;
Disk management equipment, for receive described node device send trigger notice after, according to preset Selection Strategy, select target node device from other node device.
Compared to prior art, according to a kind of shared disk management method provided by the invention and system, in advance for disk unit arranges general unique identifier UUID; Described disk unit is by node device carry and when providing service, then shield other node device carry request; If after the node device of disk unit uses described disk unit described in carry, trigger disk management equipment according to the Selection Strategy preset, select target node device from other node device.Achieve the unique identification of shared disk equipment in cluster, ensure that data security and service continuity on shared disk equipment simultaneously, effectively prevent the problem of corrupted data.
By following scheme: if after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the type of service of node device request process and type of service and business importance coefficient vs table, determine the business importance coefficient of node device request process; According to node device magnetic disc access times and magnetic disc access times scope and disk access coefficient vs table, determine node device disk access coefficient; According to business importance coefficient, the node device disk access coefficient of node device request process, determine the matching degree of node device; Select the highest node device of matching degree as target node device.Ensure that the node device of process important service obtains priority processing, system resource is utilized effectively.
By following scheme: described disk unit is by node device carry and when providing service, if described node device breaks down, then described disk unit is switched to other node device by disk management equipment.Achieve the switching of shared disk equipment carry service in cluster, ensure that business processing continuity, security.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the shared disk management method process flow diagram of the embodiment of the present invention 1;
Figure 2 shows that the shared disk management system structural drawing of the embodiment of the present invention 2.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the shared disk management method process flow diagram of the embodiment of the present invention 1, comprise the following steps:
Step 101: in advance for disk unit arranges general unique identifier UUID;
The unique disk unit in cluster is indicated by UUID (Universal ly Unique Ident ifier, general unique identifier).Indicated the unique disk unit in cluster by UUID, namely carry out the title of Replace Disk and Press Anykey To Reboot equipment with UUID, with the uniqueness mark disk unit of UUID, thus guarantee that disk unit is unique in cluster, distinguish different disk units mutually.
Step 102: described disk unit is by node device carry and when providing service, then shield other node device carry request;
If described disk unit is by certain node device carry and when providing service to this node device, other node device sends carry request to described disk unit, then described disk unit is to other node device feedback carry failure response.So just protect and providing the disk unit of service unaffected, avoid the situation occurring simultaneously providing service to multiple node device, avoid producing the situation of the inconsistent or corrupted data of data.
Described disk unit is by node device carry and when providing service, if described node device breaks down, then described disk unit is switched to other node device by disk management equipment.
Such as: described disk unit is by node device 1 carry and when providing service, if described node device 1 breaks down, then described disk unit is switched to node device 2 by disk management equipment.
Step 103: if after the node device of disk unit uses described disk unit described in carry, triggers disk management equipment according to the Selection Strategy preset, select target node device from other node device;
If after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the Selection Strategy preset, from other node device, the process of select target node device is:
If after the node device of disk unit uses described disk unit described in carry, trigger disk management equipment according to node device priority, select target node device from other node device.
Such as: if there are three node devices (node device 1, node device 2, node device 3); Wherein, the priority of node device 1 is greater than node device 2; The priority of node device 2 is greater than node device 3.
If after the node device 1 of disk unit described in carry uses described disk unit, the priority due to node device 2 is greater than node device 3, then node device 2 is selected to be target node device.
If after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the Selection Strategy preset, from other node device, the process of select target node device is:
If after the node device of disk unit uses described disk unit described in carry, trigger the business operation order of disk management equipment according to each node request process, select target node device from other node device.
Such as: if there are three node devices (node device 1, node device 2, node device 3); Node device 2 asks the business that the business of process is data encryption, node device 3 request processes to be that data store.Because data storage operations needs front, data encryption operation needs rear, therefore selects node device 3 as target node device.
If after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the Selection Strategy preset, from other node device, the process of select target node device is:
If after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the type of service of node device request process and type of service and business importance coefficient vs table, determine the business importance coefficient of node device request process;
According to node device magnetic disc access times and magnetic disc access times scope and disk access coefficient vs table, determine node device disk access coefficient;
According to business importance coefficient, the node device disk access coefficient of node device request process, determine the matching degree of node device;
Select the highest node device of matching degree as target node device.
Business importance coefficient/node device disk access the coefficient of node device matching degree=node device request process.
Type of service and business importance coefficient vs table
Type of service Business importance coefficient
Data encryption business 1
Operational data storage 0.8
Data Update business 0.6
Table 1
Magnetic disc access times scope and disk access coefficient vs table
Magnetic disc access times (X) scope Disk access coefficient
50<X≤100 1.0
10<X≤50 0.8
X<10 0.6
Table 2
Preset period of time needs to set flexibly (such as: 1 minute) according to actual conditions, is not intended to limit the scope of the invention at this.
If there are three node devices (node device 1, node device 2, node device 3); If after the node device 1 of disk unit described in carry uses described disk unit, node device 2 asks the business that the business of process is data encryption, node device 3 request processes to be that data store; Then the business importance coefficient of the request process of node device 2 is 1, and node device 3 asks the business importance coefficient of process to be 0.8;
If node device 2 magnetic disc access times is 10 times; Node device 3 magnetic disc access times 12 times, then the disk access coefficient of node device 2 is 0.6; The disk access coefficient of node device 3 is 0.8.
Then node device 2 matching degrees=node device 2 asks business importance coefficient/node device 2 disk access coefficient=1/0.6=1.67 of process; Node device 3 matching degrees=node device 3 asks business importance coefficient/node device 3 disk access coefficient=0.8/0.8=1 of process.
The node device 2 that then selection matching degree is the highest is as target node device.
Step 104: described target node device sends carry request to described disk unit;
Step 105: described disk unit accepts described carry request and provides service to described target node device.
Figure 2 shows that the shared disk management system structural drawing of the embodiment of the present invention 2, comprise disk unit, node device 1, node device 2, node device 3, disk management equipment; Wherein, described disk unit is connected with node device 1, node device 2, node device 3 respectively; Described disk management equipment is connected with described disk unit, described node device 1, node device 2, node device 3 respectively;
In advance for disk unit arranges general unique identifier UUID;
Described disk unit, for by node device 1 carry and when providing service, the carry request of masked nodes equipment 2, node device 3;
Described node device 1, after using described disk unit, sends trigger notice to disk management equipment;
Disk management equipment, for receive described node device 1 send trigger notice after, according to preset Selection Strategy, select target node device from node device 2, node device 3.
Compared to prior art, according to a kind of shared disk management method provided by the invention and system, in advance for disk unit arranges general unique identifier UUID; Described disk unit is by node device carry and when providing service, then shield other node device carry request; If after the node device of disk unit uses described disk unit described in carry, trigger disk management equipment according to the Selection Strategy preset, select target node device from other node device.Achieve the unique identification of shared disk equipment in cluster, ensure that data security and service continuity on shared disk equipment simultaneously, effectively prevent the problem of corrupted data.
By following scheme: if after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the type of service of node device request process and type of service and business importance coefficient vs table, determine the business importance coefficient of node device request process; According to node device magnetic disc access times and magnetic disc access times scope and disk access coefficient vs table, determine node device disk access coefficient; According to business importance coefficient, the node device disk access coefficient of node device request process, determine the matching degree of node device; Select the highest node device of matching degree as target node device.Ensure that the node device of process important service obtains priority processing, system resource is utilized effectively.
By following scheme: described disk unit is by node device carry and when providing service, if described node device breaks down, then described disk unit is switched to other node device by disk management equipment.Achieve the switching of shared disk equipment carry service in cluster, ensure that business processing continuity, security.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a shared disk management method, is characterized in that, comprises the following steps:
In advance for disk unit arranges general unique identifier UUID;
Described disk unit is by node device carry and when providing service, then shield other node device carry request;
If after the node device of disk unit uses described disk unit described in carry, trigger disk management equipment according to the Selection Strategy preset, select target node device from other node device.
2. method according to claim 2, it is characterized in that: if described disk unit by certain node device carry and provide service to this node device time, other node device sends carry request to described disk unit, then described disk unit is to other node device feedback carry failure response.
3. method according to claim 1, it is characterized in that: if after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the Selection Strategy preset, from other node device, the process of select target node device is:
If after the node device of disk unit uses described disk unit described in carry, trigger disk management equipment according to node device priority, select target node device from other node device.
4. method according to claim 1, it is characterized in that: if after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the Selection Strategy preset, from other node device, the process of select target node device is:
If after the node device of disk unit uses described disk unit described in carry, trigger the business operation order of disk management equipment according to each node request process, select target node device from other node device.
5. method according to claim 1, it is characterized in that: if after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the Selection Strategy preset, from other node device, the process of select target node device is:
If after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the type of service of node device request process and type of service and business importance coefficient vs table, determine the business importance coefficient of node device request process;
According to node device magnetic disc access times and magnetic disc access times scope and disk access coefficient vs table, determine node device disk access coefficient;
According to business importance coefficient, the node device disk access coefficient of node device request process, determine the matching degree of node device;
Select the highest node device of matching degree as target node device.
6. method according to claim 5, is characterized in that: the business importance coefficient/node device disk access coefficient of node device matching degree=node device request process.
7. method according to claim 1, it is characterized in that: if after described in carry, the node device of disk unit uses described disk unit, trigger disk management equipment according to the Selection Strategy preset, from other node device after select target node device, described target node device sends carry request to described disk unit.
8. method according to claim 7, is characterized in that: described disk unit accepts described carry request and provides service to described target node device.
9. method according to claim 1, is characterized in that: described disk unit is by node device carry and when providing service, if described node device breaks down, then described disk unit is switched to other node device by disk management equipment.
10. a shared disk management method, is characterized in that, comprises disk unit, multiple node device, disk management equipment; Wherein, described disk unit is connected with multiple node device respectively; Described disk management equipment is connected with described disk unit, described multiple node device respectively;
In advance for disk unit arranges general unique identifier UUID;
Described disk unit, for when providing service, being shielded other node device carry request by node device carry;
Described node device, after using described disk unit, sends trigger notice to disk management equipment;
Disk management equipment, for receive described node device send trigger notice after, according to preset Selection Strategy, select target node device from other node device.
CN201410637110.9A 2014-11-06 2014-11-06 A kind of shared disk management method and system Active CN104391654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410637110.9A CN104391654B (en) 2014-11-06 2014-11-06 A kind of shared disk management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410637110.9A CN104391654B (en) 2014-11-06 2014-11-06 A kind of shared disk management method and system

Publications (2)

Publication Number Publication Date
CN104391654A true CN104391654A (en) 2015-03-04
CN104391654B CN104391654B (en) 2018-02-06

Family

ID=52609565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410637110.9A Active CN104391654B (en) 2014-11-06 2014-11-06 A kind of shared disk management method and system

Country Status (1)

Country Link
CN (1) CN104391654B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731915A (en) * 2015-03-24 2015-06-24 上海爱数软件有限公司 Magnetic disk device mapping method in distributed memory system
CN106681799A (en) * 2017-01-03 2017-05-17 北京百度网讯科技有限公司 Disk inserting method, device and system
WO2017092402A1 (en) * 2015-12-02 2017-06-08 中兴通讯股份有限公司 Virtual network hard disk mounting method, lan server, user terminal and system
CN110333972A (en) * 2019-07-03 2019-10-15 深信服科技股份有限公司 Shared disk management method, device, equipment and storage medium
CN111444157A (en) * 2019-01-16 2020-07-24 阿里巴巴集团控股有限公司 Distributed file system and data access method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002001410A1 (en) * 2000-06-26 2002-01-03 International Business Machines Corporation Data management application programming interface for a parallel file system
CN101031918A (en) * 2004-09-30 2007-09-05 兄弟工业株式会社 Node apparatus, shared information updating method, shared information storing method, and program
CN101599978A (en) * 2009-07-17 2009-12-09 杭州华三通信技术有限公司 Resource allocation methods and equipment
CN102298539A (en) * 2011-06-07 2011-12-28 华东师范大学 Method and system for scheduling shared resources subjected to distributed parallel treatment
CN102339283A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Access control method for cluster file system and cluster node
CN102868754A (en) * 2012-09-26 2013-01-09 北京联创信安科技有限公司 High-availability method, node device and system for achieving cluster storage

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002001410A1 (en) * 2000-06-26 2002-01-03 International Business Machines Corporation Data management application programming interface for a parallel file system
CN101031918A (en) * 2004-09-30 2007-09-05 兄弟工业株式会社 Node apparatus, shared information updating method, shared information storing method, and program
CN101599978A (en) * 2009-07-17 2009-12-09 杭州华三通信技术有限公司 Resource allocation methods and equipment
CN102339283A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Access control method for cluster file system and cluster node
CN102298539A (en) * 2011-06-07 2011-12-28 华东师范大学 Method and system for scheduling shared resources subjected to distributed parallel treatment
CN102868754A (en) * 2012-09-26 2013-01-09 北京联创信安科技有限公司 High-availability method, node device and system for achieving cluster storage

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731915A (en) * 2015-03-24 2015-06-24 上海爱数软件有限公司 Magnetic disk device mapping method in distributed memory system
CN104731915B (en) * 2015-03-24 2019-03-22 上海爱数信息技术股份有限公司 Disk unit mapping method in a kind of distributed memory system
WO2017092402A1 (en) * 2015-12-02 2017-06-08 中兴通讯股份有限公司 Virtual network hard disk mounting method, lan server, user terminal and system
CN106817399A (en) * 2015-12-02 2017-06-09 中兴通讯股份有限公司 Virtual network hard disk hanging method, LAN server, user terminal and system
CN106681799A (en) * 2017-01-03 2017-05-17 北京百度网讯科技有限公司 Disk inserting method, device and system
CN111444157A (en) * 2019-01-16 2020-07-24 阿里巴巴集团控股有限公司 Distributed file system and data access method
CN111444157B (en) * 2019-01-16 2023-06-20 阿里巴巴集团控股有限公司 Distributed file system and data access method
CN110333972A (en) * 2019-07-03 2019-10-15 深信服科技股份有限公司 Shared disk management method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104391654B (en) 2018-02-06

Similar Documents

Publication Publication Date Title
CN104391654A (en) Shared disk management method and system
MX2023000186A (en) Systems and methods for creating a universal record.
CN106888245B (en) Data processing method, device and system
CN108319623B (en) Data redistribution method and device and database cluster
US10656874B2 (en) Storage device operation control method, and storage device
CN102202087A (en) Method for identifying storage equipment and system thereof
CN104158858A (en) Method and system for accessing distributed cluster file system
CN108156030B (en) Method and device for synchronizing configuration strategies
CN106709066B (en) Data synchronization method and device
US20180199175A1 (en) M2m node management method and apparatus, and computer storage medium
CN105516386A (en) Method and system for detecting and processing MAC address conflict of server management system
CN111125065A (en) Visual data synchronization method, system, terminal and computer readable storage medium
CN104967691A (en) Distributed storage control method and system
CN102855319A (en) ORACLE database operation monitoring system
CN110278101B (en) Resource management method and equipment
US10209905B2 (en) Reusing storage blocks of a file system
CN111385370A (en) ID allocation method, device, storage medium and ID allocation system
CN104516795A (en) Data access method and system
CN106993022B (en) Identification management method for cluster, identification server and corresponding system
CN110704198A (en) Data operation method, device, storage medium and processor
CN111897643A (en) Thread pool configuration system, method, device and storage medium
CN104410511A (en) Server management method and system
CN111104250B (en) Method, apparatus and computer readable medium for data processing
CN104866242A (en) Data deleting system, data deleting method and data deleting denter
CN104407808A (en) Method and device for writing in data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant