CN109445706A - Disk partition expansion method, device and server-side - Google Patents

Disk partition expansion method, device and server-side Download PDF

Info

Publication number
CN109445706A
CN109445706A CN201811274074.9A CN201811274074A CN109445706A CN 109445706 A CN109445706 A CN 109445706A CN 201811274074 A CN201811274074 A CN 201811274074A CN 109445706 A CN109445706 A CN 109445706A
Authority
CN
China
Prior art keywords
disk partition
capacity
dilatation
remaining space
disk
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
CN201811274074.9A
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.)
New H3C Information Technologies Co Ltd
Original Assignee
Unis Huashan Information Technologies 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 Unis Huashan Information Technologies Co Ltd filed Critical Unis Huashan Information Technologies Co Ltd
Priority to CN201811274074.9A priority Critical patent/CN109445706A/en
Publication of CN109445706A publication Critical patent/CN109445706A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure proposes a kind of disk partition expansion method, device and server-side, is related to technical field of memory.Server-side sends disk residual capacity acquisition instruction to remote equipment, and receive the remaining space capacity of disk partition of the remote equipment according to the remote equipment of disk residual capacity acquisition instruction transmission, when there is the remaining space off-capacity of disk partition, disk partition dilatation instruction is sent to remote equipment so that the disk partition of remaining space off-capacity is by dilatation.The server-side passes through the remaining space capacity for remotely judging each disk partition on remote equipment, when spatial content is unsatisfactory for business need, make the disk partition of remaining space off-capacity automatically by dilatation by remotely sending disk partition dilatation instruction, it is unreasonable to solve the problems, such as that disk resource occupies, order is manually operated without system manager in whole process, the efficiency of disk partition dilatation is improved, the technical effect of dynamic expansion disk partition capacity is realized.

Description

Disk partition expansion method, device and server-side
Technical field
This disclosure relates to technical field of memory, in particular to a kind of disk partition expansion method, device and service End.
Background technique
LVM (Logical Volume Manager, logical volume management) is to be managed under Linux environment to disk partition A kind of mechanism, user without shut down in the case where adjust each partition size with can be convenient.Currently, when server, a When the Insufficient disk spaces of equipment such as people's computer (Personal Computer, PC), system manager's manual input commands is needed Increase disk resource step by step, but also needs to look through a great amount of information and just can know that these orders or tool, once accidentally grasp It may cause the collapse of original system.The logical volume management function of Linux, although can be convenient ground without shutting down Each partition size is adjusted, the flexibility of disk partition management is improved, but needs administrator to carry out command operation manually, and manage Reason person is it should be understood that the function of logical volume management limits non-special so that the command operation to administrator proposes high requirement The use of industry personage.
Summary of the invention
The disclosure is designed to provide a kind of disk partition expansion method, device and server-side, to realize disk partition Automation dilatation.
To achieve the goals above, the disclosure the technical solution adopted is as follows:
In a first aspect, the disclosure proposes a kind of disk partition expansion method, it is applied to server-side, the server-side and distal end Equipment communication connection, which comprises Xiang Suoshu remote equipment sends disk residual capacity acquisition instruction;Receive the distal end The remaining space capacity for the disk partition that equipment is sent according to the disk residual capacity acquisition instruction;If there is the surplus of disk partition Complementary space off-capacity, Xiang Suoshu remote equipment sends disk partition dilatation instruction so that the disk of remaining space off-capacity divides By dilatation, the remaining space off-capacity of the disk partition refers to that the remaining space capacity of the disk partition is lower than default threshold in area Value.
Second aspect, the disclosure also propose a kind of disk partition flash chamber, are applied to server-side, the server-side and remote End equipment communication connection, described device includes: procurement of reserve capacity instruction sending module, surplus for sending disk to the remote equipment Covolume amount acquisition instruction;Capacity receiving module, for receiving the remote equipment according to the disk residual capacity acquisition instruction The remaining space capacity of the disk partition of transmission;Dilatation instruction sending module, for when the remaining space capacity for having disk partition When insufficient, Xiang Suoshu remote equipment sends disk partition dilatation instruction so that the disk partition of remaining space off-capacity is expanded Hold, the remaining space off-capacity of the disk partition refers to the remaining space capacity of the disk partition lower than preset threshold.
The third aspect, the disclosure also propose a kind of computer readable storage medium, are stored thereon with computer program, described Computer program is read out by the processor and realizes method described in above-mentioned first aspect when running.
Fourth aspect, the disclosure also propose a kind of server-side, the computer-readable storage including being stored with computer program Medium and processor when the computer program is read and run by the processor, realize side described in above-mentioned first aspect Method.
Compared with the prior art, the disclosure has the advantages that
Disk partition expansion method, device and server-side provided by the disclosure, server-side are sent to the remote equipment Disk residual capacity acquisition instruction receives the disk point that the remote equipment is sent according to the disk residual capacity acquisition instruction The remaining space capacity in area, when there is the remaining space off-capacity of disk partition, Xiang Suoshu remote equipment sends disk partition Dilatation instruction so that the disk partition of remaining space off-capacity by dilatation, wherein the remaining space off-capacity of disk partition Refer to the remaining space capacity of the disk partition lower than preset threshold.I.e. server-side is by remotely judging each magnetic on remote equipment The remaining space capacity of disk subregion, when spatial content is unsatisfactory for business need, by remotely sending disk partition dilatation instruction Make the disk partition of remaining space off-capacity automatically by dilatation, it is unreasonable to solve the problems, such as that disk resource occupies, entire mistake Order is manually operated in Cheng Wuxu system manager, improves the efficiency of disk partition dilatation, realizes dynamic expansion disk partition The technical effect of capacity.
Other feature and advantage of the disclosure will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing disclosure understanding.The purpose of the disclosure and other advantages can be by written specifications, power Specifically noted structure is achieved and obtained in sharp claim and attached drawing.
Detailed description of the invention
In order to illustrate more clearly of the technical solution of the disclosure, letter will be made to attached drawing needed in the embodiment below It singly introduces, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as to range It limits, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other relevant attached drawings.
Fig. 1 shows the application environment schematic diagram of disk partition expansion method and device provided by the disclosure.
Fig. 2 shows the structural block diagrams of server-side provided by the disclosure.
Fig. 3 shows a kind of flow diagram of disk partition expansion method provided by the disclosure.
Fig. 4 shows another flow diagram of disk partition expansion method provided by the disclosure.
Fig. 5 shows the functional block diagram of disk partition flash chamber provided by the disclosure.
Icon: 100- server-side;200- remote equipment;300- network;400- disk partition flash chamber;110- storage Device;120- processor;130- communication interface;410- procurement of reserve capacity instruction sending module;420- capacity receiving module;430- dilatation Instruction sending module;440- identification information sending module;450- solution determining module;460- report generation module.
Specific embodiment
Below in conjunction with attached drawing in the disclosure, the technical solution in the disclosure is clearly and completely described, it is clear that Described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually retouched in attached drawing here The component for the disclosure stated and shown can be arranged and be designed with a variety of different configurations.Therefore, below to mentioning in the accompanying drawings The detailed description of the embodiment of the disclosure of confession is not intended to limit claimed the scope of the present disclosure, but is merely representative of this Disclosed selected embodiment.Based on embodiment of the disclosure, those skilled in the art are in the premise for not making creative work Under every other embodiment obtained, belong to the disclosure protection range.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Fig. 1 is please referred to, is the application environment schematic diagram of disk partition expansion method provided by the disclosure and device.Service End 100 is communicated to connect by network 300 and one or more remote equipments 200, to realize that server-side 100 is remote with one or more Data communication or interaction between end equipment 200.In the present embodiment, server-side 100 can be to the one or more remote equipment Disk resource occupancy situation on 200 is monitored, by the disk resource occupancy situation of timed collection remote equipment 200 and point Whether analysis needs to increase or delete disk resource, to realize to the disk resource on the one or more remote equipment 200 Supporting remote dynamic management.
In the present embodiment, which may be, but not limited to, network server, database server, cloud Server etc.;The remote equipment 200 can be virtual machine, be also possible to the entity device that operation has virtual machine, such as personal electricity Brain (personal computer, PC), server etc., the remote equipment 200 operating system (Operating System, OS) it is preferably (SuSE) Linux OS, and disk partition is managed using LVM mechanism, user is being not necessarily to remote equipment 200 The size of each disk partition can be easily adjusted in the case where shutdown.
As shown in Fig. 2, for the structural block diagram of server-side 100 provided by the disclosure.Server-side 100 may include memory 110, processor 120 and communication interface 130, the memory 110, processor 120 and communication interface 130, each element are mutual It is directly or indirectly electrically connected, to realize the transmission or interaction of data.For example, these elements between each other can by one or A plurality of communication bus or signal wire, which are realized, to be electrically connected.Memory 110 can be used for storing software program and module, such as disclosure institute Corresponding program instruction/the module of the disk partition expansion method and device of offer, processor 120 are stored in memory by executing Software program and module in 110, thereby executing various function application and data processing.The communication interface 130 can be used for Other node devices carry out the communication of signaling or data.
Wherein, memory 110 can be but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 120 may be a kind of IC chip, have signal handling capacity.The processor 120 can be logical With processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), specific integrated circuit (ASIC), ready-made programmable gate Array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It is appreciated that structure shown in Fig. 2 is only to illustrate, server-side 100 may also include than shown in Fig. 2 more or more Few component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can use hardware, software or its group It closes and realizes.
The disclosure additionally provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey The disk partition expansion method that the disclosure discloses is realized when sequence is executed by processor 120.
It referring to figure 3., is the flow diagram of disk partition expansion method provided by the disclosure.It should be noted that Disk partition expansion method described in the disclosure is not limitation with Fig. 3 and specific order as described below, it should be understood that In other embodiments, the sequence of disk partition expansion method part step described in the disclosure can phase according to actual needs Part steps interchangeable or therein also can be omitted or delete.The disk partition expansion method can be applied to above-mentioned clothes It is engaged in end 100, below detailed process shown in Fig. 3 being described in detail.
Step S101, Xiang Suoshu remote equipment 200 sends disk residual capacity acquisition instruction.
In the present embodiment, the sending method of the disk residual capacity acquisition instruction is periodicity sending, i.e. server-side 100 Disk residual capacity acquisition instruction periodically is sent to remote equipment 200, remote equipment 200 is receiving disk residue appearance When measuring acquisition instruction, then by the remaining space capacity feed-back of each disk partition to server-side 100.
It should be noted that in the present embodiment, which can be regarded as the logical volume (Logical in LVM Volume, LV), it is some logical partitions divided from volume group (Volume Group, VG), size can dynamically change. For example, when the space of a logical partition is not enough, some spaces can be divided from the remaining space of volume group to space not Enough logical partitions use.
Step S102 receives the disk point that the remote equipment 200 is sent according to the disk residual capacity acquisition instruction The remaining space capacity in area.
In the present embodiment, the residue for each disk partition that server-side 100 is fed back by timed collection remote equipment 200 Spatial content is monitored come the disk resource occupancy situation to remote equipment 200, to judge the disk of remote equipment 200 Whether resource is enough.
Step S103, if there is the remaining space off-capacity of disk partition, Xiang Suoshu remote equipment 200 sends disk partition So that the disk partition of remaining space off-capacity is by dilatation, the remaining space off-capacity of the disk partition is for dilatation instruction Refer to the remaining space capacity of the disk partition lower than preset threshold.
In the present embodiment, the insufficient critical value of spatial content of disk partition is preset in server-side 100 (on i.e. The preset threshold stated), when the remaining space capacity of some disk partition is lower than preset threshold, then judge the sky of the disk partition Between it is insufficient;When being lower than preset threshold there is no the remaining space capacity of disk partition, then judge that the space of the disk partition is filled Foot continues to collect the disk resource occupancy situation on remote equipment 200.Step S103 is specifically included: if there is disk partition Remaining space off-capacity is sent out according to the disc format of the disk partition of remaining space off-capacity to the remote equipment 200 Corresponding disk partition dilatation is sent to instruct, the disc format includes qcow2 format and raw format.I.e. when server-side 100 judges When the remaining space capacity of some disk partition is lower than preset threshold, then prepares to carry out dilatation to the disk partition, be needed before dilatation Judge disc format, according to different disc formats to remote equipment 200 send different disk partition dilatation instruct so that The disk partition is by dilatation.
It should be noted that in the present embodiment, when remote equipment 200 is virtual machine, then the virtual machine is receiving When the disk partition dilatation instructs, by being interacted with the hardware device (for example, server) where virtual machine, finally by this Hardware device executes disk partition dilatation instruction, to carry out dilatation to the disk partition;When remote equipment 200 sets for entity When standby, then the entity device can determine need according to disk partition dilatation instruction when receiving disk partition dilatation instruction The disk partition in the virtual machine of dilatation is wanted, and dilatation is carried out to the disk partition by executing disk partition dilatation instruction.
In the following, an example is provided, to send the mistake that disk partition dilatation instructs to remote equipment 200 to server-side 100 Journey is described in detail.Server-side 100 is when the disc format for viewing disk partition is qcow2 format, the step of dilatation operation Suddenly can include: 1, to remote equipment 200 send extension disk space instruction (for example, " #qemu-img resize Vm1.qcow2+10G ") former disk size is extended 10G;2, the instruction (example of starting virtual machine is sent to remote equipment 200 Such as, " #virsh start vm1 ");3, start subregion and read partition table again;4, by sending instruction " # to remote equipment 200 Pvcreate/dev/sdb1 " creates physical volume (Physical Volume, PV), sends instruction " #vgextend Volume group " VolGroup01 " is added in the physical volume "/dev/sdb1 " of creation by VolGroup01/dev/sdb1 ", sends instruction " # Lvextend-L 10G-n LV01 VolGroup01 " is with by the capacity extension 10G of logical volume " LV01 ", remote equipment 200 is logical It crosses and executes the dilatation that disk partition is realized in these disk partition dilatations instruction.Server-side 100 is in the disk for viewing disk partition Format be raw format when, dilatation operate the step of can include: 1, creation physical volume, for example, to remote equipment 200 send instruct "#pvcreate/dev/sdb1";2, using the physical volume of newly-increased physical volume extension script inadequate resource, as volume group increases New physical volume, for example, sending instruction " #vgextend VolGroup01/dev/sdb1 " to remote equipment 200, wherein "/ Dev/sdb1 " is newly-increased physical volume;3, logical volume is extended, for example, remote equipment 200 sends instruction " #lvextend-L 10G-n LV01 VolGroup01 " is with by the capacity extension 10G of logical volume " LV01 " ";4, dilatation is carried out to file system, from And realize the dilatation of disk partition.It should be noted that the capacity of disk partition extension can be by deleting other logical partitions Superfluous resource is obtained from the unallocated space on disk, can also be obtained by increasing new disk, the disclosure to this not It is limited.
As it can be seen that server-side 100 passes through the disk resource occupancy situation on timed collection remote equipment 200 and judges that distal end is set When the remaining space capacity of each disk partition is unsatisfactory for business need on standby 200, referred to by remotely sending disk partition dilatation Order makes the disk partition of remaining space off-capacity by dilatation, realizes that dynamic changes disk partition size;When remote equipment 200 has When multiple, server-side 100 can be monitored the disk resource occupancy situation of multiple remote equipment 200, thus to multiple The disk partition of remote equipment 200 carries out automation dilatation, simplifies operating process, improves dilatation efficiency.
Further, as shown in figure 4, the disk partition expansion method further include:
Step S104, when the disk partition dilatation of remaining space off-capacity success, Xiang Suoshu remote equipment 200 Default mark is returned to, the magnetic so as to the remote equipment 200 according to the default determining remaining space off-capacity of mark Disk subregion is by success dilatation.
In the present embodiment, when server-side 100 judges the dilatation success of the disk partition of the remaining space off-capacity, Default mark then is returned to remote equipment 200, remote equipment 200 receives the default mark, it may be determined that the disk partition dilatation Success.
Step S105, when the disk partition dilatation of remaining space off-capacity failure, according to the remote equipment 200 feedback information determines targeted solution from preset multiple solutions, and makes according to the targeted solution The disk partition of the remaining space off-capacity is again by dilatation.
In the present embodiment, the reason of common dilatation failure is previously stored in server-side 100 and corresponding solution Scheme, server-side 100 search the reason of dilatation fails according to the feedback information of remote equipment 200, and then true according to failure cause Make corresponding targeted solution.For example, when the feedback information of remote equipment 200 is " Re-reading the Partition table failed with error 22:Invalid argument " can then determine the original of dilatation failure Because being to occupy disk there are also process, corresponding solution is to check occupancy process by instruction " lsof ", then using referring to " kill " is enabled to stop these processes;When determining failure cause is that OS does not support LVM, corresponding solution is that replacement is supported The OS of LVM;Do not carry out UMOUNT division operation, when causing dilatation unsuccessful, corresponding solution first when dilatation are as follows: logical Cross instruction " mke2fs-n/dev/hba1 finds superblock position ";Pass through instruction " e2fsck-b 32768/dev/hba1 " Superblock is repaired, wherein "/dev/hba1 " is device name, " 32768 " are superblock position;When dilatation to original Extension subregion is operated when the error occurs, and corresponding solution is that the tool of extension subregion is checked before operation extends subregion Body partitioning scenario stops operation if comprising multiple logical partitions.When server-side 100 is determined from above-mentioned multiple solutions Out when targeted solution, is sent and instructed to remote equipment 200 according to the targeted solution, disk partition is expanded again Hold, i.e., increases retry mechanism in the present embodiment, it, can be according to the targeted solution determined when failing to disk partition dilatation Re-start the dilatation of disk partition.
Further, when the disk partition of remaining space off-capacity again by dilatation after, the disk partition dilatation Method further include:
Step S106, generate the remaining space off-capacity disk partition dilatation failure the reason of analytical statement and will The analysis of causes report is sent to the remote equipment 200.
In the present embodiment, server-side 100, can be according to remote equipment 200 when failing every time to the dilatation of disk partition Feedback information the reason of searching dilatation failure generational verctor analytical statement, and analysis of causes report is fed back into remote equipment 200, so that user checks.
Further, in the present embodiment, server-side 100 is receiving the surplus of the disk partition of the transmission of remote equipment 200 After complementary space capacity, the disk partition expansion method further include:
Step S107 generates capacity analysis report according to the remaining space capacity of the disk partition.
It is appreciated that step S107 can before any one step in step S103~S106 or any one It is executed after step, can also work together and execute with any one step in step S103~S106, the application does not limit this System.In other words, no matter whether the disk partition on remote equipment 200 needs to extend capacity, and server-side 100 can all generate accordingly Capacity analysis report and export, so that user checks the disk resource occupancy situation on one or more remote equipments 200.
It referring to figure 5., is the functional block diagram of disk partition flash chamber 400 provided by the disclosure.It needs It is bright, disk partition flash chamber 400 provided by the present embodiment, the technical effect and aforementioned side of basic principle and generation Method embodiment is identical, to briefly describe, does not refer to part in the present embodiment, can refer to corresponding interior in preceding method embodiment Hold.The disk partition flash chamber 400 refers to including procurement of reserve capacity instruction sending module 410, capacity receiving module 420, dilatation Enable sending module 430, identification information sending module 440, solution determining module 450 and report generation module 460.
It is appreciated that above-mentioned procurement of reserve capacity instruction sending module 410, capacity receiving module 420, dilatation instruction transmission mould Block 430, identification information sending module 440, solution determining module 450 and report generation module 460 can be to be stored in Reservoir 110 or the software function module and computer program being solidificated in the operating system of server-side 100, and can be processed Device 120 executes.
The procurement of reserve capacity instruction sending module 410, which is used to send the acquisition of disk residual capacity to the remote equipment 200, to be referred to It enables.
It is appreciated that the procurement of reserve capacity instruction sending module 410 can execute above-mentioned steps S101.
The capacity receiving module 420 is for receiving the remote equipment 200 according to the disk residual capacity acquisition instruction The remaining space capacity of the disk partition of transmission.
It is appreciated that the capacity receiving module 420 can execute above-mentioned steps S102.
The dilatation instruction sending module 430 is used for when there is the remaining space off-capacity of disk partition, to the distal end Equipment 200 sends disk partition dilatation instruction so that the disk partition of remaining space off-capacity is by dilatation, the disk partition Remaining space off-capacity refer to the remaining space capacity of the disk partition lower than preset threshold.
In the present embodiment, which is specifically used for when the remaining space capacity for having disk partition When insufficient, corresponding magnetic is sent to the remote equipment 200 according to the disc format of the disk partition of remaining space off-capacity Disk subregion dilatation instruction, the disc format includes qcow2 format and raw format.
It is appreciated that the dilatation instruction sending module 430 can execute above-mentioned steps S103.
The identification information sending module 440 is used for when the disk partition dilatation success to the remaining space off-capacity When, Xiang Suoshu remote equipment 200 returns to default mark, so that the remote equipment 200 is according to described in the default mark determination The disk partition of remaining space off-capacity is by success dilatation.
It is appreciated that the identification information sending module 440 can execute above-mentioned steps S104.
The solution determining module 450 is used for when the disk partition dilatation of remaining space off-capacity failure, Targeted solution is determined from preset multiple solutions according to the feedback information of the remote equipment 200, and according to institute Stating targeted solution makes the disk partition of the remaining space off-capacity again by dilatation.
It is appreciated that the solution determining module 450 can execute above-mentioned steps S105.
The report generation module 460 is used to make residue according to the targeted solution in solution determining module 450 The insufficient disk partition of spatial content after dilatation, is generated the disk partition dilatation failure of the remaining space off-capacity again The reason of analytical statement and the analysis of causes report is sent to the remote equipment 200.
The report generation module 460 is also used to receive the surplus of the disk partition of the transmission of remote equipment 200 in server-side 100 After complementary space capacity, capacity analysis report is generated according to the remaining space capacity of the disk partition.
It is appreciated that the report generation module 460 can execute above-mentioned steps S106 and step S107.
In conclusion disk partition expansion method, device and server-side provided by the disclosure, server-side is to the distal end Equipment sends disk residual capacity acquisition instruction, and receives the remote equipment and send out according to the disk residual capacity acquisition instruction The remaining space capacity for the disk partition sent, when there is the remaining space off-capacity of disk partition, Xiang Suoshu remote equipment hair Disk partition dilatation instruction is sent so that the disk partition of remaining space off-capacity is by dilatation.In this way, server-side is remote by judgement The remaining space capacity of each disk partition in end equipment remotely can be extended or delete to the capacity of each disk partition, The dynamic management and automation dilatation for realizing disk resource, it is unreasonable to solve the problems, such as that disk resource occupies, whole process is not necessarily to Order is manually operated in system manager, simplifies operating process, the requirement to system manager is low, improves dilatation efficiency.
It should be understood by those skilled in the art that, the disclosure can provide as the production of method, apparatus, equipment or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the disclosure Form.It can be used moreover, the disclosure can be used in the computer that one or more wherein includes computer usable program code The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.
The disclosure is flow chart and/or side of the reference according to disclosed method, device, equipment and computer program product Block diagram describes.It should be understood that each process and/or the side in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in frame and flowchart and/or the block diagram.These computer program instructions be can provide to logical With the processor of computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate a machine Device, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realizing in process The device for the function of being specified in figure one process or multiple processes and/or block diagrams one box or multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In several embodiments provided by the disclosure, it should be understood that disclosed device and method can also pass through Other modes are realized.Device and method embodiment described above is only schematical, for example, the flow chart in attached drawing The device of multiple embodiments according to the disclosure, the system in the cards of method and computer program product are shown with block diagram Framework, function and operation.In this regard, each box in flowchart or block diagram can represent a module, program segment or generation A part of code, a part of the module, section or code include one or more for realizing defined logic function Executable instruction.It should also be noted that function marked in the box can also be in some implementations as replacement Occur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, they Sometimes it can also execute in the opposite order, this depends on the function involved.It is also noted that block diagram and or flow chart In each box and the box in block diagram and or flow chart combination, can function or movement as defined in executing it is special Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the disclosure can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the disclosure is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server-side or network equipment etc.) execute each embodiment the method for the disclosure all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs Illustrate, herein, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element There is also other identical elements in journey, method, article or equipment.
The foregoing is merely the alternative embodiments of the disclosure, are not limited to the disclosure, for the skill of this field For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (13)

1. a kind of disk partition expansion method is applied to server-side, the server-side and remote equipment are communicated to connect, and feature exists In, which comprises
Disk residual capacity acquisition instruction is sent to the remote equipment;
Receive the remaining space capacity for the disk partition that the remote equipment is sent according to the disk residual capacity acquisition instruction;
If there is the remaining space off-capacity of disk partition, Xiang Suoshu remote equipment sends disk partition dilatation and instructs so that remaining For the insufficient disk partition of spatial content by dilatation, the remaining space off-capacity of the disk partition refers to the surplus of the disk partition Complementary space capacity is lower than preset threshold.
2. disk partition expansion method as described in claim 1, which is characterized in that if the remaining space for having disk partition Off-capacity, Xiang Suoshu remote equipment send the step of disk partition dilatation instructs and include:
If there is the remaining space off-capacity of disk partition, according to the disc format of the disk partition of remaining space off-capacity to The remote equipment sends corresponding disk partition dilatation instruction, and the disc format includes qcow2 format and raw format.
3. disk partition expansion method as described in claim 1, which is characterized in that if the remaining space for having disk partition Off-capacity, Xiang Suoshu remote equipment send disk partition dilatation instruction so that the disk partition of remaining space off-capacity is expanded After the step of appearance, the method also includes:
When the disk partition dilatation of remaining space off-capacity success, Xiang Suoshu remote equipment returns to default mark, with Toilet states remote equipment and determines the disk partition of the remaining space off-capacity by success dilatation according to the default mark.
4. disk partition expansion method as described in claim 1, which is characterized in that if the remaining space for having disk partition Off-capacity, Xiang Suoshu remote equipment send disk partition dilatation instruction so that the disk partition of remaining space off-capacity is expanded After the step of appearance, the method also includes:
When the disk partition dilatation of remaining space off-capacity failure, according to the feedback information of the remote equipment from pre- If multiple solutions in determine targeted solution, and make the remaining space capacity not according to the targeted solution The disk partition of foot is again by dilatation.
5. disk partition expansion method as claimed in claim 4, which is characterized in that described to make according to the targeted solution The disk partition of the remaining space off-capacity again by after the step of dilatation, the method also includes:
The reason of generating the disk partition dilatation failure of remaining space off-capacity analytical statement and by the analysis of causes Report is sent to the remote equipment.
6. disk partition expansion method as described in any one in claim 1-5, which is characterized in that the disk residual capacity obtains The sending method of instruction fetch is periodicity sending.
7. a kind of disk partition flash chamber is applied to server-side, the server-side and remote equipment are communicated to connect, and feature exists In described device includes:
Procurement of reserve capacity instruction sending module, for sending disk residual capacity acquisition instruction to the remote equipment;
Capacity receiving module, the disk point sent for receiving the remote equipment according to the disk residual capacity acquisition instruction The remaining space capacity in area;
Dilatation instruction sending module, for when there is the remaining space off-capacity of disk partition, Xiang Suoshu remote equipment to be sent So that the disk partition of remaining space off-capacity is by dilatation, the remaining space of the disk partition holds for disk partition dilatation instruction Amount deficiency refers to the remaining space capacity of the disk partition lower than preset threshold.
8. disk partition flash chamber as claimed in claim 7, which is characterized in that the dilatation instruction sending module is for working as When having the remaining space off-capacity of disk partition, according to the disc format of the disk partition of remaining space off-capacity to described Remote equipment sends corresponding disk partition dilatation instruction, and the disc format includes qcow2 format and raw format.
9. disk partition flash chamber as claimed in claim 7, which is characterized in that described device further include:
Identification information sending module, for when to the remaining space off-capacity disk partition dilatation success when, Xiang Suoshu Remote equipment returns to default mark, so that the remote equipment determines the remaining space off-capacity according to the default mark Disk partition by success dilatation.
10. disk partition flash chamber as claimed in claim 7, which is characterized in that described device further include:
Solution determining module, for when the remaining space off-capacity disk partition dilatation failure when, according to described The feedback information of remote equipment determines targeted solution from preset multiple solutions, and according to the target solution party Case makes the disk partition of the remaining space off-capacity again by dilatation.
11. disk partition flash chamber as claimed in claim 10, which is characterized in that described device further include:
Report generation module, for generate the remaining space off-capacity disk partition dilatation fail the reason of analytical statement And the analysis of causes report is sent to the remote equipment.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being read out by the processor and running, the method according to claim 1 to 5 is realized.
13. a kind of server-side, which is characterized in that computer readable storage medium and processing including being stored with computer program Device when the computer program is read and run by the processor, realizes the method according to claim 1 to 5.
CN201811274074.9A 2018-10-30 2018-10-30 Disk partition expansion method, device and server-side Pending CN109445706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811274074.9A CN109445706A (en) 2018-10-30 2018-10-30 Disk partition expansion method, device and server-side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811274074.9A CN109445706A (en) 2018-10-30 2018-10-30 Disk partition expansion method, device and server-side

Publications (1)

Publication Number Publication Date
CN109445706A true CN109445706A (en) 2019-03-08

Family

ID=65550239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811274074.9A Pending CN109445706A (en) 2018-10-30 2018-10-30 Disk partition expansion method, device and server-side

Country Status (1)

Country Link
CN (1) CN109445706A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321334A (en) * 2019-05-24 2019-10-11 平安银行股份有限公司 The method and device of database auto-partition dilatation
CN111913919A (en) * 2020-08-12 2020-11-10 湖北南邦创电科技有限公司 File storage management method and storage medium
CN113568714A (en) * 2021-09-27 2021-10-29 武汉四通信息服务有限公司 Disk management method, device, electronic equipment and storage medium
CN114168509A (en) * 2021-10-22 2022-03-11 中科苏州微电子产业技术研究院 Expansion control method and system of data acquisition chip
CN115809021A (en) * 2022-11-22 2023-03-17 小米汽车科技有限公司 Space sharing method and device of writable file system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159616A (en) * 2015-09-11 2015-12-16 浪潮(北京)电子信息产业有限公司 Disk space management method and device
CN105607868A (en) * 2015-12-14 2016-05-25 华为数字技术(成都)有限公司 Method and apparatus for capacity expansion of storage array
CN105955662A (en) * 2016-04-22 2016-09-21 浪潮(北京)电子信息产业有限公司 Method and system for expansion of K-DB data table space
CN107800730A (en) * 2016-08-30 2018-03-13 阿里巴巴集团控股有限公司 The expansion method and device of a kind of virtual disk

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105159616A (en) * 2015-09-11 2015-12-16 浪潮(北京)电子信息产业有限公司 Disk space management method and device
CN105607868A (en) * 2015-12-14 2016-05-25 华为数字技术(成都)有限公司 Method and apparatus for capacity expansion of storage array
CN105955662A (en) * 2016-04-22 2016-09-21 浪潮(北京)电子信息产业有限公司 Method and system for expansion of K-DB data table space
CN107800730A (en) * 2016-08-30 2018-03-13 阿里巴巴集团控股有限公司 The expansion method and device of a kind of virtual disk

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321334A (en) * 2019-05-24 2019-10-11 平安银行股份有限公司 The method and device of database auto-partition dilatation
CN110321334B (en) * 2019-05-24 2024-03-19 平安银行股份有限公司 Method and device for automatic partition capacity expansion of database
CN111913919A (en) * 2020-08-12 2020-11-10 湖北南邦创电科技有限公司 File storage management method and storage medium
CN113568714A (en) * 2021-09-27 2021-10-29 武汉四通信息服务有限公司 Disk management method, device, electronic equipment and storage medium
CN114168509A (en) * 2021-10-22 2022-03-11 中科苏州微电子产业技术研究院 Expansion control method and system of data acquisition chip
CN115809021A (en) * 2022-11-22 2023-03-17 小米汽车科技有限公司 Space sharing method and device of writable file system
CN115809021B (en) * 2022-11-22 2023-10-20 小米汽车科技有限公司 Space sharing method and device for writable file system

Similar Documents

Publication Publication Date Title
CN109445706A (en) Disk partition expansion method, device and server-side
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
CN105653398B (en) A kind of smart allocation operating system mirror method
CN105847088A (en) Virtual machine performance test system based on cloud service
CN104461649B (en) chip compatible method and device
CN105704188A (en) Deployment method and apparatus of applications and services
CN104639347A (en) Multi-cluster monitoring method and device, and system
CN113778486B (en) Method, device, medium and equipment for containerization processing of code pipeline
CN111190823A (en) UI automation test method, electronic device and computer readable storage medium
CN103440111B (en) The extended method in magnetic disk of virtual machine space, host and platform
CN103677821A (en) Method and device for publishing software development tool code
CN103377406A (en) System and method for managing test files
CN103995191A (en) Method and device for identifying model of air conditioner
CN110532056A (en) A kind of control recognition methods and device applied in user interface
CN115391427A (en) System, method, medium, and apparatus for automatic scaling of Impala
CN110278101A (en) A kind of method for managing resource and equipment
CN111813517A (en) Task queue allocation method and device, computer equipment and medium
US20170160842A1 (en) Method of generating display name of objects to be managed
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
US8959191B2 (en) Script modification suggestion
CN106453544B (en) Cloud environment and monitoring method and system thereof
CN114116487B (en) Pressure testing method and device, electronic equipment and storage medium
CN115599438A (en) Method, device, equipment and medium for constructing application program publishing package
CN111352664A (en) Distributed machine learning task starting method, system, equipment and storage medium
CN109684138A (en) A kind of visualization hard disk automatic test approach, device, terminal and storage medium

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
CB02 Change of applicant information

Address after: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: UNIS HUASHAN INFORMATION TECHNOLOGIES Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308

RJ01 Rejection of invention patent application after publication