Hi,
I'm currently having a problem unsharing a directory. When I specify the command. Below is an example of the problem. Any ideas?
# share
- /test/dir1 rw ""
- /test/dir2 root=10.0.0.1,root=10.0.0.1 ""
- /test/dir3 root=10.11.1.1,root=10.11.1.1 ""
- /test/dir4 root=10.11.1.2,root=10.11.1.2 ""
# unshare /test/dir1
nfs unshare: /test/dir1: not shared
#
(I need to be able to unshare /test/dir1 and just share out /test. I get the error below.)
# share /test
share_nfs: /test: sub-directory (/test/dir1) already shared
#
Thanks,
Sparcman:(
Hi Reboot,
Below is the output from dfshares
# dfshares
RESOURCE SERVER ACCESS TRANSPORT
hostname:/test/dir1 hostname - -
hostname:/test/dir2 hostname - -
hostname:/test/dir3 hostname - -
hostname:/test/dir4 hostname - -
Thanks,
Sparcman
did you tried manually force unmount ?
Hi Solaris User. Unfortunately it's not a force unmount that is required. I have unmounted this share from all servers that had it mounted. Now I just want to unshare the /test/dir1 share. There is no force unshare command I can use. I can put a new entry into the /etc/dfs/dfstab file and reboot the server but I don't want to have to reboot to get this working.
Thanks,
Sparcman
Sorry for late replying...:D:D
Well, First check wether all these file systems i.e :
1./test/dir1
2./test/dir2
3./test/dir3
----- ----
----- ----
are mounted or not :
#mount -v|egrep 'dir1|dir2|dir3|dir4'
Above command will tell you that...
Because in certain cases where filesystem is not mounted but still it is shared, they give the same error...
1 Like
Hi Reboot.
I managed to get it working. I removed the entry for /test/dir1 in the /etc/dfs/sharetab file. I then unshared /test/dir1 and then share /test and it worked.
Thanks for looking into this for me. Your help was appreciated.
Sparcman.