Thanks, Rowley, for the helpful tips.
We are currently working with Veritas tech support on this problem. I will post a short note when we have a resolution.
Main Topics
Browse All TopicsI 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 ?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
Just saw this question and but a solution was never posted. Just some information on how to start the service.
sandeepvaidya, you said you were working with Veritas on this. Did they come up with a solution?
I have just seen this same problem using a Sun flash archive and recover.
For some reason -- I'm guessing there is a patch that caused this problem, the /etc/dfs/sharetab file does not get recreated or perhaps is not backed up even. Not sure which.
I'm still trying to find out what causes this issue, but I can provide a solution.
Create /etc/dfs/sharetab, set the permissions to 444 and ownership to root:root and reboot your server.
The /etc/init.d/nfs.server script calls the smf script /lib/svc/method/nfs-server
This script first looks at /etc/dfs/dfstab to see if any shares are defined.
If they exist, it then issues a "shareall" command, which populates /etc/dfs/sharetab. NOTE: It will not create /etc/dfs/sharetab though!!!
/etc/dfs/sharetab gets hooked to the nfs.server kernel module at boot via an entry in /etc/vfstab that looks like:
sharefs - /etc/dfs/sharetab sharefs - no -
Creating it after the server is up will not properly attach it to the kernel module.
After executing a "shareall" if /etc/dfs/dfstab has entries, the startup script then checks if /etc/dfs/sharetab has entries. If it does, then and only then will it start up /usr/lib/nfs/nfsd and other needed processes such as statd and lockd.
Hope this helps understand the process and provides a work around.
I'm still trying to track down the cause so if anyone knows, please reply.
Thanks,
Dave
Business Accounts
Answer for Membership
by: RowleyPosted on 2009-09-16 at 07:00:56ID: 25345640
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.