The individual owning this blog works for Oracle in Germany. The opinions expressed here are his own, are not necessarily reviewed in advance by anyone but the individual author, and neither Oracle nor any other party necessarily agrees with them.
Tuesday, March 2. 2010
The mighty root couldn't sleep at night, so root walked around the castle. Deep down in the foundation of super users castle there was a strange room. It was filled with scrolls and some of the serving daemons of root filled this room with even more scrolls while root was standing there. So root looked in some of them: There were new ones, interesting ones. Then root took some old ones, blew away the dust and after a short look root thought "Damned ... those scrolls are so old, there aren't true anymore. Someone has to clean up this place".
So root spoke a mighty spell of infinite power and another daemon spawned from the ether: "You are the keeper of the scrolls. But don't keep everything. Just the last ones." And so it was done since the day of this sleepless night.
Housekeeping in your logfile directoriesOne of the regular task of any decent admin should be the housekeeping in the logfile directory. Logfiles are really useful, when something went wrong, but often they just filling the directories with data. Albeit sometimes it's useful to have even very old logfiles, most of the times you just need the recent ones in direct access.
logadmOne of the big conundrums with solaris is the point that few people know the
CapabilitiesFor all the usual task surrounding logfile handling you could use the command
How it works
So as you may have already recognized, the
But how is the rotation itself done? Well, exactly as you would do it by typing in commands on the shell.
Practical side of logadm
Configuring itAlbeit it's possible to invoke the rotation totally from command line each time, this isn't a comfortable method to rotate logfiles. In almost every case you would configure the
logadm.confThe daily run of
You can edit this file directly, but it's preferred to change it with the logadm command itself. Let's dissect some lines of this configuration.
Standard log rotation - introducing
The LKSF book
The book with the consolidated Less known Solaris Tutorials is available for download here
Martin about End of c0t0d0s0.org
Mon, 01.05.2017 11:21
Thank you for many interesting blog posts. Good luck with al l new endeavours!
Hosam about End of c0t0d0s0.org
Mon, 01.05.2017 08:58
Joerg Moellenkamp about tar -x and NFS - or: The devil in the details
Fri, 28.04.2017 13:47
At least with ZFS this isn't c orrect. A rmdir for example do esn't trigger a zil_commit, as long as you don't speci [...]
Thu, 27.04.2017 22:31
You say: "The following dat a modifying procedures are syn chronous: WRITE (with stable f lag set to FILE_SYNC), C [...]
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Germany License