CN105786985B - A kind of automatic expansion method of file system and device - Google Patents
A kind of automatic expansion method of file system and device Download PDFInfo
- Publication number
- CN105786985B CN105786985B CN201610086270.8A CN201610086270A CN105786985B CN 105786985 B CN105786985 B CN 105786985B CN 201610086270 A CN201610086270 A CN 201610086270A CN 105786985 B CN105786985 B CN 105786985B
- Authority
- CN
- China
- Prior art keywords
- file system
- expansion space
- target file
- parameter
- utilization rate
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000004458 analytical method Methods 0.000 claims description 11
- 208000018672 Dilatation Diseases 0.000 description 55
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 3
- 235000003642 hunger Nutrition 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000037351 starvation Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/122—File system administration, e.g. details of archiving or snapshots using management policies
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of automatic expansion method of file system and devices, this method comprises: obtaining the system utilization rate for each file system for including in storage system in real time, and the file system for determining that system utilization rate is greater than highest threshold value in file system is target file system;Reserved expansion space according to the quantity for the file system for including in the system utilization rate of each target file system, storage system and for carrying out dilatation to target file system, determines the practical expansion space of each target file system;It is that corresponding target file system carries out dilatation according to practical expansion space.Thus, when the system utilization rate of file system is greater than highest threshold value, automatically determine its practical expansion space, dilatation is carried out according to practical expansion space for it, intervention without staff, promptly and accurately target file system can be handled, be avoided since processing leads to user data loss not in time present in background technique, the generation for the case where user service is interrupted.
Description
Technical field
The present invention relates to technical field of data storage, more specifically to a kind of automatic expansion method of file system and
Device.
Background technique
It is responsible for management in operating system and the software mechanism of storage file information is known as file management system, abbreviation file system
System.The amount of capacity of file system often determines the storage service ability of storage system, in the use process of file system,
The user data to accumulate over a long period will exhaust the space of file system, at this point, dilatation is the unique of raising this document power system capacity
Method.
It is in the prior art usually to be expanded using the Dilatation interface that file system provides file system by staff
Hold, specifically, file system is internally provided with threshold value, when the amount of storage of file system reaches corresponding threshold value, can give work
Personnel send warning message, once the amount of storage of this document system reaches threshold peak, upper layer application will be unable to be written into again
Data, file system is in suspended state at this time, and therefore, it is necessary to staff to utilize Dilatation interface pair according to warning message in time
File system carries out dilatation.But it is inevitable, it may appear that if staff does not receive warning message for some reason,
However just within this period, upper layer application has a large amount of significant data that file system need to be written, then will appear due to work
Make personnel causes file system to be suspended for a long time without processing in time, and the demand of upper layer application is not being met, and will cause
The loss of user data, user service will also be forced to interrupt.
It is likely to occur in conclusion the prior art exists since processing leads to user data loss, user service not in time
The problem of the case where interruption.
Summary of the invention
The object of the present invention is to provide a kind of automatic expansion method of file system and devices, to solve to exist in the prior art
Be likely to occur since processing leads to user data loss not in time, the problem of the case where user service is interrupted.
To achieve the goals above, the invention provides the following technical scheme:
A kind of automatic expansion method of file system, comprising:
The system utilization rate for each file system for including in storage system is obtained in real time, and is determined in the file system
The file system that system utilization rate is greater than highest threshold value is target file system;
According to the file system for including in the system utilization rate of each target file system, the storage system
Quantity and for the target file system carry out dilatation reserved expansion space, determine each target file system
Practical expansion space;
It is that the corresponding target file system carries out dilatation according to the practical expansion space.
Preferably, further includes:
Determine that the system utilization rate for including in the storage system is less than highest threshold value and is greater than the file system of warning threshold
System, and warning message is sent to terminal corresponding with this document system according to predetermined manner;Wherein, the warning threshold is less than institute
State highest threshold value.
Preferably, further includes:
Determine that the system utilization rate for including in the storage system is less than warning threshold and is greater than the file system of lowest threshold
It unites, and sends the status information extremely terminal corresponding with this document system of this document system according to predetermined manner;Wherein, it is described most
Low threshold is less than the warning threshold, and the status information includes system utilization rate.
Preferably, the file system for determining that system utilization rate is greater than highest threshold value in the file system is file destination system
After system, further includes:
Judge in the setting information of the target file system whether to include the information for opening dilatation function, if it is,
Corresponding practical expansion space is determined for the target file system.
Preferably, the practical expansion space of each target file system is determined, comprising:
The capacity of each target file system is compared, and bigger according to capacity, the higher principle of priority
Priority is distributed for each target file system, is determined according to the priority of each target file system each described
The practical expansion space of target file system.
Preferably, further includes:
Each of if the priority of each target file system is all the same, it is determined that include in the storage system
The initial expansion space of file system be respective file system the first parameter, first parameter for the first preset ratio institute
State the ratio of the quantity of reserved expansion space and the file system;Determine the capacity of each file system of the second preset ratio
For the second parameter of respective file system;Determine the initial dilatation that each file system is subtracted by the reserved expansion space
The value that space obtains is third parameter;And it chooses in first parameter, second parameter and the third parameter and is not more than
One parameter of other parameters is the practical expansion space of corresponding target file system.
Preferably, the file system for determining that system utilization rate is greater than highest threshold value in the file system is file destination system
After system, further includes:
If there is no the reserved expansion space, then output error message.
A kind of automatic flash chamber of file system, comprising:
Module is obtained, for obtaining the system utilization rate for each file system for including in storage system in real time, and is determined
It is target file system that system utilization rate, which is greater than the file system of highest threshold value, in the file system;
Analysis module, for including according in the system utilization rate of each target file system, the storage system
The file system quantity and for the target file system carry out dilatation reserved expansion space, determine each institute
State the practical expansion space of target file system;
Dilatation module, for being that the corresponding target file system carries out dilatation according to the practical expansion space.
Preferably, analysis module includes:
First analytical unit, for the capacity of each target file system to be compared, and it is bigger according to capacity,
The higher principle of priority is that each target file system distributes priority, according to the excellent of each target file system
First grade determines the practical expansion space of each target file system.
Preferably, analysis module includes:
Second analytical unit, if the priority for each target file system is all the same, it is determined that described to deposit
The initial expansion space for each file system for including in storage system is the first parameter of respective file system, first parameter
For the ratio of the quantity of the reserved expansion space and file system of the first preset ratio;Determine the second preset ratio
The capacity of each file system is the second parameter of respective file system;Determination is subtracted each described by the reserved expansion space
The value that the initial expansion space of file system obtains is third parameter;And choose first parameter, second parameter and institute
State the practical expansion space that a parameter in third parameter no more than other parameters is corresponding target file system.
A kind of automatic expansion method of file system provided by the invention and device, this method comprises: obtaining storage system in real time
The system utilization rate for each file system for including in system, and determine that system utilization rate is greater than highest threshold value in the file system
File system be target file system;According in the system utilization rate of each target file system, the storage system
The quantity for the file system for including and reserved expansion space for carrying out dilatation to the target file system, determine every
The practical expansion space of a target file system;It is the corresponding target file system according to the practical expansion space
Carry out dilatation.By above-mentioned technical characteristic disclosed in the present application, when the system utilization rate of file system is greater than highest threshold value, from
It is dynamic to determine its practical expansion space, dilatation is carried out for it further according to practical expansion space, Jie without staff
Enter, promptly and accurately target file system can be handled, avoids present in background technique due to handling not in time
Lead to user data loss, the generation for the case where user service is interrupted.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the automatic expansion method of file system provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the automatic flash chamber of file system provided in an embodiment of the present invention;
Fig. 3 is a kind of program structure schematic diagram of the automatic flash chamber of file system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, it illustrates a kind of flow chart of the automatic expansion method of file system provided in an embodiment of the present invention,
It may comprise steps of:
S11: the system utilization rate for each file system for including in storage system is obtained in real time, and is determined in file system
The file system that system utilization rate is greater than highest threshold value is target file system.
When the system utilization rate of file system is greater than highest threshold value, illustrate that its system utilization rate is higher than reasonable range,
Therefore, it is necessary to carry out dilatation to it.And dilatation is then carried out to it when the system utilization rate of file system is greater than highest threshold value, it is real
It is also the selection for dilatation time point on border, the selection at dilatation time point determines the meaning of the automatic dilatation of file system, this
It is that memory space may be wasted due to too early dilatation, too late dilatation may result in the loss of user data, therefore, this Shen
Please in when the utilization rate of file system is greater than highest threshold value, determine that this document system is target file system, and carried out for it
Dilatation.Wherein, the selection of highest threshold value can be determined according to actual needs, such as 95%.
S12: according to the quantity for the file system for including in the system utilization rate of each target file system, storage system and
For carrying out the reserved expansion space of dilatation to target file system, the practical expansion space of each target file system is determined.
It should be noted that the step implies the step of the size of the quantity and reserved expansion space that obtain file system
Suddenly.Also, dilatation operation usually occurs in following environment: (1) including multiple file system, and each file system in storage system
The amount of capacity of system is different with system utilization rate, as IBM V7000 allows 256 file system of carry simultaneously;(2) All Files
The corresponding storage equipment of the reserved expansion space that staff specifies when system creation is same path;(3) synchronization may
There are multiple file system, that is, there are multiple target file systems and concurrently carry out dilatation operation.At this time, it may be necessary to consider it is above-mentioned because
Element, and then determine the practical expansion space of target file system, and carry out dilatation for it.
S13: being that corresponding target file system carries out dilatation according to practical expansion space.
By above-mentioned technical characteristic disclosed in the present application, when the system utilization rate of file system is greater than highest threshold value, from
It is dynamic to determine its practical expansion space, dilatation is carried out for it further according to practical expansion space, Jie without staff
Enter, promptly and accurately target file system can be handled, avoids present in background technique due to handling not in time
Lead to user data loss, the generation for the case where user service is interrupted.
In addition, suitable dilatation time point can be selected to make correct conjunction by above-mentioned technical characteristic disclosed in the present application
The dilatation of reason operates, and user is almost not felt by because dilatation is on the influence of own service bring, greatly improves storage system
The storage service ability and adaptability for entirety of uniting.And this method is realized in User space, therefore to different product, different files
System has preferable applicability.
In the automatic expansion method of a kind of file system provided in an embodiment of the present invention, can also include:
Determine that the system utilization rate for including in storage system is less than highest threshold value and is greater than the file system of warning threshold, and
Warning message is sent to terminal corresponding with this document system according to predetermined manner;Wherein, warning threshold is less than highest threshold value.
Wherein, the specific setting of predetermined manner and warning threshold can be determined according to actual needs.It can such as define
Warning threshold is 80%, and when the system utilization rate of file system is greater than 80%, sends the warning message of file system extremely
The corresponding terminal of staff, and when utilization rate is between 80% and 95%, warning message is periodically sent to work
The corresponding terminal of personnel, and the frequency for sending warning message can also increase with the raising of system utilization rate.Wherein, warning letter
Breath may include system utilization rate, to prompt staff, if needs are artificially handled.
And when the system utilization rate for including in determining storage system is less than warning threshold and is greater than the file system of lowest threshold
It unites, and sends the status information extremely terminal corresponding with this document system of this document system according to predetermined manner;Wherein, minimum threshold
Value is less than warning threshold, and status information includes system utilization rate.
Wherein, lowest threshold can be determined according to actual needs, and, when the system utilization rate of file system is less than police
When accusing threshold value and being greater than lowest threshold, it can then send above-mentioned status information often to reach a preset value or every pass through one
A preset period, then send above-mentioned status information.Such as when system utilization rate arrival 20%, 40%, 50%, 60%, point
Not Fa Song status information to the corresponding terminal of staff, the i.e. corresponding terminal of file system so that staff can and
When know the service condition of file system.
It should be noted that storage system can prompt whether staff is this when staff creates file system
File system opens automatic dilatation function, and then needing staff if on, is the specified reserved expansion space of this document system
Path.It is corresponding, determine system utilization rate in file system be greater than highest threshold value file system be target file system it
Afterwards, can also include:
Judge whether comprising opening the information of dilatation function in the setting information of target file system, if it is, being mesh
Mark file system determines corresponding practical expansion space, if it is not, then stopping operation.
In the automatic expansion method of a kind of file system provided in an embodiment of the present invention, the reality of each target file system is determined
Border expansion space may include:
The capacity of each target file system is compared, and bigger according to capacity, the higher principle of priority is every
A target file system distributes priority, and the reality of each target file system is determined according to the priority of each target file system
Border expansion space.
There are multiple file system of different capabilities size in storage system, when synchronization has multiple file system needs
When carrying out dilatation operation, that is, when there is multiple target file systems, the judgement of " starvation " degree depends on target file system
Amount of capacity.If tri- target file systems of app1_fs, app2_fs, app3_fs need while carrying out dilatation operation, wherein
The amount of capacity of target file system meets: app1_fs > app2_fs > app3_fs then determines app1_fs more " starvation ", it should
Preferentially by dilatation.Reason is exactly that the file system storage space of bigger capacity is depleted, illustrates its application to storage resource
Demand it is bigger.Therefore, can be that each target file system distributes practical expansion space according to priority, specifically can be for
Each priority distributes the expansion space etc. of corresponding specific gravity.
In addition, if the priority of each target file system is all the same, it is determined that each text for including in storage system
The initial expansion space of part system is the first parameter of respective file system, and the first parameter is the reserved dilatation of the first preset ratio
The ratio of the quantity of space and file system;The capacity for determining each file system of the second preset ratio is respective file system
The second parameter;Determine the value that the initial expansion space for subtracting each file system by reserving expansion space obtains for third ginseng
Number;And it chooses and is not more than a parameter of other parameters in the first parameter, the second parameter and third parameter for corresponding file destination
The practical expansion space of system.
Wherein, the first preset ratio and the second preset ratio can be determined according to actual needs, and such as first is default
Ratio can be 1/8th, and the second preset ratio can be a quarter, corresponding, the first parameter S are as follows:
S=M/N/8
Wherein, M is reserved expansion space, and N is the quantity for the file system for including in storage system.
Second parameter L are as follows:
L=m/4
Wherein, m is the amount of capacity of respective file system.
Third parameter P are as follows:
P=M- ∑ Sm1+Sm2 ...+Smn
Wherein, Sm1 indicates that the initial expansion space of first file system, Sm2 are the initial expansion of second file system
Hold space, and so on, Smn is the initial expansion space of n-th file system.
In the automatic expansion method of a kind of file system provided in an embodiment of the present invention, system utilization rate in file system is determined
Greater than highest threshold value file system be target file system after, can also include:
If there is no reserved expansion space, then output error message.
That is, checking whether there is the subregion/volume that can be used for dilatation in currently stored product, i.e., before carrying out dilatation operation
With the presence or absence of reserved expansion space, if it is present execute step S12, otherwise, then output error message, to facilitate work people
Member's timely learning.
It is corresponding with above method embodiment, the embodiment of the invention also provides a kind of automatic flash chamber of file system,
As shown in Fig. 2, may include:
Module 11 is obtained, for obtaining the system utilization rate for each file system for including in storage system in real time, and really
Determine system utilization rate in file system to be greater than the file system of highest threshold value to be target file system;
Analysis module 12, for according to the file for including in the system utilization rate of each target file system, storage system
The quantity of system and for target file system carry out dilatation reserved expansion space, determine the reality of each target file system
Border expansion space;
Dilatation module 13, for being that corresponding target file system carries out dilatation according to practical expansion space.
It should be noted that above-mentioned apparatus can be the User space program individually developed, storage system needs to integrate the journey
Sequence can just support the automatic dilatation function of file system.Specific embodiment are as follows:
(1) above procedure is run with the operation of storage system;
(2) when creating file system, prompting staff's this document system whether to open automatic dilatation function, (default is opened
It opens);
(3) after staff determines that this document system opens automatic dilatation function, prompt staff's setting is reserved to expand
Hold the path (dilatation that the storage equipment is used for file system) of the corresponding storage equipment in space;
(4) above procedure circulation obtains the system utilization rate of all file system for opening automatic dilatation function, and then holds
The corresponding dilatation operation of row.
As shown in figure 3, be a kind of program structure diagram of the automatic flash chamber of file system provided in an embodiment of the present invention,
It executes AUTO_GROWF S program code by the way of finger daemon periodically, and GET_FS_STATE program code is used for
Obtain the status information of file system, the amount of capacity of quantity, each file system including file system and file system
System utilization rate and other need the information obtained according to actual needs, acquisition modes be the User space interface that provides of file system with
And correlation/proc file;ANALYSIS program code be used for analyze GET_FS_STATE acquisition status information, it is resolved that need into
Target file system, the practical expansion space size of target file system of row dilatation, GROW_FS program code according to
The analysis result of ANALYSIS executes dilatation operation.
After above-mentioned apparatus starts and brings into operation, since it is finger daemon executive mode, interrupt signal is only received
When system can just terminate to exit, therefore without end mark in figure.Device reads text all activated in current storage system first
Part system, and by the Information encapsulation of these file system into structural body, it is stored in an orderly chained list, the sequence root of chained list
According to the big minispread of file system current capacities;When the state of Study document system, the current system of each file system is judged
Utilization rate, and then dilatation is carried out to the target file system for needing to carry out dilatation, if being not necessarily to dilatation, read again file system
Status information and update into corresponding structural body, if desired execute automatic dilatation operation, then by after this document System Expansion,
It executes again and obtains file system state information, recycle always, until being forced to exit.
In the automatic flash chamber of a kind of file system provided in an embodiment of the present invention, can also include:
Alert module, for determining that the system utilization rate for including in storage system is less than highest threshold value and greater than warning threshold
File system, and send warning message to terminal corresponding with this document system according to predetermined manner;Wherein, warning threshold is small
In highest threshold value.
In the automatic flash chamber of a kind of file system provided in an embodiment of the present invention, can also include:
State output module, for determining that the system utilization rate for including in storage system is less than warning threshold and greater than minimum
The file system of threshold value, and the status information of this document system is sent to end corresponding with this document system according to predetermined manner
End;Wherein, lowest threshold is less than warning threshold, and status information includes system utilization rate.
In the automatic flash chamber of a kind of file system provided in an embodiment of the present invention, can also include:
Judgment module, whether comprising opening the information of dilatation function in the setting information for judging target file system,
If it is, determining corresponding practical expansion space for target file system.
In the automatic flash chamber of a kind of file system provided in an embodiment of the present invention, can also include:
Mistake output module, for if there is no reserved expansion space, then output error message.
In the automatic flash chamber of a kind of file system provided in an embodiment of the present invention, analysis module may include:
First analytical unit, for the capacity of each target file system to be compared, and it is bigger according to capacity, preferentially
The higher principle of grade is that each target file system distributes priority, is determined according to the priority of each target file system each
The practical expansion space of target file system.
In the automatic flash chamber of a kind of file system provided in an embodiment of the present invention, analysis module includes:
Second analytical unit, if the priority for each target file system is all the same, it is determined that in storage system
The initial expansion space for each file system for including is the first parameter of respective file system, and the first parameter is the first default ratio
The ratio of the quantity of the reserved expansion space and file system of example;The capacity for determining each file system of the second preset ratio is
Second parameter of respective file system;Determine what the initial expansion space that each file system is subtracted by reserving expansion space obtained
Value is third parameter;And a parameter in the first parameter of selection, the second parameter and third parameter no more than other parameters is pair
Answer the practical expansion space of target file system.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest
Range.
Claims (6)
1. a kind of automatic expansion method of file system characterized by comprising
The system utilization rate for each file system for including in storage system is obtained in real time, and determines system in the file system
The file system that utilization rate is greater than highest threshold value is target file system;
According to the number for the file system for including in the system utilization rate of each target file system, the storage system
It measures and for the reserved expansion space to target file system progress dilatation, determines the reality of each target file system
Border expansion space;
It is that the corresponding target file system carries out dilatation according to the practical expansion space;
Determine the practical expansion space of each target file system, comprising:
The capacity of each target file system is compared, and bigger according to capacity, the higher principle of priority is every
A target file system distributes priority, determines each target according to the priority of each target file system
The practical expansion space of file system;
The method also includes:
If the priority of each target file system is all the same, it is determined that each file for including in the storage system
The initial expansion space of system is the first parameter of respective file system, and first parameter is the described pre- of the first preset ratio
Stay the ratio of the quantity of expansion space and the file system;The capacity for determining each file system of the second preset ratio is pair
Answer the second parameter of file system;Determine the initial expansion space that each file system is subtracted by the reserved expansion space
Obtained value is third parameter;And it chooses in first parameter, second parameter and the third parameter no more than other
One parameter of parameter is the practical expansion space of corresponding target file system.
2. the method according to claim 1, wherein further include:
Determine that the system utilization rate for including in the storage system is less than highest threshold value and is greater than the file system of warning threshold, and
Warning message is sent to terminal corresponding with this document system according to predetermined manner;Wherein, the warning threshold be less than it is described most
High threshold.
3. according to the method described in claim 2, it is characterized by further comprising:
Determine that the system utilization rate for including in the storage system is less than warning threshold and is greater than the file system of lowest threshold, and
The status information extremely terminal corresponding with this document system of this document system is sent according to predetermined manner;Wherein, the minimum threshold
Value is less than the warning threshold, and the status information includes system utilization rate.
4. the method according to claim 1, wherein determining that system utilization rate is greater than highest in the file system
The file system of threshold value is after target file system, further includes:
Judge in the setting information of the target file system whether to include the information for opening dilatation function, if it is, for institute
It states target file system and determines corresponding practical expansion space.
5. the method according to claim 1, wherein determining that system utilization rate is greater than highest in the file system
The file system of threshold value is after target file system, further includes:
If there is no the reserved expansion space, then output error message.
6. a kind of automatic flash chamber of file system characterized by comprising
Module is obtained, for obtaining the system utilization rate for each file system for including in storage system in real time, and described in determination
It is target file system that system utilization rate, which is greater than the file system of highest threshold value, in file system;
Analysis module, for according to the institute for including in the system utilization rate of each target file system, the storage system
The quantity of file system and the reserved expansion space for carrying out dilatation to the target file system are stated, determines each mesh
Mark the practical expansion space of file system;
Dilatation module, for being that the corresponding target file system carries out dilatation according to the practical expansion space;
Analysis module includes:
First analytical unit, for the capacity of each target file system to be compared, and it is bigger according to capacity, preferentially
The higher principle of grade is that each target file system distributes priority, according to the priority of each target file system
Determine the practical expansion space of each target file system;
Analysis module includes:
Second analytical unit, if the priority for each target file system is all the same, it is determined that the storage system
The initial expansion space for each file system for including in system is the first parameter of respective file system, and first parameter is the
The ratio of the quantity of the reserved expansion space and file system of one preset ratio;Determine each of second preset ratio
The capacity of file system is the second parameter of respective file system;It determines and each file is subtracted by the reserved expansion space
The value that the initial expansion space of system obtains is third parameter;And choose first parameter, second parameter and described
A parameter in three parameters no more than other parameters is the practical expansion space of corresponding target file system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610086270.8A CN105786985B (en) | 2016-02-15 | 2016-02-15 | A kind of automatic expansion method of file system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610086270.8A CN105786985B (en) | 2016-02-15 | 2016-02-15 | A kind of automatic expansion method of file system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105786985A CN105786985A (en) | 2016-07-20 |
CN105786985B true CN105786985B (en) | 2019-02-15 |
Family
ID=56403359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610086270.8A Active CN105786985B (en) | 2016-02-15 | 2016-02-15 | A kind of automatic expansion method of file system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105786985B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227839A (en) * | 2016-07-26 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | The expansion method of a kind of lustre file system and device |
CN106227472A (en) * | 2016-08-19 | 2016-12-14 | 浪潮(北京)电子信息产业有限公司 | A kind of from simplification volume expansion method and system |
CN107220340B (en) * | 2017-05-26 | 2021-03-02 | 苏州浪潮智能科技有限公司 | Method and device for automatic capacity expansion of CFS storage in virtualization system |
CN110968414A (en) * | 2018-09-28 | 2020-04-07 | 阿里巴巴集团控股有限公司 | Resource scaling method and device |
CN110825703B (en) * | 2019-11-01 | 2023-04-11 | 浪潮云信息技术股份公司 | Method for realizing elastic expansion and contraction of file system based on timing task |
CN111752489B (en) * | 2020-06-30 | 2022-06-17 | 重庆紫光华山智安科技有限公司 | Expansion method of PVC (polyvinyl chloride) module in Kubernetes and related device |
CN113190503B (en) * | 2021-05-08 | 2022-12-02 | 重庆紫光华山智安科技有限公司 | File system capacity expansion method and device, electronic equipment and storage medium |
CN115408442B (en) * | 2022-08-15 | 2023-03-10 | 云南大学 | Land cover distribution relation mining method based on expansion space apposition mode |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855093A (en) * | 2012-08-16 | 2013-01-02 | 浪潮(北京)电子信息产业有限公司 | System and method for realizing automatic thin provisioning dynamic capacity expansion of storage system |
CN104699807A (en) * | 2015-03-23 | 2015-06-10 | 上海新炬网络信息技术有限公司 | Automatic monitoring and expansion method for ORACLE data table space |
CN105262680A (en) * | 2015-10-21 | 2016-01-20 | 浪潮(北京)电子信息产业有限公司 | Multi-threaded NAS Gateway applied to cloud storage system |
-
2016
- 2016-02-15 CN CN201610086270.8A patent/CN105786985B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855093A (en) * | 2012-08-16 | 2013-01-02 | 浪潮(北京)电子信息产业有限公司 | System and method for realizing automatic thin provisioning dynamic capacity expansion of storage system |
CN104699807A (en) * | 2015-03-23 | 2015-06-10 | 上海新炬网络信息技术有限公司 | Automatic monitoring and expansion method for ORACLE data table space |
CN105262680A (en) * | 2015-10-21 | 2016-01-20 | 浪潮(北京)电子信息产业有限公司 | Multi-threaded NAS Gateway applied to cloud storage system |
Also Published As
Publication number | Publication date |
---|---|
CN105786985A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105786985B (en) | A kind of automatic expansion method of file system and device | |
CN109445869B (en) | Cross-cloud-adaptive micro-service management method and device and storage medium | |
CN105704188B (en) | Using the dispositions method and device with service | |
CN108563493A (en) | A kind of event-driven method, device, equipment and readable storage medium storing program for executing | |
CN103995787A (en) | Regulation and control method and device for camera applications | |
EP3528470B1 (en) | Control device, control system, control method, and control program | |
CN109710416B (en) | Resource scheduling method and device | |
CN109360564A (en) | The selection method and device of language identification mode, household electrical appliance | |
CN109739627B (en) | Task scheduling method, electronic device and medium | |
CN110489062A (en) | A kind of disk expansion method and system based on OpenStack environment | |
CN109871273A (en) | A kind of adaptive task moving method and device | |
CN109213530A (en) | A kind of communication connecting method based on USB, mobile terminal and storage medium | |
CN103870319B (en) | Information processing method, device and electronic equipment | |
CN110110306A (en) | Method for exhibiting data, device, terminal and computer readable storage medium | |
CN107065616A (en) | Inter-linked controlling method and device, computer-readable recording medium | |
CN115248692A (en) | Device and method for supporting cloud deployment of multiple deep learning framework models | |
CN103631586A (en) | Method and system for carrying out contextualization interactive processing | |
CN109683715A (en) | A kind of VR apparatus control method, device and computer readable storage medium | |
CN109286584A (en) | Fragmentation and reassembly method, device and equipment in a kind of multiple nucleus system | |
CN110377295A (en) | A kind of management Platform deployment method, device and equipment | |
CN104598192A (en) | Information processing method and electronic equipment | |
CN109542727B (en) | Information prompting method and device | |
CN111131440A (en) | Resource scheduling method and device and server | |
CN107025126A (en) | A kind of resource regulating method, NFVO and system | |
CN110502574A (en) | Information synchronization method, user equipment, storage medium and the device of cross-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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |