CN105260140A - Disk size monitoring method and apparatus - Google Patents

Disk size monitoring method and apparatus Download PDF

Info

Publication number
CN105260140A
CN105260140A CN201510689602.7A CN201510689602A CN105260140A CN 105260140 A CN105260140 A CN 105260140A CN 201510689602 A CN201510689602 A CN 201510689602A CN 105260140 A CN105260140 A CN 105260140A
Authority
CN
China
Prior art keywords
capacity
disk
occupancy
early warning
warning information
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
CN201510689602.7A
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510689602.7A priority Critical patent/CN105260140A/en
Publication of CN105260140A publication Critical patent/CN105260140A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a disk size monitoring method and an apparatus. The method comprises acquiring current first occupancy rate of a first disk. The first occupancy rate comprises a specific value between first occupation capacity and first original capacity; the first occupation capacity consists of capacity occupying storage space of the first disk; and the first original capacity comprises maximum storage space capacity of the first disk. When a user stores an application program to the disk, current occupancy capacity of the disk can be acquired, so a problem that the application program cannot be written to the disk due to inadequate storage space; and disk utilization rate can be improved.

Description

Disk size method for supervising and device
Technical field
The present invention relates to computer realm, particularly relate to a kind of disk size method for supervising and device.
Background technology
Along with the development of science and technology, computing machine has become a part indispensable in people's daily life and work.
Usually, people by application storage in disk, to make computing machine according to the program stored in disk, automatically, high speed processing mass data.If disk size is not enough, or the problem of application program itself, all may cause application program to write disk, and then cause important application program normally not run.
But, state in realization in the process of prior art, those skilled in the art find, in (SuSE) Linux OS, when no matter which kind of situation above-mentioned causes application program cannot write disk, all only cannot to the information of this this application program of disk storage to user's prompting, application program cannot write the reason of disk to cause user to determine, and then causes the service efficiency of disk lower.
Summary of the invention
The invention provides a kind of disk size method for supervising and device, in order to solve the problem of application storage at disk.
First aspect of the present invention is to provide a kind of disk size method for supervising,
Obtain the first occupancy that the first disk is current, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk;
According to described first occupancy, determine whether to send early warning information to user, described early warning information takies capacity in order to point out described in user described in disk.
Further, the first occupancy that described acquisition first disk is current, comprising:
Obtain the usage data of at least one disk, described usage data at least comprise each disk raw capacity, take capacity and residual capacity;
According to described usage data, determine the first usage data of described first disk, described first usage data at least comprises described first raw capacity and described first and takies at least one or its combination in capacity;
Described first raw capacity and described first are taken volume ratio comparatively, obtains the first occupancy that described first disk is current.
Further, described according to described first occupancy, determine whether to send early warning information to user, comprising:
If described first occupancy is greater than preset value, then send described early warning information to user;
If described first occupancy is less than or equal to described preset value, then do not send described early warning information to user.
Further, also comprise: arrange presupposed information, described presupposed information comprises the destination address described early warning information sent;
Describedly send described early warning information to user, comprising:
According to presupposed information, the destination address to presupposed information instruction sends described early warning information.
Second aspect of the present invention is to provide a kind of disk size supervising device, comprising:
Acquisition module, for obtaining the first current occupancy of the first disk, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk;
Sending module, for according to described first occupancy, determine whether to send early warning information to user, described early warning information takies capacity in order to point out described in user described in disk.
Further, described acquisition module, specifically for obtaining the usage data of at least one disk, described usage data at least comprise each disk raw capacity, take capacity and residual capacity; According to described usage data, determine the first usage data of described first disk, described first usage data at least comprises described first raw capacity and described first and takies at least one or its combination in capacity; Described first raw capacity and described first are taken volume ratio comparatively, obtains the first occupancy that described first disk is current.
Further, described sending module, if be greater than preset value specifically for described first occupancy, then sends described early warning information to user; If described first occupancy is less than or equal to described preset value, then do not send described early warning information to user.
Further, also comprise: module is set;
Describedly arrange module, for arranging presupposed information, described presupposed information comprises the destination address described early warning information sent;
Described sending module, also for according to presupposed information, the destination address to presupposed information instruction sends described early warning information.
In the present embodiment, by obtaining the first current occupancy of the first disk, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk.Achieve when user is to this application program of this disk storage, or user is in the process of this this application program of disk storage, can obtain disk current take capacity, thus to avoid because memory space inadequate causes application program to write disk, and then improve the service efficiency of disk.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of inventive disk capacity monitor method one embodiment;
Fig. 2 is the structural representation of inventive disk capacity monitor device one embodiment;
Fig. 3 is the structural representation of inventive disk capacity monitor device two embodiment.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the schematic flow sheet of inventive disk capacity monitor method one embodiment, and as shown in Figure 1, disk size method for supervising, comprising:
Step 101, obtain the first current occupancy of the first disk.
In the present embodiment, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk.
For example, according to predetermined period, obtain the first occupancy that the first disk is current.
First occupancy current for acquisition first disk at least comprises following implementation:
The first implementation, directly obtains the first current occupancy of the first disk.
The second implementation, first, obtain the usage data of at least one disk, described usage data at least comprise each disk raw capacity, take capacity and residual capacity, then, according to described usage data, determine the first usage data of described first disk, described first usage data at least comprises described first raw capacity and described first and takies at least one or its combination in capacity; Then, described first raw capacity and described first are taken volume ratio comparatively, obtains the first occupancy that described first disk is current.For example, in (SuSE) Linux OS, one terminal device, as server or computer can be connected with multiple disk, first checked the service condition of disk by df order, then, filter out the first usage data of the first disk, then, by the data field in awk order acquisition first disk in utilization rate, thus obtain the first occupancy.
Step 102, according to described first occupancy, determine whether to send early warning information to user.
In the present embodiment, described early warning information takies capacity in order to what point out disk described in user.
In the present embodiment, by obtaining the first current occupancy of the first disk, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk.Achieve when user is to this application program of this disk storage, or user is in the process of this this application program of disk storage, can obtain disk current take capacity, thus to avoid because memory space inadequate causes application program to write disk, and then improve the service efficiency of disk.
On the basis of above-described embodiment, described according to described first occupancy, determine whether to send early warning information to user, comprising:
If described first occupancy is greater than preset value, then send described early warning information to user;
If described first occupancy is less than or equal to described preset value, then do not send described early warning information to user.
Further, on the basis of above-described embodiment, can also comprise: arrange presupposed information, described presupposed information comprises the destination address described early warning information sent;
Describedly send described early warning information to user, comprising:
According to presupposed information, the destination address to presupposed information instruction sends described early warning information.
For example, the threshold value arranging a disk occupancy is 95%, if exceed this threshold value, then informs the user alarm.In notice early warning script, notice user mail address, alarm disk use information are set, take appropriate measures according to disk situation to facilitate user.
Fig. 2 is the structural representation of inventive disk capacity monitor device one embodiment, and as shown in Figure 2, this disk size supervising device, comprising: acquisition module 21 and sending module 22.Wherein,
Acquisition module 21, for obtaining the first current occupancy of the first disk, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk;
Sending module 22, for according to described first occupancy, determine whether to send early warning information to user, described early warning information takies capacity in order to point out described in user described in disk.
In the present embodiment, by obtaining the first current occupancy of the first disk, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk.Achieve when user is to this application program of this disk storage, or user is in the process of this this application program of disk storage, can obtain disk current take capacity, thus to avoid because memory space inadequate causes application program to write disk, and then improve the service efficiency of disk.
On the basis of above-described embodiment, described acquisition module 21, specifically for obtaining the usage data of at least one disk, described usage data at least comprise each disk raw capacity, take capacity and residual capacity; According to described usage data, determine the first usage data of described first disk, described first usage data at least comprises described first raw capacity and described first and takies at least one or its combination in capacity; Described first raw capacity and described first are taken volume ratio comparatively, obtains the first occupancy that described first disk is current.
Further, on the basis of above-described embodiment, described sending module 22, if be greater than preset value specifically for described first occupancy, then sends described early warning information to user; If described first occupancy is less than or equal to described preset value, then do not send described early warning information to user.
Fig. 3 is the structural representation of inventive disk capacity monitor device two embodiment, and as shown in Figure 3, this disk size supervising device, can also comprise: arrange module 23;
Describedly arrange module 23, for arranging presupposed information, described presupposed information comprises the destination address described early warning information sent;
Described sending module 22, also for according to presupposed information, the destination address to presupposed information instruction sends described early warning information.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (8)

1. a disk size method for supervising, is characterized in that, comprising:
Obtain the first occupancy that the first disk is current, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk;
According to described first occupancy, determine whether to send early warning information to user, described early warning information takies capacity in order to point out described in user described in disk.
2. method according to claim 1, is characterized in that, the first occupancy that described acquisition first disk is current, comprising:
Obtain the usage data of at least one disk, described usage data at least comprise each disk raw capacity, take capacity and residual capacity;
According to described usage data, determine the first usage data of described first disk, described first usage data at least comprises described first raw capacity and described first and takies at least one or its combination in capacity;
Described first raw capacity and described first are taken volume ratio comparatively, obtains the first occupancy that described first disk is current.
3. method according to claim 1 and 2, is characterized in that, described according to described first occupancy, determines whether to send early warning information to user, comprising:
If described first occupancy is greater than preset value, then send described early warning information to user;
If described first occupancy is less than or equal to described preset value, then do not send described early warning information to user.
4. method according to claim 3, is characterized in that, also comprises: arrange presupposed information, and described presupposed information comprises the destination address described early warning information sent;
Describedly send described early warning information to user, comprising:
According to presupposed information, the destination address to presupposed information instruction sends described early warning information.
5. a disk size supervising device, is characterized in that, comprising:
Acquisition module, for obtaining the first current occupancy of the first disk, described first occupancy comprises the ratio that first takies capacity and the first raw capacity, described first takies the capacity that capacity comprises the storage space taking described first disk, and described first raw capacity comprises the capacity of the maximum memory space of described first disk;
Sending module, for according to described first occupancy, determine whether to send early warning information to user, described early warning information takies capacity in order to point out described in user described in disk.
6. device according to claim 5, is characterized in that, described acquisition module, specifically for obtaining the usage data of at least one disk, described usage data at least comprise each disk raw capacity, take capacity and residual capacity; According to described usage data, determine the first usage data of described first disk, described first usage data at least comprises described first raw capacity and described first and takies at least one or its combination in capacity; Described first raw capacity and described first are taken volume ratio comparatively, obtains the first occupancy that described first disk is current.
7. the device according to claim 5 or 6, is characterized in that, described sending module, if be greater than preset value specifically for described first occupancy, then sends described early warning information to user; If described first occupancy is less than or equal to described preset value, then do not send described early warning information to user.
8. device according to claim 7, is characterized in that, also comprises: arrange module;
Describedly arrange module, for arranging presupposed information, described presupposed information comprises the destination address described early warning information sent;
Described sending module, also for according to presupposed information, the destination address to presupposed information instruction sends described early warning information.
CN201510689602.7A 2015-10-21 2015-10-21 Disk size monitoring method and apparatus Pending CN105260140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510689602.7A CN105260140A (en) 2015-10-21 2015-10-21 Disk size monitoring method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510689602.7A CN105260140A (en) 2015-10-21 2015-10-21 Disk size monitoring method and apparatus

Publications (1)

Publication Number Publication Date
CN105260140A true CN105260140A (en) 2016-01-20

Family

ID=55099847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510689602.7A Pending CN105260140A (en) 2015-10-21 2015-10-21 Disk size monitoring method and apparatus

Country Status (1)

Country Link
CN (1) CN105260140A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657380A (en) * 2016-03-22 2016-06-08 国网山东省电力公司章丘市供电公司 Substation image monitoring system
CN106250056A (en) * 2016-07-19 2016-12-21 宇龙计算机通信科技(深圳)有限公司 Date storage method and device
CN108959017A (en) * 2017-05-23 2018-12-07 北京视联动力国际信息技术有限公司 A kind of super expected occupancy method for early warning of disk and device
CN109271381A (en) * 2018-08-21 2019-01-25 中国平安人寿保险股份有限公司 Processing method, device, computer equipment and the storage medium of test data table

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005094245A (en) * 2003-09-16 2005-04-07 Victor Co Of Japan Ltd Motion detector
CN101291250A (en) * 2008-04-25 2008-10-22 北京泰得思达科技发展有限公司 Alarming method of memory space inadequate in network storage system
CN102981939A (en) * 2012-11-07 2013-03-20 曙光信息产业股份有限公司 Disc monitoring method
CN103399941A (en) * 2013-08-13 2013-11-20 广州中国科学院软件应用技术研究所 Distributed file processing method, device and system
CN103488575A (en) * 2013-08-12 2014-01-01 记忆科技(深圳)有限公司 Method for dynamically adjusting reserved space of solid-state hard disk and solid-state hard disk
CN103927230A (en) * 2014-03-25 2014-07-16 优视科技有限公司 Memory usage feedback method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005094245A (en) * 2003-09-16 2005-04-07 Victor Co Of Japan Ltd Motion detector
CN101291250A (en) * 2008-04-25 2008-10-22 北京泰得思达科技发展有限公司 Alarming method of memory space inadequate in network storage system
CN102981939A (en) * 2012-11-07 2013-03-20 曙光信息产业股份有限公司 Disc monitoring method
CN103488575A (en) * 2013-08-12 2014-01-01 记忆科技(深圳)有限公司 Method for dynamically adjusting reserved space of solid-state hard disk and solid-state hard disk
CN103399941A (en) * 2013-08-13 2013-11-20 广州中国科学院软件应用技术研究所 Distributed file processing method, device and system
CN103927230A (en) * 2014-03-25 2014-07-16 优视科技有限公司 Memory usage feedback method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657380A (en) * 2016-03-22 2016-06-08 国网山东省电力公司章丘市供电公司 Substation image monitoring system
CN106250056A (en) * 2016-07-19 2016-12-21 宇龙计算机通信科技(深圳)有限公司 Date storage method and device
WO2018014423A1 (en) * 2016-07-19 2018-01-25 宇龙计算机通信科技(深圳)有限公司 Data storage method and apparatus
CN108959017A (en) * 2017-05-23 2018-12-07 北京视联动力国际信息技术有限公司 A kind of super expected occupancy method for early warning of disk and device
CN109271381A (en) * 2018-08-21 2019-01-25 中国平安人寿保险股份有限公司 Processing method, device, computer equipment and the storage medium of test data table

Similar Documents

Publication Publication Date Title
US8418003B2 (en) Log collecting apparatus, program, method, and system
CN105260140A (en) Disk size monitoring method and apparatus
CN113836084A (en) Data storage method, device and system
CN107506266B (en) Data recovery method and system
CN103475544A (en) Service monitoring method based on cloud resource monitoring platform
CN104020960A (en) Method and device for conducting partition formatting and mounting on hard disk
EP2919120A1 (en) Memory monitoring method and related device
CN112311617A (en) Configured data monitoring and alarming method and system
CN106991031B (en) Implementation method for SMART information monitoring
CN103559124A (en) Fast fault detection method and device
CN112527746A (en) Log storage method, device, equipment and storage medium
CN106897431B (en) Log export method and system
US9791911B2 (en) Determining whether a change in power usage is abnormal when power usage exceeds a threshold based on additional metrics of components in an electronic device
CN103713972A (en) Incremental backup system and method
CN103455391B (en) A kind of apparatus and method of data protection of dynamic conditioning
US20210208945A1 (en) Information processing apparatus, information processing method, and computer readable medium
CN107330061B (en) File deletion method and device based on distributed storage
CN108073705B (en) Distributed mass data aggregation acquisition method
CN103605600B (en) A kind of method and system of mobile terminal storage card memory element read-write number of times record
CN105630653A (en) CPU vacancy rate determination method and device for Docker container
CN109284275B (en) Cloud platform virtual machine file system monitoring method and device
CN106445789A (en) Monitoring visualizing method and system
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN105354491A (en) Standby state detection method and device of intelligent terminal
CN104461754B (en) A kind of method and apparatus for monitoring eMMC

Legal Events

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

Application publication date: 20160120