Article View: news.software.nntp
Article #299192.0: Solaris configuration
From: Paul D. Smith
Date: Mon, 20 Jul 1998 00:00
Date: Mon, 20 Jul 1998 00:00
58 lines
3198 bytes
3198 bytes
In case others are interested, here's what I had to do to get INN 2.0
working properly on Solaris. I'm using Solaris 2.5.1, compiling with
GCC, with:
$ ./configure --with-sendmail=/usr/lib/sendmail --enable-perl
Everything _mostly_ worked; the big problem was df was broken, so
innwatch constantly throttled the server for no reason. Also, my
nightly reports contained lots of error messages in the disk usage
section, because by default Solaris' df will only work on mount points.
There seem to be two ways to go: the first way is to use `/bin/df -k'
instead of /bin/df on Solaris. This gives you a BSD-ish output for df,
where column 4 is the free space (as config.data expects). Solaris df
also has the nice feature that if stdout is a pipe, it puts all info for
a filesystem on one line even if the columns don't line up anymore.
You can set the command to invoke df by setting the _PATH_DF environment
variable before running configure:
$ _PATH_DF='/bin/df -k' ./configure ...
Unfortunately, `/bin/df -k -i' (which is what innwatch will try to run
to examine inodes free) doesn't work at all; Solaris' df uses -e to
generate info on free inodes. The only way to change this is to edit
the innwatch.ctl file itself. Also, `/bin/df -k -e' doesn't work,
because -k overrides -e. And finally, if you do decide to fix all this
up, you'll have to change the inode field number because with df -e,
it's field 2 not field 7.
I decided to punt all that complication and just go get GNU df, from the
GNU fileutils-3.16 package. I installed it as /usr/local/newsbin/gdf,
and ran configure as:
$ _PATH_DF='/usr/local/newsbin/gdf -P' ./configure ...
(the -P option enables POSIX mode and ensures all output for a
filesystem appears on the same line).
I also had to change the setting of INNWATCH_INODES in config.data from
"7" to "4".
After that, it seems to be working correctly.
It really bothers me that all the old Install documentation was removed,
when there are so clearly huge areas of INN which are not yet integrated
under the autoconf umbrella... things that need to be modified in
config.data, and how to get that stuff installed, is basically nowhere
to be found now...
--
-------------------------------------------------------------------------------
Paul D. Smith <psmith@baynetworks.com> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
These are my opinions--Bay Networks takes no responsibility for them.
Technical Details
Message-ID:
<p5n2a45txz.fsf@baynetworks.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <p5n2a45txz.fsf@baynetworks.com> Subject: 2.0: Solaris configuration Date: Mon, 20 Jul 1998 00:00:00 +0000 From: psmith@baynetworks.com (Paul D. Smith) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 373219830 Organization: Bay Networks, Inc. / Billerica, MA Reply-To: psmith@baynetworks.com Newsgroups: news.software.nntp