Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS Need Help (Sabayon)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
grimly64
n00b
n00b


Joined: 25 Jan 2014
Posts: 3

PostPosted: Sat Jan 25, 2014 1:12 am    Post subject: NFS Need Help (Sabayon) Reply with quote

can't get the NFS to broadcast. want the HDTwo and HDFive on the NFS and FYI not using systemd

IP address of the PC 192.168.1.10
IP address of the WD TV 192.168.1.12
Actual path to external Hard Drives /run/media/devos/HDTwo
Guess I want to use NFS version 3, but if can figure out what to do in in NFS version 4, just want either one to work.
Currently not using systemd,
NFS-utils-1.2.9 - Installed
NFS4-acl-tools 03.3. intalled
Libnfs 1.5.0 installed
Libnfsidmap 0.25 Installed (NFSV4 ID <-> name mapping library)

Code:
systemctl start rpc-mountd
Failed to get D-Bus connection: No connection to service manager.



Code:
    pcinfo -p
       program vers proto   port  service
        100000    4   tcp    111  portmapper
        100000    3   tcp    111  portmapper
        100000    2   tcp    111  portmapper
        100000    4   udp    111  portmapper
        100000    3   udp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  48981  status
        100024    1   tcp  48910  status
        100003    3   tcp   2049  nfs
        100003    4   tcp   2049  nfs
        100227    3   tcp   2049  nfs_acl
        100003    3   udp   2049  nfs
        100003    4   udp   2049  nfs
        100227    3   udp   2049  nfs_acl
        100021    1   udp  39878  nlockmgr
        100021    3   udp  39878  nlockmgr
        100021    4   udp  39878  nlockmgr
        100021    1   tcp  60380  nlockmgr
        100021    3   tcp  60380  nlockmgr
        100021    4   tcp  60380  nlockmgr
        100005    1   udp  32844  mountd
        100005    1   tcp  56545  mountd
        100005    2   udp  59583  mountd
        100005    2   tcp  43717  mountd
        100005    3   udp  51076  mountd
        100005    3   tcp  51366  mountd




Code:
    Devos-PC devos #  df -h
        Filesystem                      Size  Used Avail Use% Mounted on
        /dev/mapper/vg_devospc-lv_root   50G   17G   31G  35% /
        none                            3.9G  1.3M  3.9G   1% /run
        none                            3.9G   80K  3.9G   1% /dev/shm
        udev                             10M     0   10M   0% /dev
        cgroup_root                      10M     0   10M   0% /sys/fs/cgroup
        /dev/sda1                       477M  208M  240M  47% /boot
        /dev/mapper/vg_devospc-lv_home   58G   19G   37G  35% /home
        tmpfs                           3.9G   80K  3.9G   1% /dev/shm
        /dev/sdd1                       931G  848G   84G  92% /run/media/devos/HDTwo
        /dev/sdc1                       1.9T  1.8T   60G  97% /run/media/devos/HDFive



Code:
Devos-PC devos # netstat -tn | egrep '2049|Active|Pro'
    Active Internet connections (w/o servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State 


Code:
Devos-PC devos # /etc/init.d/nfsmount start
     * Starting NFS sm-notify ...                                                                        [ ok ]
     * Mounting NFS filesystems ...
    mount.nfs: mount point /media/HDTwo does not exist 


Code:
In FSTAB
    //192.168,1.10:/run/media/devos/HDTwo   /media/HDTwo   nfs    rw,   0 0


Code:
In EXPORTS
    //run/media/devos/HDTwo 192.168.1.11/255.255.0.0(rw,no_subtree_check,async,insecure,no_root_squash,fsid=0)


Code:
    in HOST.CONF

    Code: Select all
        # /etc/host.conf:
        # $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $

        # The  file /etc/host.conf contains configuration information specific to
        # the resolver library.  It should contain one configuration keyword  per
        # line,  followed by appropriate configuration information.  The keywords
        # recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.



        # This keyword specifies how host lookups are to be performed. It
        # should be followed by one or more lookup methods, separated by
        # commas.  Valid methods are bind, hosts, and nis.
        #
        order, hosts, bind,


        # Valid  values are on and off.  If set to on, the resolv+ library
        # will return all valid addresses for a host that appears  in  the
        # /etc/hosts  file,  instead  of  only  the first.  This is off by
        # default, as it may cause a substantial performance loss at sites
        # with large hosts files.
        #
        multi on


Code:
In HOST.ALLOW

Code: Select all
    All: All

    portmap:ALL
    lockd:ALL
    mountd:ALL
    rquotad:ALL
    statd:ALL


Code:
    n etc/conf.d/nfs

    Code: Select all
        # /etc/conf.d/nfs

        # If you wish to set the port numbers for lockd,
        # please see /etc/sysctl.conf

        # Optional services to include in default `/etc/init.d/nfs start`
        # For NFSv4 users, you'll want to add "rpc.idmapd" here.
        NFS_NEEDED_SERVICES="rpc.idmapd"

        # Number of servers to be started up by default
        OPTS_RPC_NFSD="8"

        # Options to pass to rpc.mountd
        # ex. OPTS_RPC_MOUNTD="-p 32767"
        OPTS_RPC_MOUNTD="-V 4 -V 3 -N 2" # supporte la version 3 et 4, mais pas la version 2

        # Options to pass to rpc.statd
        # ex. OPTS_RPC_STATD="-p 32765 -o 32766"
        OPTS_RPC_STATD=""

        # Options to pass to rpc.idmapd
        OPTS_RPC_IDMAPD=""

        # Options to pass to rpc.gssd
        OPTS_RPC_GSSD=""

        # Options to pass to rpc.svcgssd
        OPTS_RPC_SVCGSSD=""

        # Options to pass to rpc.rquotad (requires sys-fs/quota)
        OPTS_RPC_RQUOTAD=""

        # Timeout (in seconds) for exportfs
        EXPORTFS_TIMEOUT=80

        # Options to set in the nfsd filesystem (/proc/fs/nfsd/).
        # Format is <option>=<value>.  Multiple options are allowed.
        #OPTS_NFSD="nfsv4leasetime=30 max_block_size=4096"



Code:
    rc-update show
           NetworkManager |      default                                 
     NetworkManager-setup |      default                                 
                alsasound |      default                                 
             avahi-daemon |      default                                 
                 bootmisc | boot                                         
              consolefont | boot                                         
             cpufrequtils |      default                                 
                    cupsd |      default                                 
                     dbus | boot                                         
                    devfs |                                        sysinit
            device-mapper | boot                                         
                  dmcrypt | boot                                         
                    dmesg |                                        sysinit
               fbcondecor | boot                                         
                     fsck | boot                                         
                 hostname | boot                                         
                  hotplug | boot                                         
                  hwclock | boot                                         
                  keymaps | boot                                         
                killprocs |                        shutdown               
                    local |      default nonetwork                       
               localmount | boot                                         
                   logind | boot                                         
                 loopback | boot                                         
                      lvm | boot                                         
                    mdadm |      default                                 
                  modules | boot                                         
                 mount-ro |                        shutdown               
                     mtab | boot                                         
                   net.lo | boot default                                 
                      nfs |      default                                 
                 nfsmount |      default                                 
                   procfs | boot                                         
                     root | boot                                         
                savecache |                        shutdown               
                     swap | boot default                                 
                swapfiles | boot                                         
                   sysctl | boot                                         
                    sysfs |                                        sysinit
                syslog-ng |      default                                 
             termencoding | boot                                         
             tmpfiles.dev |                                        sysinit
           tmpfiles.setup | boot                                         
                     udev |                                        sysinit
                      ufw |      default                                 
                  urandom | boot default                                 
               vixie-cron |      default                                 
                  x-setup | boot                                         
                      xdm |      default                                 
                      zfs | boot                                   



Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31365
Location: 56N 3W

PostPosted: Sat Jan 25, 2014 10:49 am    Post subject: Reply with quote

Moved from Networking & Security to Unsupported Software.

Sabayon is not Gentoo. Being in Unsupported Software does not mean you will not get help here.
Its a warning to Gentoo users that a solution in this thread may not work for them
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 31365
Location: 56N 3W

PostPosted: Sat Jan 25, 2014 11:09 am    Post subject: Reply with quote

grimly64,

Welcome to the Gentoo Forums
Code:
dbus | boot
looks a bit odd, dbus should not need to be started explicitly.
Maybe dbus failed to start?

As a test, can you mount the NFS share, using NFS, on the system providing the NFS share?
Its not useful in reality but it proves the NFS setup before you add in the complications of two systems being involved.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
grimly64
n00b
n00b


Joined: 25 Jan 2014
Posts: 3

PostPosted: Mon Jan 27, 2014 4:28 am    Post subject: Reply with quote

Did a fresh install, due to systemd now being used. Which is a whole new can of worms.

Sabayon is Gentoo based, so going to a Debian source, would not work.

I guess I should start with Exports and Fstab and make sure they are correct, before even starting with systemd and nfs.

Want to use an external hard drive called HDTwo.

The actual path is /run/media/grimly64/HDTwo
Back to top
View user's profile Send private message
grimly64
n00b
n00b


Joined: 25 Jan 2014
Posts: 3

PostPosted: Wed Jan 29, 2014 2:28 am    Post subject: Reply with quote

with systemd, finally got the rpc.bind and NFS services to work.

Could even see the IP address from a WD TV but no folders.

So far, this has made the most sense about paths and syntax for the exports and fstab.
http://www.bermweb.net/?p=41
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum