CN107577431A - A kind of storage pool construction method and device - Google Patents

A kind of storage pool construction method and device Download PDF

Info

Publication number
CN107577431A
CN107577431A CN201710800686.6A CN201710800686A CN107577431A CN 107577431 A CN107577431 A CN 107577431A CN 201710800686 A CN201710800686 A CN 201710800686A CN 107577431 A CN107577431 A CN 107577431A
Authority
CN
China
Prior art keywords
capacity
mdisk
subpool
source pond
storage system
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
CN201710800686.6A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710800686.6A priority Critical patent/CN107577431A/en
Publication of CN107577431A publication Critical patent/CN107577431A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention discloses a kind of storage pool construction method, comprise the following steps:Memory space based on MDisk or RAID is divided into several growth data blocks by storage system, forms source pond;Growth data block of the storage system based on source pond forms the subpool that one or more capacity are not more than source tankage;Storage system is rejected the MDisk, storage system migrates residual capacity into subpool capacity when source pond residual capacity is more than some MDisk capacity of source pond.The effect of key is played in data protection during the present invention is protected and rolled up to system data, can protect the normal access of the data and volume in new storage pool;Operation implementation is simple and convenient, facilitates guest operation easy.

Description

A kind of storage pool construction method and device
Technical field
The present invention relates to technical field of memory, especially a kind of storage pool construction method and device.
Background technology
Existing storage system pond is mostly based on Mdisk or RAID to carry out pond, and MDisk is to come from storage inside The array (RAID) of device, or the volume from external storage system.MDisk is invisible to host computer system.MDisk may be by multiple Physical disk is formed, and these physical disks can be shown in the form of single logic magnetic disc in storage area network (SAN). MDisk can provide available physical storage block to system all the time, even if it does not have man-to-man corresponding relation with physical disk.
Found among the test stored, some Mdisk in storage pool can not be rejected artificially, if forcing to pick Remove, whole storage pool off line will be caused, and the volume created based on storage pool also will be unable to access and loss of data.Therefore it is unfavorable for depositing The data protection of reservoir, especially for the storage pool of very important data creation, if because some Midsk in pond is present Risk, whole pond will be caused can not to access corrupted data.So cause the LUN created based on pond, once it is any in pond Mdisk or RAID off lines will cause the LUN based on this pond by off line, so to bring the drawbacks of very big to storage system.
The content of the invention
It is an object of the invention to provide a kind of storage pool construction method and device, and new storage is established based on existing storage pool Pond, LUN off lines can not access storage system caused by avoiding MDisk or RAID off line.
To achieve the above object, the present invention uses following technical proposals:
A kind of storage pool construction method, comprises the following steps:
Memory space based on MDisk or RAID is divided into several growth data blocks by storage system, forms source pond;
Growth data block of the storage system based on source pond forms the subpool that one or more capacity are not more than source tankage;
Storage system is rejected the MDisk, storage system when source pond residual capacity is more than some MDisk capacity of source pond Residual capacity is migrated into subpool capacity.
Further, the memory space based on MDisk or RAID is divided into several growth daties by the storage system Block, source pond is formed, including:
Memory space based on MDisk or RAID is arrived ending order and is divided into several size phases by storage system from the outset Same growth data block, and serial number is carried out successively.
Further, the amount of capacity of the growth data block depends on the attribute in the source pond that the MDisk or RAID is added Set.
Further, growth data block of the storage system based on source pond forms one or more capacity and is not more than source pond The subpool of capacity, including:
The existing physical capacity used by being fully allocated to source pond creates subpool, the partition capacity of the subpool of foundation No longer it is reported as the active volume in source pond.
Further, storage system need to first delete the subpool created by source pond, will expand when carrying out deletion action to source pond Exhibition data block is back to Yuan Chizhong, and the MDisk or RAID in source pond are then back to unmanaged mode.
Further, when storage system removes MDisk from the pond of source, volume that storage system creates subpool uses all Growth data block is moved in other MDisk in source pond.
Further, when storage system adds MDisk into source pond, the expansion between the balanced multiple MDisk of storage system meeting Open up data block.
A kind of storage pool construction device, including:Source pond creation module, the MDisk or RAID that form memory space are divided For multiple growth data blocks, and growth data block is numbered;Reception newly increases MDisk capacity, realizes each growth data Equilibrium between block;
Subpool creation module, the growth data block based on source pond create the subpool based on source pond;
Capacity transferring module, by source pond residual capacity spatial migration to subpool.
Further, in addition to subpool capacity alarm module, warning level can be reset when subpool capacity reduces, in subpool Give a warning information during the warning threshold that capacity arrival is set.
The effect provided in the content of the invention is only the effect of embodiment, rather than whole effects that invention is all, above-mentioned A technical scheme in technical scheme has the following advantages that or beneficial effect:
The effect of key is played in data protection during the present invention is protected and rolled up to system data, can be protected in new storage pool Data and volume normal access;Operation implementation is simple and convenient, facilitates guest operation easy.
Brief description of the drawings
Fig. 1 is storage pool construction method flow chart of the present invention;
Storage pool construction device schematic diagram of the present invention during Fig. 2.
Embodiment
For the technical characterstic for illustrating this programme can be understood, below by embodiment, and its accompanying drawing is combined, to this hair It is bright to be described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present invention Structure.In order to simplify disclosure of the invention, hereinafter the part and setting of specific examples are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relation between various embodiments are discussed and/or set.It should be noted that part illustrated in the accompanying drawings is not necessarily to scale Draw.Present invention omits the description to known assemblies and treatment technology and process to avoid being unnecessarily limiting the present invention.
As shown in figure 1, a kind of storage pool construction method, comprises the following steps:
Memory space based on MDisk or RAID is divided into several growth data blocks by S1, storage system, forms source Pond;
The growth data block of S2, storage system based on source pond forms the son that one or more capacity are not more than source tankage Pond;
S3, storage system reject the MDisk when source pond residual capacity is more than some MDisk capacity of source pond, storage system System migrates residual capacity into subpool capacity.
Memory space based on MDisk or RAID is divided into several growth data blocks by storage system, forms source pond, bag Include:Memory space based on MDisk or RAID is arrived ending order and is divided into several size identicals by storage system from the outset Growth data block, and serial number is carried out successively.The amount of capacity of growth data block depends on what the MDisk or RAID was added The attribute in source pond is set.
Growth data block of the storage system based on source pond forms the subpool that one or more capacity are not more than source tankage, bag Include:The existing physical capacity used by being fully allocated to source pond creates subpool, and the partition capacity of the subpool of foundation is no longer It is reported as the active volume in source pond.Subpool is built by source pond, and subpool is not created directly by MDisk, but is passed through Distributed to source pond show have capacity to create.As the pond of source, subpool can create exclusively with distributed to subpool hold The volume of amount.Subpool is similar with the source pond with like attribute, available for rolling up copy function.Subpool is using the physics being fully allocated Capacity creates.Subpool capacity is necessarily less than the active volume in source pond.The partition capacity of subpool is no longer reported as Qi Yuan ponds Active volume.
If deleting source pond, it will be unable to recover existing between growth data block or the growth data block that uses of volume in pond and reflect Penetrate.If source pond has the subpool of association created by source pond, then it must delete these subpools first, then by its growth data Block is back to source pond.After deleting subpool, source pond can be deleted.MDisk in the pond of source can be back to unmanaged mode, and can be added to In other source ponds.
Before MDisk is removed from the pond of source, it is ensured that any subpool associated with source pond all there is enough capacity to be used for Volume in the subpool.All growth data blocks that volume uses can all be automatically migrated to other MDisk in the pond of source by storage system In, so that it is guaranteed that data will not lose.MDisk is added in Xiang Yuanchi, to increase the growth data block number that can be used for new volume copy Or the existing volume copy of extension.Volume growth data block between storage system meeting automatic equalization MDisk, it is optimal so as to be provided to volume Performance.
As shown in Fig. 2 a kind of storage pool construction device, including:Source pond creation module 101, memory space will be formed MDisk or RAID is divided into multiple growth data blocks, and growth data block is numbered;Reception newly increases MDisk capacity, real Equilibrium between existing each growth data block;Subpool creation module 102, the growth data block based on source pond are created based on source pond Subpool;Capacity transferring module 103, by source pond residual capacity spatial migration to subpool.Subpool capacity alarm module 104, in subpool Capacity can reset warning level when reducing, and give a warning information when subpool capacity reaches the warning threshold set.Storage system The reservation growth data block in the father pond of multiple growth data blocks is used.Storage system can also reset warning when subpool reduces Rank, and given a warning when reaching the rank during capacity reduces.
Although above-mentioned the embodiment of the present invention is described with reference to accompanying drawing, model not is protected to the present invention The limitation enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not Need to pay various modifications or deformation that creative work can make still within protection scope of the present invention.

Claims (9)

1. a kind of storage pool construction method, it is characterized in that, comprise the following steps:
Memory space based on MDisk or RAID is divided into several growth data blocks by storage system, forms source pond;
Growth data block of the storage system based on source pond forms the subpool that one or more capacity are not more than source tankage;
Storage system rejects the MDisk when source pond residual capacity is more than some MDisk capacity of source pond, and storage system will be surplus Covolume amount is migrated into subpool capacity.
2. a kind of storage pool construction method as claimed in claim 1, it is characterized in that, the storage system will be based on MDisk or RAID memory space is divided into several growth data blocks, forms source pond, including:
Memory space based on MDisk or RAID is arrived ending order and is divided into several size identicals by storage system from the outset Growth data block, and serial number is carried out successively.
3. a kind of storage pool construction method as claimed in claim 2, it is characterized in that, the amount of capacity of the growth data block takes Certainly the attribute in the source pond that the MDisk or RAID is added is set.
4. a kind of storage pool construction method as claimed in claim 1, it is characterized in that, extension of the storage system based on source pond Data block forms the subpool that one or more capacity are not more than source tankage, including:
The existing physical capacity used by being fully allocated to source pond creates subpool, and the partition capacity of the subpool of foundation is no longer It is reported as the active volume in source pond.
5. a kind of storage pool construction method as claimed in claim 1, it is characterized in that, storage system is carrying out deletion behaviour to source pond When making, the subpool created by source pond need to be first deleted, growth data block is back to Yuan Chizhong, the MDisk or RAID in source pond are then returned It is back to unmanaged mode.
6. a kind of storage pool construction method as claimed in claim 1, it is characterized in that, storage system removes MDisk from the pond of source When, all growth data blocks that volume that storage system creates subpool uses are moved in other MDisk in source pond.
7. a kind of storage pool construction method as claimed in claim 1, it is characterized in that, storage system adds MDisk into source pond When, storage system understands the growth data block between balanced multiple MDisk.
8. a kind of storage pool construction device, using a kind of storage pool construction method described in claim 1 to 7, it is characterized in that, bag Include:Source pond creation module, the MDisk or RAID that form memory space are divided into multiple growth data blocks, and to growth data Block is numbered;Reception newly increases MDisk capacity, realizes the equilibrium between each growth data block;
Subpool creation module, the growth data block based on source pond create the subpool based on source pond;
Capacity transferring module, by source pond residual capacity spatial migration to subpool.
9. a kind of storage pool construction device as claimed in claim 8, it is characterized in that, in addition to subpool capacity alarm module, Subpool capacity can reset warning level when reducing, and give a warning information when subpool capacity reaches the warning threshold set.
CN201710800686.6A 2017-09-07 2017-09-07 A kind of storage pool construction method and device Pending CN107577431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710800686.6A CN107577431A (en) 2017-09-07 2017-09-07 A kind of storage pool construction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710800686.6A CN107577431A (en) 2017-09-07 2017-09-07 A kind of storage pool construction method and device

Publications (1)

Publication Number Publication Date
CN107577431A true CN107577431A (en) 2018-01-12

Family

ID=61031268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710800686.6A Pending CN107577431A (en) 2017-09-07 2017-09-07 A kind of storage pool construction method and device

Country Status (1)

Country Link
CN (1) CN107577431A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062748A (en) * 2018-08-10 2018-12-21 郑州云海信息技术有限公司 A kind of automatic test approach and device of mirror image volume specification function
CN109189583A (en) * 2018-09-20 2019-01-11 郑州云海信息技术有限公司 A kind of distributed lock implementation method and device
WO2021044250A1 (en) * 2019-09-06 2021-03-11 International Business Machines Corporation Converting large extent storage pools into small extent storage pools in place

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955912A (en) * 2006-10-13 2007-05-02 清华大学 Method for distributing resource in large scale storage system
CN103365781A (en) * 2012-03-29 2013-10-23 国际商业机器公司 Method and device for dynamically reconfiguring storage system
CN106020715A (en) * 2015-03-31 2016-10-12 国际商业机器公司 Storage pool capacity management
US20170242610A1 (en) * 2016-02-23 2017-08-24 International Business Machines Corporation Determining maximum volume size

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955912A (en) * 2006-10-13 2007-05-02 清华大学 Method for distributing resource in large scale storage system
CN103365781A (en) * 2012-03-29 2013-10-23 国际商业机器公司 Method and device for dynamically reconfiguring storage system
CN106020715A (en) * 2015-03-31 2016-10-12 国际商业机器公司 Storage pool capacity management
US20170242610A1 (en) * 2016-02-23 2017-08-24 International Business Machines Corporation Determining maximum volume size

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062748A (en) * 2018-08-10 2018-12-21 郑州云海信息技术有限公司 A kind of automatic test approach and device of mirror image volume specification function
CN109189583A (en) * 2018-09-20 2019-01-11 郑州云海信息技术有限公司 A kind of distributed lock implementation method and device
CN109189583B (en) * 2018-09-20 2021-10-01 郑州云海信息技术有限公司 Distributed lock implementation method and device
WO2021044250A1 (en) * 2019-09-06 2021-03-11 International Business Machines Corporation Converting large extent storage pools into small extent storage pools in place
CN114341794A (en) * 2019-09-06 2022-04-12 国际商业机器公司 Converting large extent storage pools to small extent storage pools as appropriate
GB2603326A (en) * 2019-09-06 2022-08-03 Ibm Converting large extent storage pools into small extent storage pools in place
GB2603326B (en) * 2019-09-06 2023-02-08 Ibm Converting large extent storage pools into small extent storage pools in place

Similar Documents

Publication Publication Date Title
CN104317742B (en) Automatic thin-provisioning method for optimizing space management
CN109783004A (en) The data processing method of data memory device and memory device
CN103514249B (en) A kind of automatic data reduction and system and storage device
CN104461390B (en) Write data into the method and device of imbricate magnetic recording SMR hard disks
CN103761053B (en) A kind of data processing method and device
CN105718217B (en) A kind of method and device of simplify configuration storage pool data sign processing
CN109428913B (en) Storage capacity expansion method and device
CN109445713A (en) A kind of storage state recording method, system and the associated component of metadata volume
CN107577431A (en) A kind of storage pool construction method and device
CN103440207A (en) Caching method and caching device
CN104182184A (en) Distributed block storing and cloning method
CN105389376B (en) Fragmentation-free multimedia data storage method and system based on continuous blocks
CN108089825B (en) Storage system based on distributed cluster
CN108399050B (en) Data processing method and device
CN101620569A (en) Expansion method of logical volume storage space
CN108874688A (en) A kind of message data caching method and device
US11385900B2 (en) Accessing queue data
CN104216664B (en) Network volume creation method, date storage method, storage device and storage system
CN107092443B (en) Data migration method and device
CN107844436B (en) Organization management method, system and storage system for dirty data in cache
CN103020201B (en) A kind of system that stores simplifies configuration storage pool and the method for organization and administration automatically
CN107037988B (en) A kind of flash memory safety deleting method and system based on file-level granularity
CN103823641B (en) The virtual volume system of a kind of on-line rapid estimation and its implementation
CN104951242B (en) Method and apparatus for relocating data automatically between storage array
CN104391802A (en) Streamline pool metadata node refreshing consistency protecting method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180112