Q: /etc/dfs/dfstab entries ignored during system start
I am wondering why entries in the dfstab file are ignored during system start.
The situation is as following:
I have an old x86 system acting as my home server. This machine runs Solaris 10 6/06.
I have the following entry in /etc/dfs/dfstab on this machine:
share -F nfs -o sec=sys,rw=@192.168.1,root=@192.168.1 -d "home dirs" /export/home
in order to automount my home dir from my Blade 2000.
But this doesn't work as expected. After rebooting the server there are no shares available. I have manually log in the server and issue a "shareall".
BTW the nfs server is enabled by default:
svcs -a | grep nfs/server
online 15:16:53 svc:/network/nfs/server:default
What is wrong?
Regards,
Andreas
[774 byte] By [
Andreas_W] at [2007-11-26 9:07:15]

# 1
I think you need to do more than just change the file. I think the share command will do it all for you.
After editing the file, I think you need to run
exportfs -a
or
svcadm restart svc:/network/nfs/server
to make it see it.
or you can use the share command.
Like
share /opt
which will make the entry for you and enable it.
# 2
I am aware of the fact that a simple change of dfstab is not enough.
The problem is, as I stated before, that the contents of the file is ignored when the machine
boots! And a boot of the server includes a new start of svc:/network/nfs/server as the nfs/server is enabled, as I also stated in my first posting.
And, at least at my machine, a
share /opt
doesn't create an entry in /etc/dfs/dfstab.
Regards,
Andreas
# 3
The /etc/dfs/dfstab is only used by the "shareall" command, a command which is ran at startup in order to start sharing filesystems.
There is no process/daemon/function which automatically adds a share to the dfstab when you run share /some/path . If you want it to be added you have to add it yourself.
Btw, if you still are having problems with your dfstab, i'ld recommend you to check the nfs-server logfile in /var/svc/log, and also run "shareall" to see if there is a syntax problem with your dfstab file.
7/M.
# 4
Maybe my postings were a little bit mistakable. Thus, I try to explain it again:
The nfs server of my x86 machine works.
IAW the entry in /etc/dfs/dfstab is syntactically correct. And there is exactly one entry in this file for exporting /export/home.
Problem is, that it doesn't work after a reboot.
When I reboot the machine I have to run "shareall" manually in order to have a working
nfs server.
Regards,
Andreas