Setting up nfswatch on Solaris 2.5

2007-12-25 11:56:00

Hi Sun-managers,

        I struggled for a day to make nfswatch running on Solaris 2.5 &

Solaris 2.5.1 and hope this will save some time for other managers.

FTP Site:

========

ftp://gatekeeper.dec.com/pub/net/ip/nfs/nfswatch4.3.tar.gz

Compiling:

=========

        I used the Solaris version of gcc. Edit the Makefile and put the

following line right after the OS= line:

        CC=/opt/FSFgcc/bin/gcc -fno-builtin

        Do a make with the following command:

        make OS=SUNOS55

        You have to specify the OS at the command line. It won't work if

you put OS=SUNOS55 in the Makefile.

        It will give you some warning on xdr.c, but that's OK.

Manpages:

=========

        Solaris does not have the 8l manpage section any more. Copy the two

manage files nfslogsum.8l & nfswatch.8l into /usr/share/man/man1m. You may

have to do a "catman -w" to rebuild the manpage database for these to show

up.

A trick:

=======

        My server has very long mount-point names eg:

        /export/home/myhost/data01

        /export/home/myhost/data02 etc. etc ....

        Unfortunately, under nfswatch they all show up as:

        /export/home/myhost

        /export/home/myhost etc. etc...

        and the rest of it is cut off. This is no help in deciding which

file system is used the most. You can work around this by creating a

file such as /tmp/fs_list. In which you put

        /export/home/myhost/data01

        /export/home/myhost/data02 etc. etc ....

        Start nfswatch with

        nfswatch -f /tmp/fs_list

        and now you know the display should be in the order of the filesystems

listed in the file.

A question:

==========

        One of my server is running Solaris 2.5 and serving both SunOS & Solaris

clients. Only the SunOS clients nfs requests are show up on nfswatch. I think

this is because SunOS clients are using udp for NFS and Solaris clients are

now using tcp for NFS. Nfswatch seemed to only handle udp NFS requests.

Is there a workaround for this? If not, is there another utilities out there

that will handle tcp NFS? If both questions are no, I am sure a lot of you

C gurus out there are itching for a project during the Christmas break :-)

==============================================================================

Alan Chan | Phone: 604-279-2900

Canadian Airline International | Fax: 604-279-2905

System Administrator (Contractor) | Email: a.chan@cdnair.ca

Aero Info Systems Inc | Fly Canadian !!

==============================================================================

Comments

Got something to say?

You must be logged in to post a comment.