CN109032895A - A kind of detection method, device, equipment and storage medium monitoring fuse process - Google Patents
A kind of detection method, device, equipment and storage medium monitoring fuse process Download PDFInfo
- Publication number
- CN109032895A CN109032895A CN201810837864.7A CN201810837864A CN109032895A CN 109032895 A CN109032895 A CN 109032895A CN 201810837864 A CN201810837864 A CN 201810837864A CN 109032895 A CN109032895 A CN 109032895A
- Authority
- CN
- China
- Prior art keywords
- signal
- script
- detection script
- detection
- fuse
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3636—Software debugging by tracing the execution of the program
Abstract
The present invention discloses a kind of detection method, device, equipment and storage medium for monitoring fuse process, and wherein method includes: the customized catalogue of creation and signal detection script;The signal detection script is stored to customized catalogue, the signal and the kill signal on this node that detection is sent to icfs-fuse, and output signal information;The automatic detection script of creation;The automatic detection script is stored to executable command catalogue;Automatic detection script is executed, the signal message that signal detection script exports is stored to log;Check the signal message in log.The present invention realizes the automatic detection to fuse process, helps to realize tracking and positioning in time when the case where disappearing without reason occurs in fuse process, reduces the working time of staff, and improve the working efficiency of staff.
Description
Technical field
The present invention relates to fuse process detection fields, and in particular to it is a kind of monitor fuse process detection method, device, set
Standby and storage medium.
Background technique
FUSE, that is, user's space file system (Filesystem in Userspace), is the file of a user's space
System framework allows non-privileged users to establish the file system of complete function, without recompilating kernel, FUSE for
Family is read and write for Virtual File System, is a selection well.
FUSE includes a kernel module and a user's space finger daemon, and most VFS is called commissions one
A dedicated finger daemon is handled.The version of AS13000 storage system supports the User space client based on FUSE at present,
User space FUSE client can support a variety of Premium Features, such as the protection of ACL, quota, multi-stage data.But worked
Cheng Zhong encounters the case where fuse process disappears without reason sometimes, which is difficult to position once occurring.To solve above-mentioned ask
Topic, the present invention propose a kind of detection method, device, equipment and storage medium for monitoring fuse process.
Summary of the invention
It is an object of the present invention to propose a kind of detection method, device, equipment and storage medium for monitoring fuse process,
To solve the above technical problems.
Technical solution proposed by the present invention includes: a kind of detection method for monitoring fuse process, comprising:
Create customized catalogue and signal detection script;
The signal detection script is stored to customized catalogue, detection is sent to the signal and this section of icfs-fuse
Kill signal on point, and output signal information;
The automatic detection script of creation;
The automatic detection script is stored to executable command catalogue;
Automatic detection script is executed, the signal message that signal detection script exports is stored to log;
Check the signal message in log.
Technical solution of the present invention further include: described to store the signal detection script to customized catalogue, detection
The signal and the kill signal on this node for being sent to icfs-fuse, and output signal information, further includes:
The signal detection script is stored to customized catalogue, detection is sent to the signal and this section of icfs-fuse
Kill signal on point judges the pid of simultaneously output signal, uid, sig_name information.
Technical solution of the present invention further include: the automatic detection script of execution, the signal that signal detection script is exported
Information is stored to log, comprising:
Automatic detection script is executed, whether the signal detection script checked under customized catalogue is running:
If being currently running, signal detection script is continuously carried out from the background, and the signal message that signal detection script exports is deposited
It puts to log;
If not running, executing terminates order, stops detection.
A kind of technical solution of the present invention further include: detection device for monitoring fuse process, comprising:
Customized directory creating unit is configured to create customized catalogue;
Signal detection script creating unit is configured to creation signal detection script;
First designated memory cell is configured to store the signal detection script to customized catalogue, detection hair
The signal and the kill signal on this node for giving icfs-fuse, and output signal information;Automatic detection script creating unit,
It is configured to create automatic detection script;
Second designated memory cell is configured to store the automatic detection script to executable command catalogue;
Script executing unit is configured to carry out automatic detection script, the signal message that signal detection script exports is deposited
It puts to log;
Signal message checks unit, is configured to check the signal message in log.
Technical solution of the present invention further include: first designated memory cell further include: signal message judgment sub-unit,
It is configured to detect the signal for being sent to icfs-fuse and this when storing the signal detection script to customized catalogue
When kill signal on node, judge and the pid of output signal information, uid, sig_name information.
Technical solution of the present invention further include: the script executing unit further includes that subelement is checked in script operation, is configured
For when executing automatic detection script, whether the signal detection script checked under customized catalogue to be run:
If being currently running, signal detection script is continuously carried out from the background, and the signal message that signal detection script exports is deposited
It puts to log;
If not running, executing terminates order, stops detection.
Technical solution of the present invention further include: a kind of detection device for monitoring fuse process, the equipment include:
One or more processors;
Memory, for storing one or more programs, when one or more of programs are by one or more of places
When managing device execution, so that one or more of processors execute method as described in any one of the above embodiments.
Technical solution of the present invention further include: a kind of computer readable storage medium for being stored with computer program, the journey
Method as described in any one of the above embodiments is realized when sequence is executed by processor.
The detection method of monitoring fuse process provided by the invention passes through matching for signal detection script and automatic detection script
It closes, realizes the detection of monitoring fuse process.Method proposed by the present invention can detect all signals for issuing icfs-fuse and this
Kill signal on node, and signal message is saved into log.The above method helps to disappear without reason when the appearance of fuse process
Tracking and positioning are realized when the case where mistake in time, reduces the working time of staff, and improve the working efficiency of staff.
The detection device of monitoring fuse process provided by the invention can detect all by the cooperation of above-mentioned multiple units
The signal and the kill signal on this node for issuing icfs-fuse, and signal message is saved into log, it realizes to fuse
The automatic detection of process helps to realize tracking and positioning in time when the case where disappearing without reason occurs in fuse process, reduce
The working time of staff, and improve the working efficiency of staff.
The detection device of monitoring fuse process provided by the invention, by executing monitoring fuse process provided by the invention
Detection method, realize the automatic detection to fuse process, facilitate when fuse process occur without reason disappear the case where when
Tracking and positioning are realized in time, reduce the working time of staff, and improve the working efficiency of staff.
A kind of computer-readable medium being stored with computer program provided by the invention, when which is executed by processor
The detection method for realizing monitoring fuse process provided by the invention, realizes the automatic detection to fuse process, helps to work as
Fuse process occurs realizing tracking and positioning in time when the case where disappearing without reason, reduces the working time of staff, and improve
The working efficiency of staff.
In addition, design principle of the present invention is reliable, have broad application prospects.Compared with prior art, the present invention having
Substantive distinguishing features outstanding and significant progress, beneficial effects of its implementation are also obvious.
Detailed description of the invention
Illustrate the embodiment of the present invention in order to clearer, attached drawing needed in the embodiment is done into simple Jie below
It continues, it is clear that, drawings in the following description are only some embodiments of the invention, for those of ordinary skill in the art
For, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic flow chart of the automatic testing method of monitoring fuse process provided in an embodiment of the present invention.
Specific embodiment
With reference to the attached drawing in the embodiment of the present invention, clear and complete retouch is carried out to the technical solution in inventive embodiments
It states, it is clear that described embodiment is only a part of the embodiments of the present invention, rather than whole embodiments.Based on the present invention
In embodiment, those of ordinary skill in the art without making creative work, every other implementation obtained
Example, belongs to the scope of the present invention.
In order to make those skilled in the art better understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
The embodiment of the present invention provides a kind of detection method for monitoring fuse process, referring to Fig.1, comprising:
S1, the customized catalogue of creation;
S2, signal detection script;
S3, above-mentioned signal detection script is stored to customized catalogue, detects the signal for being sent to icfs-fuse and this
Kill signal on node, and output signal information;
S4, the automatic detection script of creation;
S5, above-mentioned automatic detection script is stored to executable command catalogue;
S6, automatic detection script is executed, the signal message that signal detection script exports is stored to log;
S7, signal message in log is checked.
Further, above-mentioned to store above-mentioned signal detection script to customized catalogue, detection is sent to icfs-
Kill signal on the signal (signal for being sent to Fuse user's space file system) of fuse and this node, and output signal
Information, further includes: above-mentioned signal detection script is stored to customized catalogue, detection be sent to icfs-fuse signal and
Kill signal on this node judges the pid (Process Identifier), uid (User of simultaneously output signal
Identifier), sig_name (signal, process title) information.
Further, above-mentioned execution detects script automatically, and the signal message that signal detection script is exported stores the Summer Solstice or the Winter Solstice
Will, comprising: execute automatic detection script, whether the signal detection script checked under customized catalogue is running:
If being currently running, signal detection script is continuously carried out from the background, and the signal message that signal detection script exports is deposited
It puts to log;
If not running, executing terminates order, stops detection.
A kind of detection method of monitoring fuse process described in the present embodiment specifically includes following by taking Linux system as an example
Step:
S1, the customized catalogue/etc/systemtap of creation;
S2, creation signal detection script, are named as icfs_sigkill.stp, as follows with reference to script:
S3, above-mentioned signal detection script is stored to customized catalogue, for detecting the letter for being sent to icfs-fuse
Number and this node on kill signal, judge and output signal pid (Process Identifier), uid (User
Identifier), sig_name (signal, process title) information;
S4, the automatic detection script of creation, are named as icfs_sigkill_monitor.sh, as follows with reference to script:
S5, above-mentioned automatic detection script is stored to executable command catalogue/usr/bin;
S6, automatic detection script is executed, whether the signal detection script checked under customized catalogue is running:
If being currently running, signal detection script is continuously carried out from the background, the signal pid that signal detection script is exported
(Process Identifier), uid (User Identifier), sig_name (signal, process title) information store to/
Var/log/icfs/icfs_sigkill.log log;
If not running, executing terminates order, stops detection;
S7, check/var/log/icfs/icfs_sigkill.log log in signal pid (Process
Identifier), uid (User Identifier), sig_name (signal, process title) information.
The embodiment of the present invention provides a kind of detection device for monitoring fuse process, comprising:
Customized directory creating unit is configured to create customized catalogue;
Signal detection script creating unit is configured to creation signal detection script;
First designated memory cell is configured to store the signal detection script to customized catalogue, detection hair
The signal and the kill signal on this node for giving icfs-fuse, and output signal information;Automatic detection script creating unit,
It is configured to create automatic detection script;
Second designated memory cell is configured to store the automatic detection script to executable command catalogue;
Script executing unit is configured to carry out automatic detection script, the signal message that signal detection script exports is deposited
It puts to log;
Signal message checks unit, is configured to check the signal message in log.
Wherein, above-mentioned first designated memory cell further include: signal message judgment sub-unit is configured to work as the letter
Number detection script store to customized catalogue, detection be sent to icfs-fuse signal and this node on kill signal when,
Judge the pid of simultaneously output signal information, uid, sig_name information.
Above-mentioned script executing unit further includes that subelement is checked in script operation, is configured to when the automatic detection script of execution
When, whether the signal detection script checked under customized catalogue is running:
If being currently running, signal detection script is continuously carried out from the background, and the signal message that signal detection script exports is deposited
It puts to log;
If not running, executing terminates order, stops detection.
The embodiment of the present invention provides a kind of detection device for monitoring fuse process, comprising:
One or more processors;
Memory, for storing one or more programs, when one or more of programs are by one or more of places
When managing device execution, so that one or more of processors execute method provided in an embodiment of the present invention.
The embodiment of the present invention provides a kind of computer readable storage medium for being stored with computer program, and the program is processed
Such as method provided in an embodiment of the present invention is realized when device executes.
It is provided for the embodiments of the invention a kind of detection method, device, equipment and storage for monitoring fuse process above
Medium is described in detail.Each embodiment is described in a progressive manner in specification, what each embodiment stressed
It is the difference from other embodiments, the same or similar parts in each embodiment may refer to each other.For embodiment
For disclosed system, since it is corresponded to the methods disclosed in the examples, description it is relatively simple, correlation can go out referring to
Method part illustration.The above is only a preferred embodiment of the present invention, it should be pointed out that: for the general of the art
For logical technical staff, various improvements and modifications may be made without departing from the principle of the present invention, these improve and
Retouching also should be regarded as protection scope of the present invention.
Claims (8)
1. a kind of detection method for monitoring fuse process characterized by comprising
Create customized catalogue and signal detection script;
The signal detection script is stored to customized catalogue, detection is sent on the signal and this node of icfs-fuse
Kill signal, and output signal information;
The automatic detection script of creation;
The automatic detection script is stored to executable command catalogue;
Automatic detection script is executed, the signal message that signal detection script exports is stored to log;
Check the signal message in log.
2. the method according to claim 1, wherein described store the signal detection script to customized mesh
Under record, the signal and the kill signal on this node that detection is sent to icfs-fuse, and output signal information, further includes:
The signal detection script is stored to customized catalogue, detection is sent on the signal and this node of icfs-fuse
Kill signal, judge and output signal pid, uid, sig_name information.
3. the method according to claim 1, wherein the execution is automatic to detect script, by signal detection script
The signal message of output is stored to log, comprising:
Automatic detection script is executed, whether the signal detection script checked under customized catalogue is running:
If being currently running, continuously carry out signal detection script from the background, and by the signal message that signal detection script exports store to
Log;
If not running, executing terminates order, stops detection.
4. a kind of detection device for monitoring fuse process characterized by comprising
Customized directory creating unit is configured to create customized catalogue;
Signal detection script creating unit is configured to creation signal detection script;
First designated memory cell is configured to store the signal detection script to customized catalogue,
The signal and the kill signal on this node that detection is sent to icfs-fuse, and output signal information;
Automatic detection script creating unit is configured to create automatic detection script;
Second designated memory cell is configured to store the automatic detection script to executable command catalogue;
Script executing unit is configured to carry out automatic detection script, by the signal message that signal detection script exports store to
Log;
Signal message checks unit, is configured to check the signal message in log.
5. device according to claim 4, which is characterized in that first designated memory cell further include: signal message
Judgment sub-unit is configured to when storing the signal detection script to customized catalogue, and detection is sent to icfs-fuse
Signal and this node on kill signal when, judge and output signal information pid, uid, sig_name information.
6. device according to claim 4, which is characterized in that the script executing unit further includes that son is checked in script operation
Unit is configured to when executing automatic detection script, and whether the signal detection script checked under customized catalogue is running:
If being currently running, continuously carry out signal detection script from the background, and by the signal message that signal detection script exports store to
Log;
If not running, executing terminates order, stops detection.
7. a kind of detection device for monitoring fuse process, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors
Execute method as claimed in any one of claims 1-3.
8. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the program is executed by processor
Shi Shixian method as claimed in any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810837864.7A CN109032895A (en) | 2018-07-26 | 2018-07-26 | A kind of detection method, device, equipment and storage medium monitoring fuse process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810837864.7A CN109032895A (en) | 2018-07-26 | 2018-07-26 | A kind of detection method, device, equipment and storage medium monitoring fuse process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109032895A true CN109032895A (en) | 2018-12-18 |
Family
ID=64646807
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810837864.7A Pending CN109032895A (en) | 2018-07-26 | 2018-07-26 | A kind of detection method, device, equipment and storage medium monitoring fuse process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109032895A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414212A (en) * | 2020-03-27 | 2020-07-14 | 中国平安财产保险股份有限公司 | Global process control method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506826A (en) * | 2002-12-09 | 2004-06-23 | 联想(北京)有限公司 | Self-debugging and self-restarting method for computer application software |
CN102521099A (en) * | 2011-11-24 | 2012-06-27 | 深圳市同洲视讯传媒有限公司 | Process monitoring method and process monitoring system |
CN104503863A (en) * | 2014-11-07 | 2015-04-08 | 清华大学 | Kernel mode and user mode data exchange method used for virtual container system disaster recovery |
KR20150111609A (en) * | 2014-03-26 | 2015-10-06 | 에스케이텔레콤 주식회사 | Method for fault over the virtual environment |
CN106951335A (en) * | 2017-02-28 | 2017-07-14 | 维沃移动通信有限公司 | A kind of process guard method and mobile terminal |
CN108287779A (en) * | 2018-01-24 | 2018-07-17 | 郑州云海信息技术有限公司 | A kind of Windows startup items monitoring method and system |
-
2018
- 2018-07-26 CN CN201810837864.7A patent/CN109032895A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506826A (en) * | 2002-12-09 | 2004-06-23 | 联想(北京)有限公司 | Self-debugging and self-restarting method for computer application software |
CN102521099A (en) * | 2011-11-24 | 2012-06-27 | 深圳市同洲视讯传媒有限公司 | Process monitoring method and process monitoring system |
KR20150111609A (en) * | 2014-03-26 | 2015-10-06 | 에스케이텔레콤 주식회사 | Method for fault over the virtual environment |
CN104503863A (en) * | 2014-11-07 | 2015-04-08 | 清华大学 | Kernel mode and user mode data exchange method used for virtual container system disaster recovery |
CN106951335A (en) * | 2017-02-28 | 2017-07-14 | 维沃移动通信有限公司 | A kind of process guard method and mobile terminal |
CN108287779A (en) * | 2018-01-24 | 2018-07-17 | 郑州云海信息技术有限公司 | A kind of Windows startup items monitoring method and system |
Non-Patent Citations (1)
Title |
---|
HURANZHIJIAN: "《LINUX下程序进程被kill时能否感知到并记录日志?》", 《HTTPS://BBS.CSDN.NET/TOPICS/390971837》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111414212A (en) * | 2020-03-27 | 2020-07-14 | 中国平安财产保险股份有限公司 | Global process control method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230138736A1 (en) | Cluster file system-based data backup method and apparatus, and readable storage medium | |
Park et al. | {iJournaling}:{Fine-Grained} Journaling for Improving the Latency of Fsync System Call | |
US20100082816A1 (en) | Virtualize, checkpoint, and restart posix ipc objects during checkpointing and restarting of a software partition | |
CN108388496A (en) | A kind of collection method of system log | |
CA2636649A1 (en) | Multi-protocol removable storage device | |
CN102955861B (en) | Method and device for generating index files based on backup files | |
CN103198122B (en) | Restart the method and apparatus of memory database | |
CN101256502A (en) | System and method for simulating multiprocessor system | |
CN108415756A (en) | A kind of cloud disk automatic recovery method of cloud platform virtual machine | |
CN103678036A (en) | Backup method based on virtual machine operation information data finding | |
CN109298882A (en) | Management method, computer readable storage medium and the terminal device of interface | |
CN106250496A (en) | A kind of method and system of the data collection in journal file | |
CN103593262A (en) | Virtual machine backup method based on classification | |
US9396218B2 (en) | Database insert with deferred materialization | |
CN109032895A (en) | A kind of detection method, device, equipment and storage medium monitoring fuse process | |
US8972351B1 (en) | Systems and methods for creating selective snapshots | |
CN103176867A (en) | Fast file differential backup method | |
CN103544097B (en) | The log storing method of embedded system, system and log read method and system | |
CN110008030A (en) | A kind of method of metadata access, system and equipment | |
CN104731827B (en) | The generation method and device of fast distributed file system files metadata | |
US20100146033A1 (en) | Selection of transaction managers based on runtime data | |
CN109271096A (en) | NVME storage expansion system | |
US9087075B1 (en) | Storing files in a parallel computing system using list-based index to identify replica files | |
CN109669923A (en) | A kind of WORM state automatic judging method and system | |
CN106886477A (en) | Threshold setting method and device are monitored in a kind of cloud system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |
|
RJ01 | Rejection of invention patent application after publication |