03-10-2005
Quote:
process will generate some error to the system log or any file ( usually the members don't know the log is reached to this level )
Any file? Explain please.
As far as system logs - you can control what gets logged normally with the syslog config file. Since you didn't put what your OS and version is, I can only guess that it's /etc/syslog.conf. This may or may not work in your situation since you put the statement 'generate some error to the system log or any file' which doesn't make sense (at least to me).
Quote:
then make the system crashed
You should allow processes to crash your system by allowing log files to be in a partition that could crash the server. Move your log files to a partiton where it will hang the process, not the server. Again, without knowing more information, that is all I can suggest.
Quote:
could suggest the way how can to prevent this problem ? eg. restrict the file size
Have you looked into disk quotas or if this is a core file, restricting building of core files (setting up core to a link to /dev/null will make it to users can't cause a core file to fill up their home directory, which in turn won't fill up / if that is how your server is set up.
Give more info on the file that is being made - post your OS and version - look into disk quota, syslog.conf, and/or link core to /dev/null.
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hi, Im trying to take a database backup. one of the files is 26 GB. I am using cp -pr to create a backup copy of the database. after the copying is complete, if i do du -hrs on the folders i saw a difference of 2GB.
The weird fact is that the BACKUP folder was 2 GB more than the original one!
... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies
2. UNIX for Dummies Questions & Answers
I would like to edit a doc which is large file size. I can't use "vi" command due to out of memory.
$ vi large.dat
ex: 0602-101 Out of memory saving lines for undo.
Please help. Thanks. (2 Replies)
Discussion started by: Rock
2 Replies
3. Shell Programming and Scripting
Hi,
I have a large file with a repeating pattern in it. Now i want the file split into the block of patterns with a specified no. of lines in each file.
i.e. The file is like
1...
2...
2...
3...
1...
2...
3...
1...
2...
2...
2...
2...
2...
3...
where 1 is the start of the block... (5 Replies)
Discussion started by: sudhamacs
5 Replies
4. Shell Programming and Scripting
Hi
I am new to shell scripting.I want to create a batch file which creates a desired number of files with a specific size say 1MB each to consume space.How can i go about it using for loop /any other loop condition using shell script?
Thanks (3 Replies)
Discussion started by: swatideswal
3 Replies
5. Shell Programming and Scripting
Hi Experts,
My requirement is to compare the second field/column in two files, if the second column is same in both the files then compare the first field. If the first is not matching then print the first and second fields of both the files.
first file (a .txt)
< 1210018971FF0000,... (6 Replies)
Discussion started by: krao
6 Replies
6. UNIX for Advanced & Expert Users
We're running Solaris 7 on FDDI n/w on an E6500 host and wish to use MTU (packet size) > 1500, more like 3072 bytes to begin with and possibly up to 4096 bytes.
Linux has /etc/network/interfaces. Does ANYONE remember the equivalent in Unix? When I do ifconfig eth0 mtu 4000, I get the error... (0 Replies)
Discussion started by: sharique
0 Replies
7. Solaris
Greetings, I'm stuck in a time warp using ancient machines from the prehistoric era that should be rightfully displayed in the Smithsonian.
We're running Solaris 7 on FDDI n/w on an E6500 host and wish to use MTU (packet size) > 1500, more like 3072 bytes to begin with and possibly up to 4096... (9 Replies)
Discussion started by: sharique
9 Replies
8. Red Hat
Hi,
I've some directory that I used as working directory for a program. At the end of the procedure, the content is deleted. This directory, when I do a ls -l, appears to still take up some space. After a little research, I've seen on a another board of this forum that it's not really taking... (5 Replies)
Discussion started by: bdx
5 Replies
9. Shell Programming and Scripting
Hi All,
This is my first post here. Hoping to share and gain knowledge from this great forum !!!!
I've scanned this forum before posting my problem here, but I'm afraid I couldn't find any thread that addresses this exact problem.
I'm trying to split a large XML file (with multiple tag... (7 Replies)
Discussion started by: Aviktheory11
7 Replies
10. Shell Programming and Scripting
Hi,
I wrote a shell script, which let me manage dns records through an api.
The raw core-command looks like about this:
output="$(curl -X GET https://mgt.myserver.de:8081/api/v1/servers/localhost/zones)"The output contains a list of all zones with all records and is about 800 Kilobytes... (9 Replies)
Discussion started by: stomp
9 Replies
LEARN ABOUT OPENSOLARIS
strerr
strerr(1M) System Administration Commands strerr(1M)
NAME
strerr - STREAMS error logger daemon
SYNOPSIS
strerr
DESCRIPTION
strerr receives error log messages from the STREAMS-based log driver (see log(7D)) and appends them to a log file. The resultant error log
files reside in the directory /var/adm/streams, and are named error.mm-dd, where mm is the month and dd is the day of the messages con-
tained in each log file.
The format of an error log message is:
<seq> <time> <ticks> <flags> <mid> <sid> <text>
<seq> error sequence number
<time> time of message in hh:mm:ss
<ticks> time of message in machine ticks since boot priority level
<flags> T : the message was also sent to a tracing process F : indicates a fatal error N : send mail to the system administrator (hard-
coded as root)
<mid> module ID number of source
<sid> sub-ID number of source
<text> formatted text of the error message
Messages that appear in the error log are intended to report exceptional conditions that require the attention of the system administrator.
Those messages which indicate the total failure of a STREAMS-based driver or module should have the F flag set. Those messages requiring
the immediate attention of the administrator will have the N flag set, which causes the error logger to send the message to the system
administrator using mail. The priority level usually has no meaning in the error log but will have meaning if the message is also sent to a
tracer process.
Once initiated, strerr continues to execute until terminated by the user. It is commonly executed asynchronously.
FILES
/var/adm/streams/error.mm-dd
error log file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5), log(7D)
NOTES
There is no restriction to the number of strerr processes opening the STREAMS-based log driver at a time.
If a module or driver is generating a large number of error messages, running the error logger will cause a degradation in STREAMS perfor-
mance. If a large burst of messages are generated in a short time, the log driver may not be able to deliver some of the messages. This
situation is indicated by gaps in the sequence numbering of the messages in the log files.
SunOS 5.11 4 Oct 1994 strerr(1M)