Harry Putnam <[email protected]> writes:

> Osol-11 108
>
> Where can I see some nfs mount example doing something like what I
> need to do.  Mount an nfs exported from a linux machine under nfs3
> with this line in /etc/exports:
>
> /pub     192.168.0.0/22(rw,insecure,no_root_squash,subtree_check)
>
> When I try it with the command below I get the error shown:
>  # mount -F nfs -o ro 192.168.0.2:/pub /pub
>  nfs mount: security mode does not match the server \
>               exporting 192.168.0.2:/pub
>
> I don“t have much of an idea at all how this should be done but have
> been used to mounting this share across linux machines with no
> problem.

Hoping to get a little more coaching here.

How can I debug the ouput above about security mode?

I have uncommented this line in /etc/default/nfs
  NFS_CLIENT_VERSMAX=3

The linux machine is running version 3 and the export line from
/etc/exports on the remote host is shown above in the quoted part.

svcs shows the client is running... Thats all I should need right?

disabled        9:49:38 svc:/network/nfs/cbd:default
disabled        9:49:38 svc:/network/nfs/mapid:default
disabled        9:50:09 svc:/network/nfs/rquota:default
online          9:50:07 svc:/network/nfs/status:default
online          9:50:08 svc:/network/nfs/nlockmgr:default
online          9:50:09 svc:/network/nfs/client:default
online*        10:37:41 svc:/network/nfs/server:default

( what does the asterisk on the server mean? )

I did notice a strange thing.  I enabled the server as shown above
thinking maybe to do the mount the the other way round and serve a
directory from osol for the linux box to mount.

I didn't get that far but I noticed that when the server is running
and I run the mount attempt:

  mount -F nfs -o ro 192.168.0.2:/pub /pub
  nfs mount: security mode does not match the server \
               exporting 192.168.0.2:/pub

Then checking svcs -a|grep nfs shows the server disabled:

    disabled        9:49:38 svc:/network/nfs/cbd:default
    disabled        9:49:38 svc:/network/nfs/mapid:default
    disabled        9:50:09 svc:/network/nfs/rquota:default
=>  disabled       10:37:46 svc:/network/nfs/server:default
    online          9:50:07 svc:/network/nfs/status:default
    online          9:50:08 svc:/network/nfs/nlockmgr:default
    online          9:50:09 svc:/network/nfs/client:default

The server is now disabled.

I don't know enough about it to know if that is to be expected or if
it might be a clue to my problem of not being able to mount this
share.  It seems the `server' service shouldn't really be involved in
a `client' attempting to mount a served nfs share from a remote host.

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to