Results 1 to 4 of 4

Thread: exportfs: scandir /etc/exports.d: No such file or directory

  1. #1
    Join Date
    Dec 2005
    Location
    USA
    Beans
    134
    Distro
    Ubuntu Development Release

    Question exportfs: scandir /etc/exports.d: No such file or directory

    I want to export a dir with NFS on my system. I have done the folowing.
    Code:
    apt-get install nfs-kernel-server nfs-common
    Code:
    cat /etc/exports 
    
    # /etc/exports: the access control list for filesystems which may be exported
    #		to NFS clients.  See exports(5).
    #
    # Example for NFSv2 and NFSv3:
    # /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
    #
    # Example for NFSv4:
    # /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
    # /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
    #
    /root/backups/backup	*(ro,no_subtree_check)
    Code:
    service nfs-kernel-server restart
     * Stopping NFS kernel daemon                                                                                                          [ OK ] 
     * Unexporting directories for NFS kernel daemon...                                                                                    [ OK ] 
     * Exporting directories for NFS kernel daemon...                                                                                             
    exportfs: scandir /etc/exports.d: No such file or directory
    
                                                                                                                                           [ OK ]
     * Starting NFS kernel daemon                                                                                                          [ OK ]
    Code:
    showmount -a localhost
    All mount points on localhost:
    Nothing is being exported and shared. Im guessing it is related to the exportfs: scandir /etc/exports.d: No such file or directory message. Any ideas?

  2. #2
    Join Date
    Dec 2005
    Location
    USA
    Beans
    134
    Distro
    Ubuntu Development Release

    Re: exportfs: scandir /etc/exports.d: No such file or directory

    Interesting. The dirrectory it is looking for does not exist.

    Code:
    ls /etc/exports.d
    ls: cannot access /etc/exports.d: No such file or directory

  3. #3
    Join Date
    Dec 2005
    Location
    USA
    Beans
    134
    Distro
    Ubuntu Development Release

    Re: exportfs: scandir /etc/exports.d: No such file or directory

    My share was working all along. I was just using the wrong options with showmount.

    Code:
    showmount -e localhost
    Export list for localhost:
    /root/backups/backup *
    On a side note this still looks like a bug...
    Code:
    exportfs: scandir /etc/exports.d: No such file or directory

  4. #4
    Join Date
    Apr 2007
    Beans
    2

    Re: exportfs: scandir /etc/exports.d: No such file or directory

    solution:
    sudo mkdir /etc/exports.d

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •