Quote:>My question is quite simple (I hope): I am attempting to figure out where
>all (and why all) the log files live in order to automate the cleanup
>proceedure. If anyone has a good script, I would love a sample. More
>important, however, is my concern about ONE file. In /var/nis is a file
>called machine_name.log, which is a bit large. ls reports it's size as
>12582913, which strikes me as damn big. The system runs fine if I delete it,
>and it is created automatically at boot. I can find no references to it in
>the man pages or AnswerBook. Any clues?
In Solaris 2, (almost?) all log files are located in /var. It is wise to
install /var in a partition with plenty of room. By default, suninstall will
keep /var in the / partition, but you can also put it in another partition.
For NIS+ servers, I recommend having 80 - 100 Mb of space in /var to hold
the /var/nis database. You want plenty of room there because NIS+ may not
gracefully handle running out of room.
Now then, you are mistaken about what ls is telling you. The length of the
machine_name.log file is 12582913. The size is normally somewhat smaller.
Here's the output of "ls -ls xxx.log" for one of my NIS+ servers:
6960 -rw------- 1 root other 12582925 Jun 10 01:24 xxx.log
^^^^ ^^^^^^^^
size length
Whatever you do, don't touch that file! You will be very sad if you delete
the NIS+ log files since you will probably have to reload NIS+ to get things
to work again.
Lastly, if NIS+ does get hosed, it can generate a very sizable core file.
This core image will include the entire database that NIS+ has in memory.
It also likes to dump this core in /var/nis which makes the space problems
worse. Since I don't have source code for NIS+ and therefore can't do much
with a core dump, I make sure that rpc.nisd doesn't dump core. I changed
/etc/init.d/rpc to set the core size limit to 0 for rpc.nisd as follows:
(ulimit -c 0 ; /usr/sbin/rpc.nisd -r $EMULYP )
So far, no mombo cores :-)
---
Richard Elling, Manager of Network Support, Engineering Administration
Show me a psychoceramic and I'll show you a crackpot.