Sharing a local disk between to solaris machines

Hi,
I recently added a disk on a solaris 9 and I wanted to make it accessible for another machine, using the same name
here is what i did :
On the machine holding the internal disk
in vfstab i added the line

/dev/dsk/c1t1d0s4       /dev/rdsk/c1t1d0s4      /SHARED2    ufs     2       yes     -

then I went to /etc/dfs/dfstab

share -F nfs -o rw /SHARED2

then I issued

/etc/init.d/nfs.server stop
/etc/init.d/nfs.server start

Then I went on the client machine
open the vfstab file and
added (assume Support_Main is the equivalent to host machine from hosts file

Support_Main:/dev/dsk/c1t1d0s4     Support_Main:/dev/dsk/c1t1d0s4     /SHARED2 nfs 2 yes        -

I succeed to issue the mount command but when I try to issue
cd /SHARED2 on the client machine I get

ksh: /SHARED2: not a directory

Can it be because on the host machine the disk is mounted ufs and I ask to share it on nfs ?
Can someone tell me what am i missing ?

Thanks

Run dfshares Support_Main on client machine and post output here.

As first check which filesystem are exported on (as mentioned by Bartus above).

dfshares Support_Main

On the client system should be in /etc/vfstab line containing:

Support_Main:/SHARED2        -                      /SHARED2        nfs     -       yes     rw,soft

Path should reflect output from dfshares command.

As well /SHARED2 local mountpoint must exist on client system first.

1 Like