Hi all
Thanks a lot for the response.
When I use t_bind I get the following error in Solaris 10,when I use
UDP as the protocol for getnetconfigent() and use the struct netconfig
structure returned by getnetconfigent() for the getting the fd by
un_transport_open().
Unable to start service - t_bind failed: t_errno 8, errno 126
Cannot assign requested address
Using the same configuration, t_bind with UDP works fine in Solaris 9.
Can anyone help me out as to what all should I look for in fixing this
error.
(SOLARIS 10)Modinfo | grep nfs
\180 7b66c000 79598 106 1 nfs (NFS syscall, client, and common)
180 7b66c000 79598 106 1 nfs (NFS syscall, client, and common)
180 7b66c000 79598 20 1 nfs (network filesystem)
180 7b66c000 79598 7 1 nfs (network filesystem version 2)
180 7b66c000 79598 21 1 nfs (network filesystem version 3)
180 7b66c000 79598 22 1 nfs (network filesystem version 4)
185 7b6ea000 2e9a8 - 1 nfssrv (NFS server module)
------------------------------------------------------------------------
----
(SOLARIS 9) modinfo | grep nfs
120 780d0000 2afe0 106 1 nfs (NFS syscall, client, and common)
120 780d0000 2afe0 106 1 nfs (NFS syscall, client, and common)
120 780d0000 2afe0 8 1 nfs (network filesystem)
120 780d0000 2afe0 7 1 nfs (network filesystem version 2)
120 780d0000 2afe0 16 1 nfs (network filesystem version 3)
132 78140000 12881 - 1 nfssrv (NFS server module)
-----Original Message-----
From: Robert Thurlow [mailto:[EMAIL PROTECTED]
Sent: Friday, April 18, 2008 7:02 PM
To: Vamsee Priya
Cc: [email protected]
Subject: Re: [osol-discuss] NFS version on Solaris 10
Vamsee Priya wrote:
> I have NFS v2, v3 and v4 on my Solaris machine which has Solaris 10
OS.
>
> How can I find out what version of NFS is being used when I do an NFS
> share of a directory?
The client and server will both favor more recent versions
by default. You can see what the client negotiated on an
existing mount with 'nfsstat -m':
% nfsstat -m /export/pond/tools
/export/pond/tools from kootenay:/export/pond/tools
Flags:
vers=4,proto=tcp,sec=sys,hard,intr,link,symlink,acl,rsize=1048576,wsize=
1048576,retrans=5,timeo=600
Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60
> How can I make the system use only a particular version of NFS(say v2)
> only for sharing a particular directory?
The client can use the "vers=" mount option to insist on
a particular version. This can be used on the mount
command line, in /etc/vfstab, or in automounter maps.
# mount -o vers=2 peyto:/export/thurlow /mnt
# nfsstat -m /mnt
/mnt from peyto:/export/thurlow
Flags:
vers=2,proto=tcp,sec=sys,hard,intr,dynamic,acl,rsize=8192,wsize=8192,ret
rans=5,timeo=600
Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60
If you want the server to share filesystems with only a certain
version, you have to make that decision for all filesystems at
once via the NFS_SERVER_VERSMIN and NFS_SERVER_VERSMAX keywords
in /etc/default/nfs, which I'd advise against. We prefer and
support more recent versions best, and clients not capable of
recent versions should be able to use versions they support.
Rob T
_______________________________________________
opensolaris-discuss mailing list
[email protected]