Question : sharetab file information

I am faced with a problem that the sharetab file is missing on a server after a restore usnig Veritas Netbackup and BMR. We are investigating this problem.

I would appreciate if I could get more information about sharetab. I believe that this file is deleted during a boot and then generated AFTER boot. I would like to know which script on Solaris 10 (and 9) deletes this file and then which script generates it.

Is /etc/r3.d/S15nfs.server involved ? I did a find for this file, but cannot find it!

When this server boots, I see the following:
SunOS Release 5.10 Version Generic_138889-08 64-bit
Copyright 1983-2009 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
WARNING: Cannot find /etc/dfs/sharetab

Hostname: atrcx703
Reading ZFS config: done.

atrcx703 console login:

Where is the warning comming from ? What script ?

Answer : sharetab file information

The sharetab is a system file that keeps track of local resources shared by the share command, so yes, you are barking up the right tree. The init script for nfs server is /etc/init.d/nfs.server, in solaris 10 you should manage it using smf commands - ie svcadm [enable|disable|and so on] svc:/network/nfs/server however there /etc/init/nfs.server is there but this is just a wrapper for smf commands to enable/disable the service.

Try stopping nfs if it has started, add any share to /etc/dfs/dfstab, firing up nfs server and seeing if your message disappears.
Random Solutions  
 
programming4us programming4us