CN105224247A - The management method of logical volume and distributed system in distributed system - Google Patents

The management method of logical volume and distributed system in distributed system Download PDF

Info

Publication number
CN105224247A
CN105224247A CN201510624668.8A CN201510624668A CN105224247A CN 105224247 A CN105224247 A CN 105224247A CN 201510624668 A CN201510624668 A CN 201510624668A CN 105224247 A CN105224247 A CN 105224247A
Authority
CN
China
Prior art keywords
host
request
user
response message
request queue
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
CN201510624668.8A
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.)
Opzoon Technology Co Ltd
Original Assignee
Opzoon Technology 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 Opzoon Technology Co Ltd filed Critical Opzoon Technology Co Ltd
Priority to CN201510624668.8A priority Critical patent/CN105224247A/en
Publication of CN105224247A publication Critical patent/CN105224247A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides the management method of logical volume in a kind of distributed system and the distributed of application the method, the present invention is by being undertaken sorting by the solicited message of each user rs host and feeding back response message according to predefined procedure, user rs host is just modified to the information of bottom physical disks or is write after receiving response message, avoid the conflict that physical disks appearance revised by multiple main frame simultaneously while realizing the amendment of logical volume, improve security and the reason efficiency of logical volume management.

Description

The management method of logical volume and distributed system in distributed system
Technical field
The invention belongs to data acquisition technology field, more specifically relate to management method and the distributed system of logical volume in a kind of distributed system.
Background technology
LVM, logicalvolumemanager logical volume management is to the one mechanism that disk manages in Linux system, it can create physical volume PV (physicalvolume), and multiple physical volume is consisted of a volume group (volumegroup), then in volume group, distribute each logical volume (logicalvolume), user uses logical volume.The benefit of LVM is used to be can extend logical volumes dynamically, that is concerning user, the disk space size that he sees can change, if when can not writing any more data to certain subregion, only need extend logical volumes namely subregion can be expanded, just can continue into data at this subregion relaying.
LVM, when hyperdisk, needs the information of PV, VG, LV to be written in the physical disks on basis, could read out corresponding PV like this, the information of VG, LV from disk.
In a distributed system, there is multiple host, every platform main frame has LVM to manage disk.Mostly current framework is to share and stores, and namely multiple host uses same special memory device (or simple one piece of disk), so will there is the problem occurring when multiple host changes logical volume simultaneously conflicting.Below to occurring that the scene of conflict is described, as described in Figure 1:
PV1, the size of PV2, PV3 is all 10G, and they add in volume group VG, so VG has 30G, the space LV1 being assigned with a 12G from VG uses to host A, and the space LV2 being assigned with a 2G uses to host B, now LV, VG, the information of PV has all write physical disks 1, and in physical disks 2, in physical disks 3, write is the information of PV and VG.Host A is physical disks 1 and part physical dish 2 to the read-write operation of LV1, and host B is physical disks 2 to the operation correspondence of LV2.
Work as host A, host B is all wanted to expand oneself, or when all wishing newly to distribute a LV, now because host A and host B have the LVM software of oneself, therefore can read and write bottom physical disks simultaneously, which results in data to be accessed by two LVM, data access clashes simultaneously simultaneously, and the result that LVM performs is also unexpected.
Summary of the invention
How the technical problem to be solved in the present invention is avoided when multiple main frame changes logical volume simultaneously occurring conflict.
In order to solve the problems of the technologies described above, the invention provides the management method of logical volume in a kind of distributed system, said method comprising the steps of:
To server host transmission request information when user rs host has a change demand of logical volume;
Described request information is put into request queue after receiving described request information by described server host, and feeds back response message according to predefined procedure to the user rs host that solicited message is corresponding; After corresponding user rs host receives described response message, the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume.
Preferably, described request queue comprises low level request queue, middle level request queue and high-level request queue; Described request information is put into the request queue of corresponding level by described server host according to the IP address in described request information.
Preferably, described according to predefined procedure to solicited message corresponding user rs host feedback response message be specially:
For the request queue of different stage, feed back response message according to priority order from high to low to the user rs host that the solicited message in the request queue of corresponding level is corresponding;
For other request queue of same priority, feed back response message according to time vertical order to the user rs host that the solicited message in request queue is corresponding.
Preferably, described method is further comprising the steps of:
When the described request information that described server host receives is from itself, suspend and feed back described response message to user rs host, and the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realize the change of inherent logic volume; Recover afterwards to user rs host feedback response message.
Preferably, realize the change of inherent logic volume at user rs host after, described method is further comprising the steps of:
This user rs host completes information to described server host transmit operation, and described server host receives after described operation completes information, according to described predefined procedure to user rs host feedback response message corresponding to next described request information.
Corresponding to said method, also there is a kind of distributed system, described system comprises the server host and multiple user rs host being provided with client's request module that are provided with service processing module;
Described client's request module is used for when the user rs host of correspondence has the change demand of logical volume to service processing module transmission request information;
The described request information of reception, for receiving described request information, is put into request queue by described service processing module, and feeds back response message according to predefined procedure to client's request module that solicited message is corresponding;
Described client's request module is also for receiving described response message, and the logical volume management software calling self afterwards carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume.
Preferably, described service processing module is also for putting into the request queue of corresponding level by described request information according to the IP address in described request information, wherein said request queue comprises low level request queue, middle level request queue and high-level request queue.
Preferably, described predefined procedure is that the request queue that priority is high comes before the low request queue of priority, for other request queue of same priority, time solicited message early comes before solicited message in evening time, and the solicited message coming foremost is first solicited message.
Preferably, described service processing module is when the described request information received is from itself, described service processing module also feeds back described response message for suspending to client's request module, the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume; Recover afterwards to client's request module feedback response message.
Preferably, realize the change of inherent logic volume at user rs host after, described client's request module is also for completing information to described service processing module transmit operation;
Described service processing module is receiving after described operation completes information, described service processing module also for according to described predefined procedure to client's request module feedback response message corresponding to next described request information.
The invention provides the management method of logical volume in a kind of distributed system and the distributed of application the method, the present invention is by being undertaken sorting by the solicited message of each user rs host and feeding back response message according to predefined procedure, user rs host is just modified to the information of bottom physical disks or is write after receiving response message, avoid the conflict that physical disks appearance revised by multiple main frame simultaneously while realizing the amendment of logical volume, improve security and the reason efficiency of logical volume management.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the management structure schematic diagram carrying out LVM in prior art;
Fig. 2 is the management method process flow diagram of logical volume in a kind of distributed system of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Following examples for illustration of the present invention, but can not be used for limiting the scope of the invention.
A management method for logical volume in distributed system, as shown in Figure 2, said method comprising the steps of:
To server host transmission request information when S1, user rs host have a change demand of logical volume;
Described request information is put into request queue after receiving described request information by S2, described server host, and feeds back response message according to predefined procedure to the user rs host that solicited message is corresponding;
After S3, corresponding user rs host receive described response message, the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume.
Further, the information interaction between server host and user rs host selects the mode of TCP to carry out.
Above-mentioned solicited message comprises the IP address of respective hosts and concrete retouching operation, wherein retouching operation comprises expansion, reduction operation of Denging.
Said method avoids the conflict that physical disks appearance revised by multiple main frame simultaneously while realizing the amendment of logical volume, improve security and the reason efficiency of logical volume management.
Further, described request queue comprises low level request queue, middle level request queue and high-level request queue; Described request information is put into the request queue of corresponding level by described server host according to the IP address in described request information.Be specially to the user rs host feedback response message that solicited message is corresponding according to predefined procedure simultaneously:
For the request queue of different stage, feed back response message according to priority order from high to low to the user rs host that the solicited message in the request queue of corresponding level is corresponding;
For other request queue of same priority, feed back response message according to time vertical order to the user rs host that the solicited message in request queue is corresponding.
Can according to effectively improving treatment effeciency according to sequential processes solicited message above, and can according to the urgent solicited message of actual conditions priority processing.
Further, described method is further comprising the steps of:
When the described request information that described server host receives is from itself, suspend and feed back described response message to user rs host, and the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realize the change of inherent logic volume; Recover afterwards to user rs host feedback response message.
Further, realize the change of inherent logic volume at user rs host after, described method is further comprising the steps of:
This user rs host completes information to described server host transmit operation, and described server host receives after described operation completes information, according to described predefined procedure to user rs host feedback response message corresponding to next described request information.Such process ensure that the conflict that multiple main frame can be avoided simultaneously to revise physical disks initiation more.
Also there is a kind of distributed system corresponding to said method, described system comprises the server host and multiple user rs host being provided with client's request module that are provided with service processing module; Preferably, described service processing module can be one section of server program, and client's request module can be one section of client program.
Described client's request module is used for when the user rs host of correspondence has the change demand of logical volume to service processing module transmission request information;
The described request information of reception, for receiving described request information, is put into request queue by described service processing module, and feeds back response message according to predefined procedure to client's request module that solicited message is corresponding;
Described client's request module is also for receiving described response message, and the logical volume management software calling self afterwards carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume.
Further, described service processing module is also for putting into the request queue of corresponding level by described request information according to the IP address in described request information, wherein said request queue comprises low level request queue, middle level request queue and high-level request queue.
Further, described predefined procedure is that the request queue that priority is high comes before the low request queue of priority, for other request queue of same priority, time solicited message early comes before solicited message in evening time, and the solicited message coming foremost is first solicited message.
Further, described service processing module is when the described request information received is from itself, described service processing module also feeds back described response message for suspending to client's request module, the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume; Recover afterwards to client's request module feedback response message.Service processing module can be found out except having except the function of solicited message queuing, also there is the function of client's request module.
Further, realize the change of inherent logic volume at user rs host after, described client's request module is also for completing information to described service processing module transmit operation;
Described service processing module is receiving after described operation completes information, described service processing module also for according to described predefined procedure to client's request module feedback response message corresponding to next described request information.
Above embodiment is only for illustration of the present invention, but not limitation of the present invention.Although with reference to embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, various combination, amendment or equivalent replacement are carried out to technical scheme of the present invention, do not depart from the spirit and scope of technical solution of the present invention, all should be encompassed in the middle of right of the present invention.

Claims (10)

1. the management method of logical volume in distributed system, is characterized in that, said method comprising the steps of:
To server host transmission request information when user rs host has a change demand of logical volume;
Described request information is put into request queue after receiving described request information by described server host, and feeds back response message according to predefined procedure to the user rs host that solicited message is corresponding; After corresponding user rs host receives described response message, the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume.
2. method according to claim 1, is characterized in that, described request queue comprises low level request queue, middle level request queue and high-level request queue; Described request information is put into the request queue of corresponding level by described server host according to the IP address in described request information.
3. method according to claim 2, is characterized in that, described according to predefined procedure to solicited message corresponding user rs host feedback response message be specially:
For the request queue of different stage, feed back response message according to priority order from high to low to the user rs host that the solicited message in the request queue of corresponding level is corresponding;
For other request queue of same priority, feed back response message according to time vertical order to the user rs host that the solicited message in request queue is corresponding.
4. method according to claim 1, is characterized in that, described method is further comprising the steps of:
When the described request information that described server host receives is from itself, suspend and feed back described response message to user rs host, and the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realize the change of inherent logic volume; Recover afterwards to user rs host feedback response message.
5. method according to claim 1, is characterized in that, realize the change of inherent logic volume at user rs host after, described method is further comprising the steps of:
This user rs host completes information to described server host transmit operation, and described server host receives after described operation completes information, according to described predefined procedure to user rs host feedback response message corresponding to next described request information.
6. a distributed system, is characterized in that, described system comprises the server host and multiple user rs host being provided with client's request module that are provided with service processing module;
Described client's request module is used for when the user rs host of correspondence has the change demand of logical volume to service processing module transmission request information;
The described request information of reception, for receiving described request information, is put into request queue by described service processing module, and feeds back response message according to predefined procedure to client's request module that solicited message is corresponding;
Described client's request module is also for receiving described response message, and the logical volume management software calling self afterwards carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume.
7. distributed system according to claim 6, it is characterized in that, described service processing module is also for putting into the request queue of corresponding level by described request information according to the IP address in described request information, wherein said request queue comprises low level request queue, middle level request queue and high-level request queue.
8. distributed system according to claim 7, it is characterized in that, described predefined procedure is that the request queue that priority is high comes before the low request queue of priority, for other request queue of same priority, time solicited message early comes before solicited message in evening time, and the solicited message coming foremost is first solicited message.
9. distributed system according to claim 6, it is characterized in that, described service processing module is when the described request information received is from itself, described service processing module also feeds back described response message for suspending to client's request module, the logical volume management software calling self carries out write operation according to the change demand of self to bottom physical disks, realizes the change of inherent logic volume; Recover afterwards to client's request module feedback response message.
10. distributed system according to claim 6, is characterized in that, realize the change of inherent logic volume at user rs host after, described client's request module is also for completing information to described service processing module transmit operation;
Described service processing module is receiving after described operation completes information, described service processing module also for according to described predefined procedure to client's request module feedback response message corresponding to next described request information.
CN201510624668.8A 2015-09-25 2015-09-25 The management method of logical volume and distributed system in distributed system Pending CN105224247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510624668.8A CN105224247A (en) 2015-09-25 2015-09-25 The management method of logical volume and distributed system in distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510624668.8A CN105224247A (en) 2015-09-25 2015-09-25 The management method of logical volume and distributed system in distributed system

Publications (1)

Publication Number Publication Date
CN105224247A true CN105224247A (en) 2016-01-06

Family

ID=54993253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510624668.8A Pending CN105224247A (en) 2015-09-25 2015-09-25 The management method of logical volume and distributed system in distributed system

Country Status (1)

Country Link
CN (1) CN105224247A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023061266A1 (en) * 2021-10-15 2023-04-20 阿里云计算有限公司 Logical volume construction method and apparatus, and device, readable storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634379A (en) * 2013-11-13 2014-03-12 华为技术有限公司 Management method for distributed storage space and distributed storage system
CN103747059A (en) * 2013-12-26 2014-04-23 华中科技大学 Method and system for guaranteeing cloud computing server cluster network
CN103870341A (en) * 2014-03-12 2014-06-18 汉柏科技有限公司 Method and system of adjusting resources of virtual machine
CN104731657A (en) * 2013-12-24 2015-06-24 中国移动通信集团山西有限公司 Resource scheduling method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634379A (en) * 2013-11-13 2014-03-12 华为技术有限公司 Management method for distributed storage space and distributed storage system
CN104731657A (en) * 2013-12-24 2015-06-24 中国移动通信集团山西有限公司 Resource scheduling method and system
CN103747059A (en) * 2013-12-26 2014-04-23 华中科技大学 Method and system for guaranteeing cloud computing server cluster network
CN103870341A (en) * 2014-03-12 2014-06-18 汉柏科技有限公司 Method and system of adjusting resources of virtual machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023061266A1 (en) * 2021-10-15 2023-04-20 阿里云计算有限公司 Logical volume construction method and apparatus, and device, readable storage medium and program product

Similar Documents

Publication Publication Date Title
US10686756B2 (en) Method and apparatus for managing MAC address generation for virtualized environments
EP3073374B1 (en) Thread creation method, service request processing method and related device
CN105224444B (en) Log generation method and device
CN111143093B (en) Asynchronous message distributed processing method, device, equipment and storage medium
CN102316043B (en) Port virtualization method, switch and communication system
US10031741B2 (en) Upgrade of port firmware and driver software for a target device
US10534714B2 (en) Allocating cache memory on a per data object basis
US10031742B2 (en) Upgrade of firmware in an interface hardware of a device in association with the upgrade of driver software for the device
CN103412822A (en) Operation method of non-volatile RAM, data operation method and relevant device
CN105630812A (en) Refreshing method and device of cluster application cache
US8352702B2 (en) Data processing system memory allocation
CN103546315A (en) System, method and equipment for backing up DHCP (dynamic host configuration protocol) server
CN105740248A (en) Data synchronization method, apparatus and system
CN103166845A (en) Data processing method and device
CN108710621A (en) A method of MySQL database horizontal extension is realized based on ceph
US8977752B2 (en) Event-based dynamic resource provisioning
CN102103530B (en) Snapshot methods, snapshot device and snapshot system
CN105224418A (en) A kind of data back up method and device
CN104951528B (en) A kind of method and terminal of Data Migration
CN105224247A (en) The management method of logical volume and distributed system in distributed system
CN106383667A (en) Method and apparatus for LUN migration in business operation
CN102799490A (en) System and method for realizing one-to-many interprocess communication
CN106933646B (en) Method and device for creating virtual machine
CN104238955B (en) A kind of device and method of storage resource virtualization distribution according to need
CN106708599B (en) Virtual machine mirror image issuing system and method

Legal Events

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