Good morning, I just want to know and collect ideas on this one. Regarding rotation of logs as I've observed it's not consistently functioning. I have a server with 8 Partitions, each partition has a dedicated directory for the logs that is needed and I set it every 5mins (300secs) the process will close and create a file. So meaning, I have 8 processes for those 8 Partitions. Let's say this is my config for this case:
Now what I want and so I did is to create a single directory named partition-all and that these 8 processed for all the 8 partitions will just close and create all files/logs in this directory. The problem I'm experiencing now is that, not all partitions are creating the file. And let's say this how it looks like with my new config:
Thanks!
Hello all.
Due to some reason I can not use HUP to rotate needed log files.
So I use the standard method:
cp $file $file.1
cat /dev/null > $file
But if Java application in this time writing the output to $file,
in the beginning of it appears many "^@^@^@^@^@^@".
How to avoid it? Or how... (6 Replies)
I have the below script to help with disk space cleanup that finds logs older than a specified number of days (say 10 days). I need it to grab "active" logs as well. Problem is an "active log" will not get archived unless I put in 0 days which I don't want to do, I need to leave the past 10 days,... (2 Replies)
Hi, I current have many apps servers running and need to create a script to rotate logs daily, and then create an autosys job to delete logs that are older than 30 days. I was thrown into this and have no idea what to do, please help me get started, thanks!
-----Post Update-----
and i will... (6 Replies)
Hi,
Recently i received a request to rotate logs of catalina.out (tomcat). The file size was about 807 MB. I used logadm to truncate the log ( -c ) and zip (-z 0) it.
Everything worked fine, catalina.out.0.gz was created (22 MB) and the size of original catalina.out became 0kb.
After... (2 Replies)
hi folk,
need advise regarding the log rotation, i have the logadm set at
30 2 * * * /usr/sbin/logadm
so it supposed to rotate once per day, but now it rotated twice!
but someone my log will rotate at 2:30 AM, but then another 2 hours later, it creates a new and rotate a new log again,... (2 Replies)
Hi All!
I seem to have a problem with log rotation, unless I am doing something wrong, I have type the following command for testing purposes to see if the -s option works but he did not:
logadm -w /var/adm/messages -C 8 -c -s 512k -t '/var/adm/messages.$n' -z 1
the file is now at this... (7 Replies)
In Mavericks, Apple has apparently moved control of log rotation to ASL. There's a 'ttl' value to determine how long log files will stick around for. I can compress them, change the way they're named, limit them by size, etc. But the one thing I cannot find is how to NOT keep one log file per... (0 Replies)
Hi All,
I have a situation here ...
HACMP is configured with application monitoring script, which is generating messages .... which is running every minute ...
And every minute when monitoring script run, one one log file is generating .... and this log file is rotating ...
which is rotating... (1 Reply)
Discussion started by: linux.amrit
1 Replies
LEARN ABOUT MINIX
partitio
PARTITION(8) System Manager's Manual PARTITION(8)NAME
partition - make a partition table
SYNOPSIS
partition [-mf] device [type:]size[+*] ...
DESCRIPTION
Partition makes a partition table on device using the types and sizes given. It may be used in combination with repartition(8) for auto-
matic installation of Minix.
You may give up to four type:size[+*] specifications for the partitions. You may also specify holes before, between, and after the parti-
tions. A hole differs from a partition specification by not having a type.
The first hole is by default 1 sector to make space for the primary bootstrap and the partition table. The other holes are 0.
The type field is the type of the partitition in hexadecimal. The size field is the partition's size in sectors. The + or * may option-
ally be added to indicate that the partition must be expanded to contain any leftover space on the device or to mark the partition active.
Partitions are padded out to cylinder boundaries, except for the first one, it starts on track 1. Some operating systems care about this.
Minix and MS-DOS do not.
OPTIONS -m Minix only, no need to pad partitions. This is the default for subpartition tables.
-f Force making a partition table even if the device is too small.
EXAMPLE
partition /dev/hd0 01:16384 81:40000 81:2880* 06:20000+
Partitions disk 0 into an 8 Mb DOS partition, 20 Mb Minix /usr, 1.44 Mb Minix / (active), and a DOS partition of at least 10 Mb at the end
of the disk. (06:0+ would have been ok too, it's just a sanity check.)
SEE ALSO hd(4), part(8), repartition(8).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
PARTITION(8)