4 Replies Latest reply on Apr 8, 2016 8:48 PM by Nik

    NFS Server won't come up no matter what

    3216880

      Hi,

       

      My NFS Server won't change to enable state. I have a valid entry in dfstab, and all the dependencies nfs/server are on. dfshares says "RPC:Programe not registered." Rebooting the server didn't do anything. Rpcinfo -p matches another functioning NFS server exactly. All the nfs/server log says is that the service is stopping because all processes have exited. Any ideas as to how to fix? I won't really be able to copy and paste things here due to my workstation restrictions. Thanks.

        • 1. Re: NFS Server won't come up no matter what
          Cindys-Oracle

          Are you saying that when you create a NFS share, it doesn't remain shared?

           

          On my Solaris 10 1/13 system, I can create a NFS share and it remains shared without any /etc/dfstab entry, even without a reboot.

           

          Are the services running:

           

          # svcs -a | grep nfs

          online         Feb_04   svc:/network/nfs/cbd:default

          online         Feb_04   svc:/network/nfs/mapid:default

          online         Feb_04   svc:/network/nfs/status:default

          online         Feb_04   svc:/network/nfs/nlockmgr:default

          online         Feb_04   svc:/network/nfs/client:default

          online         Feb_04   svc:/network/nfs/rquota:default

          online         Feb_04   svc:/network/nfs/server:default

           

          What does the nfs-server log file say:

           

          # more /var/svc/log/network-nfs-server:default.log

          [ Jun 10 12:20:23 Disabled. ]

          [ Jun 10 12:20:24 Rereading configuration. ]

          [ Jun 10 12:20:43 Enabled. ]

          [ Jun 10 12:21:17 Executing start method ("/lib/svc/method/nfs-server start") ]

          [ Jun 10 12:21:17 Method "start" exited with status 0 ]

          [ Jun 10 12:21:17 Stopping because all processes in service exited. ]

          [ Jun 10 12:21:17 Executing stop method ("/lib/svc/method/nfs-server stop 61") ][ Jun 10 12:21:17 Method "stop" exited with status 0 ]

           

          Thanks, Cindy

          • 2. Re: NFS Server won't come up no matter what
            Nik

            Hi.

            What type FS you need share ? ( UFS, ZFS or other ?).

            Is rpcbind started,? ( ps -edaf | grep rpc )

             

            Regards.

            • 3. Re: NFS Server won't come up no matter what
              3216880

              Never mind. The problem was that /etc/dfs/sharetab went missing and nfs/server wont work without that. Created the file manually and rebooted the server. It's working now. issue resolved.

              • 4. Re: NFS Server won't come up no matter what
                Nik

                It's strange.

                For  UFS: need edit /etc/dfs/dfstab

                For ZFS:  need set  properties for dataset.

                 

                File /etc/dfs/sharetab  changed automaticaly when  run command share.

                 

                NFS server will start in case /etc/dfs/dfstab have records or some ZFS dataset shared.

                Records at /etc/dfs/dfstab for ZFS system may ignore.

                 

                Regards.