CN107506149A - System management memory journal dump method and device - Google Patents
System management memory journal dump method and device Download PDFInfo
- Publication number
- CN107506149A CN107506149A CN201710757826.6A CN201710757826A CN107506149A CN 107506149 A CN107506149 A CN 107506149A CN 201710757826 A CN201710757826 A CN 201710757826A CN 107506149 A CN107506149 A CN 107506149A
- Authority
- CN
- China
- Prior art keywords
- memory area
- journal
- journal file
- outer memory
- area specified
- 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
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of system management memory journal dump method and device, method includes:The size of the journal file recorded to storage system is monitored, and whether the size of the journal file recorded described in judgement exceedes threshold value;Stored if so, the journal file recorded to be then transferred to the outer memory area specified, and delete former journal file.System management memory journal dump method and device of the present invention, compared with prior art, it can avoid that storage system disk space will be taken in journal file storage to local disk, avoid the service efficiency for influenceing storage system.
Description
Technical field
The present invention relates to storage management technique field, more particularly to a kind of system management memory journal dump method and dress
Put.
Background technology
In storage management, log recording can be carried out to operation of the user to storage system, for example increase, delete, changing,
Check that storage content etc. operates, can so facilitate system management memory personnel control and safeguard storage system.This kind of daily record note
Record is commonly referred to as audit log.
However, with the long-term use of storage system, log recording can increase always, in the prior art, work as journal file
When reaching a certain size, journal file storage can be arrived in the disk of storage system, but certain risk so be present, if disk
Damage, can cause journal file damage and can not read, and with equipment for a long time use, will also result in disk space compared with
Big occupancy, reduce the service efficiency of whole storage system.
The content of the invention
It is an object of the invention to provide a kind of system management memory journal dump method and device, can avoid taking storage system
System disk space.
To achieve the above object, the present invention provides following technical scheme:
A kind of system management memory journal dump method, including:
Monitor the size of the journal file recorded to storage system, and the size of the journal file recorded described in judgement
Whether threshold value is exceeded;
Stored, and deleted if so, the journal file recorded to be then transferred to the outer memory area specified
Former journal file.
Alternatively, if it is not, then allowing to continue log.
Alternatively, the outer memory area specified that the journal file recorded is transferred to carries out storage bag
Include:
According to the address and path of the outer memory area specified, sent to the outer memory area specified
Request of data is passed, and sends the username and password for logging in the outer memory area specified;
After the response of the outer memory area specified is received, the journal file recorded is transferred to institute
The outer memory area specified is stated to be stored.
Alternatively, the outer memory area specified is located at remote port, by internet by the day recorded
Will file is transferred to the outer memory area specified.
A kind of storage management journal dump device, including:
Monitoring modular, for monitoring the size of the journal file recorded to storage system, and recorded described in judgement
Whether the size of journal file exceedes threshold value;
Dump module, if the size for the journal file recorded exceedes threshold value, by the day recorded
Will file is transferred to the outer memory area specified and stored, and deletes former journal file.
Alternatively, in addition to:
Logging modle, if the size for the journal file recorded allows to continue to record day not less than threshold value
Will.
Alternatively, the dump module is used to for the journal file recorded to be transferred to the outer memory area specified
Carrying out storage includes:
The dump module is specifically used for:According to the address and path of the outer memory area specified, to the finger
Fixed outer memory area, which is sent, uploads request of data, and sends the user name for logging in the outer memory area specified
And password;
After the response of the outer memory area specified is received, the journal file recorded is transferred to institute
The outer memory area specified is stated to be stored.
Alternatively, the outer memory area specified is located at remote port, by internet by the day recorded
Will file is transferred to the outer memory area specified.
As shown from the above technical solution, system management memory journal dump method and device provided by the present invention, monitoring
The size of the journal file recorded to storage system, and whether the size for the journal file for judging to have recorded exceedes threshold value, if
It is that the journal file recorded is then transferred to the outer memory area specified to be stored, and deletes former journal file.Can be with
Find out, system management memory journal dump method and device of the present invention, compared with prior art, can avoid depositing journal file
Store up in local disk and take storage system disk space, avoid the service efficiency for influenceing storage system.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of system management memory journal dump method provided in an embodiment of the present invention;
Fig. 2 is the flow chart for transmitting data in the embodiment of the present invention to specified storage region;
Fig. 3 is a kind of schematic diagram of system management memory journal dump device provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with of the invention real
The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described implementation
Example only part of the embodiment of the present invention, rather than whole embodiments.It is common based on the embodiment in the present invention, this area
The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to protection of the present invention
Scope.
It refer to Fig. 1, a kind of system management memory journal dump method provided in an embodiment of the present invention, including step:
S10:Monitor the size of the journal file recorded to storage system.
In the specific implementation, log recording, this method are carried out to operation of the user to storage system by memory management unit
In monitor the size of the journal file recorded to storage system in real time.
S11:Whether the size of the journal file recorded described in judging exceedes threshold value.
The threshold value can flexibly be set, and in actual applications, user can be according to the parameters and reality of storage system
The size of border use demand given threshold.
If it is not, then enter step S12.
S12:Allow to continue log.
If the size of the journal file recorded is not above threshold value, can continue to record day in the journal file
Will.
If so, then enter step S13.
S13:The journal file recorded is transferred to the outer memory area specified to be stored, and deletes former day
Will file.
If the journal file recorded described in judging exceedes threshold value, the journal file recorded is transferred to external storage
Region is stored, and deletes the former journal file being locally stored in managing device, memory management unit is continued to depositing
The operation note daily record of storage system.
In one embodiment, this step specifically includes procedure below:
S130:According to the address and path of the outer memory area specified, to the outer memory area specified
Send and upload request of data, and send the username and password for logging in the outer memory area specified.
In this method, it is pre-created the address of specified outer memory area and reaches the road of the outer memory area
Footpath, so as to designated external storage region.And registered, obtained for logging in the storage in specified outer memory area
The username and password in region.
When needing to shift storage journal file, according to the address and road of the specified outer memory area being pre-created
Footpath, sent to outer memory area and upload request of data, and send the user name for logging in the outer memory area specified
And password.
The outer memory area is verified to the username and password received, if being verified, allows the use
Family logs in, and authorizes it and uploads the authority of data, and responds user.
S131:After the response of the outer memory area specified is received, the journal file recorded is passed
It is defeated to be stored to the outer memory area specified.
In the specific implementation, specified outer memory area can be based on FTP (File Transfer
Protocol, FTP) server.
Further, in the present embodiment system management memory journal dump method, the outer memory area position specified
In remote port, the journal file recorded is transferred to by the outer memory area specified by internet.
As can be seen that the present embodiment system management memory journal dump method, to storage system in memory management unit
When the size of the journal file of record reaches threshold value, journal file is transferred to stored in outer memory area, with prior art phase
Than that can avoid that storage system disk space will be taken in journal file storage to local disk, can avoid influenceing to store
The service efficiency of system;Also, it can not be checked prevented also from causing journal file to damage in storage system disk failures, this
Storage of the method to journal file is safer, improves the safety and reliability of storage system journal file.In addition, this reality
It is more flexible to apply a storage of the system management memory journal dump method to journal file.
Accordingly, Fig. 2 is refer to, the embodiment of the present invention also provides a kind of storage management journal dump device, including:
Monitoring modular 20, for monitoring the size of the journal file recorded to storage system, and recorded described in judgement
The size of journal file whether exceed threshold value;
Dump module 21, if the size for the journal file recorded exceedes threshold value, recorded described
Journal file is transferred to the outer memory area specified and stored, and deletes former journal file.
As can be seen that the present embodiment system management memory journal dump device, monitoring module monitors have been remembered to storage system
The size of the journal file of record, and whether the size for the journal file for judging to have recorded exceedes threshold value, if so, then dump module will
The journal file recorded is transferred to the outer memory area specified and stored, and deletes former journal file.The present embodiment is deposited
Storage system manages journal dump device, compared with prior art, can avoid accounting in journal file storage to local disk
With storage system disk space, the service efficiency for influenceing storage system is avoided.
In the present embodiment system management memory journal dump device, in addition to:Logging modle, if having been recorded for described
The size of journal file then allows to continue log not less than threshold value.
Specifically, in the present embodiment, the dump module 21 is specified for the journal file recorded to be transferred to
Outer memory area carry out storage and include:
The dump module 21 is specifically used for:According to the address and path of the outer memory area specified, to described
The outer memory area specified, which is sent, uploads request of data, and sends the user for logging in the outer memory area specified
Name and password;After the response of the outer memory area specified is received, the journal file recorded is transferred to
The outer memory area specified is stored.
In the present embodiment system management memory journal dump device, the outer memory area specified is located at remote port,
The journal file recorded is transferred to by the outer memory area specified by internet.
The present embodiment system management memory journal dump device, to the daily record of storage system record in memory management unit
When the size of file reaches threshold value, journal file is transferred to stored in outer memory area, compared with prior art, can be avoided
Storage system disk space will be taken in journal file storage to local disk, can avoid influenceing the use effect of storage system
Rate;Also, it can not be checked prevented also from causing journal file to damage in storage system disk failures, journal file is deposited
Storage is safer, improves the safety and reliability of storage system journal file.In addition, the present embodiment system management memory day
Storage of the will dump apparatus to journal file is more flexible.
System management memory journal dump method and device provided by the present invention is described in detail above.Herein
In apply specific case to the present invention principle and embodiment be set forth, the explanation of above example is only intended to help
Assistant solves the method and its core concept of the present invention.It should be pointed out that for those skilled in the art, not
On the premise of departing from the principle of the invention, some improvement and modification can also be carried out to the present invention, these are improved and modification is also fallen into
In the protection domain of the claims in the present invention.
Claims (8)
- A kind of 1. system management memory journal dump method, it is characterised in that including:Monitor the size of journal file recorded to storage system, and the size of the journal file recorded described in judging whether More than threshold value;Stored if so, the journal file recorded to be then transferred to the outer memory area specified, and delete former day Will file.
- 2. system management memory journal dump method according to claim 1, it is characterised in that if it is not, then allowing to continue Log.
- 3. system management memory journal dump method according to claim 1, it is characterised in that described to have been recorded described Journal file be transferred to the outer memory area specified and carry out storage and include:According to the address and path of the outer memory area specified, sent to the outer memory area specified and upload number According to request, and send the username and password for logging in the outer memory area specified;After the response of the outer memory area specified is received, the journal file recorded is transferred to the finger Fixed outer memory area is stored.
- 4. the system management memory journal dump method according to claim any one of 1-3, it is characterised in that described to specify Outer memory area be located at remote port, the journal file recorded is transferred into the outside specified by internet deposits Storage area domain.
- A kind of 5. storage management journal dump device, it is characterised in that including:Monitoring modular, for monitoring the size of the journal file recorded to storage system, and the daily record recorded described in judgement Whether the size of file exceedes threshold value;Dump module, if the size for the journal file recorded exceedes threshold value, by the daily record text recorded Part is transferred to the outer memory area specified and stored, and deletes former journal file.
- 6. system management memory journal dump device according to claim 5, it is characterised in that also include:Logging modle, if the size for the journal file recorded allows to continue log not less than threshold value.
- 7. system management memory journal dump device according to claim 5, it is characterised in that the dump module is used for The journal file recorded is transferred to the outer memory area specified carrying out storage includes:The dump module is specifically used for:According to the address and path of the outer memory area specified, specified to described Outer memory area, which is sent, uploads request of data, and sends user name for logging in the outer memory area specified and close Code;After the response of the outer memory area specified is received, the journal file recorded is transferred to the finger Fixed outer memory area is stored.
- 8. the system management memory journal dump device according to claim any one of 5-7, it is characterised in that described to specify Outer memory area be located at remote port, the journal file recorded is transferred into the outside specified by internet deposits Storage area domain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710757826.6A CN107506149A (en) | 2017-08-29 | 2017-08-29 | System management memory journal dump method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710757826.6A CN107506149A (en) | 2017-08-29 | 2017-08-29 | System management memory journal dump method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107506149A true CN107506149A (en) | 2017-12-22 |
Family
ID=60693094
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710757826.6A Pending CN107506149A (en) | 2017-08-29 | 2017-08-29 | System management memory journal dump method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107506149A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491483A (en) * | 2018-03-12 | 2018-09-04 | 北京奇虎科技有限公司 | A kind of method and apparatus of remote supervisor operating status |
CN108984118A (en) * | 2018-06-26 | 2018-12-11 | 四川斐讯信息技术有限公司 | A kind of log information saving method and system based on openwrt system flash subarea |
CN109901799A (en) * | 2019-02-28 | 2019-06-18 | 新华三信息安全技术有限公司 | A kind of log reading/writing method and device |
CN110661650A (en) * | 2019-09-05 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Log management method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794646A (en) * | 2005-04-27 | 2006-06-28 | 华为技术有限公司 | Method for obtaining of daily information from network element equipment by network management server |
CN1808454A (en) * | 2005-01-17 | 2006-07-26 | 株式会社东芝 | Medical equipment having audit log managing function |
CN102202044A (en) * | 2011-02-25 | 2011-09-28 | 北京兴宇中科科技开发股份有限公司 | Portable cloud storage method and device |
CN102420756A (en) * | 2011-11-30 | 2012-04-18 | 深圳市共进电子股份有限公司 | System log storage method and router |
CN102637142A (en) * | 2012-04-13 | 2012-08-15 | 浪潮(北京)电子信息产业有限公司 | Computer system and method for realizing log management |
CN104731910A (en) * | 2015-03-24 | 2015-06-24 | 浪潮集团有限公司 | SYSLOG storage method |
-
2017
- 2017-08-29 CN CN201710757826.6A patent/CN107506149A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1808454A (en) * | 2005-01-17 | 2006-07-26 | 株式会社东芝 | Medical equipment having audit log managing function |
CN1794646A (en) * | 2005-04-27 | 2006-06-28 | 华为技术有限公司 | Method for obtaining of daily information from network element equipment by network management server |
CN102202044A (en) * | 2011-02-25 | 2011-09-28 | 北京兴宇中科科技开发股份有限公司 | Portable cloud storage method and device |
CN102420756A (en) * | 2011-11-30 | 2012-04-18 | 深圳市共进电子股份有限公司 | System log storage method and router |
CN102637142A (en) * | 2012-04-13 | 2012-08-15 | 浪潮(北京)电子信息产业有限公司 | Computer system and method for realizing log management |
CN104731910A (en) * | 2015-03-24 | 2015-06-24 | 浪潮集团有限公司 | SYSLOG storage method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108491483A (en) * | 2018-03-12 | 2018-09-04 | 北京奇虎科技有限公司 | A kind of method and apparatus of remote supervisor operating status |
CN108491483B (en) * | 2018-03-12 | 2021-10-08 | 北京奇虎科技有限公司 | Method and device for remotely monitoring running state of program |
CN108984118A (en) * | 2018-06-26 | 2018-12-11 | 四川斐讯信息技术有限公司 | A kind of log information saving method and system based on openwrt system flash subarea |
CN109901799A (en) * | 2019-02-28 | 2019-06-18 | 新华三信息安全技术有限公司 | A kind of log reading/writing method and device |
CN109901799B (en) * | 2019-02-28 | 2022-08-19 | 新华三信息安全技术有限公司 | Log reading and writing method and device |
CN110661650A (en) * | 2019-09-05 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Log management method and device, electronic equipment and storage medium |
CN110661650B (en) * | 2019-09-05 | 2022-06-07 | 苏州浪潮智能科技有限公司 | Log management method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107506149A (en) | System management memory journal dump method and device | |
CA2980583C (en) | Networking flow logs for multi-tenant environments | |
CN103748548B (en) | Equipment and method for activating gateway of remote service provider | |
US8826403B2 (en) | Service compliance enforcement using user activity monitoring and work request verification | |
CN103890729B (en) | computerized method, storage server and management server | |
US9100421B2 (en) | Enterprise application session control and monitoring in a large distributed environment | |
US11632373B2 (en) | Activity based authorization for accessing and operating enterprise infrastructure | |
US9346562B2 (en) | Aircraft troubleshooting network | |
US8990893B2 (en) | Enterprise application session control and monitoring in a large distributed environment | |
CN103747084A (en) | Off-line access method and system for advanced enterprise mobile application platform | |
CN106034054B (en) | Redundant access controls list acl rule file test method and device | |
US20180336350A1 (en) | Program integrity monitoring and contingency management system and method | |
CN103731462A (en) | Remote storage system and method of network attached storage (NAS) device | |
US11386240B2 (en) | Data transmission system and method in physical network separation environment | |
CN104079568A (en) | Method and system for preventing file leakage based on cloud storage technology | |
CN108667835A (en) | A kind of control remote equipment carries out method, system and the storage medium of network forensics | |
CN108200020A (en) | A kind of industry big data safe transmission device and method | |
CN104700024A (en) | Method and system for auditing operational order of Unix-type host user | |
CN106453442A (en) | Cloud computing-based massive big data secure cloud storage system | |
CN109922062A (en) | Source code reveals monitoring method and relevant device | |
US20140157426A1 (en) | Personal information protection system for providing specialized function for host terminal based on unix and linux | |
CN105897933A (en) | Service request processing method and device | |
CN106936907A (en) | A kind of document handling method, logical server, access server and system | |
CN102291239A (en) | Remote authentication method, system, agent component and authentication servers | |
CN111586022A (en) | Firewall opening verification method, electronic device, computer equipment 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171222 |
|
RJ01 | Rejection of invention patent application after publication |