Find the answer to your Linux question:
Results 1 to 8 of 8
Hi, I have added a new hard disk to my system in fedora 14, I would like to export it through NFS... I tried it but the files are not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    44

    Lightbulb Exporting block device using nfs


    Hi,

    I have added a new hard disk to my system in fedora 14, I would like to export it through NFS... I tried it but the files are not being written to the disk, instead it is being written to the folder on which the drive is mounted, which we can see after unmounting the disk...


    Thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,709
    Post the contents of your /etc/exports file, and the output of the exportfs command (you will have to run it as root or sudo).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    44
    My /etc/exports looks lik
    / *(rw,fsid=0,insecure,no_subtree_check,no_root_squa sh)

    The output of the exportfs command is -

    / <world>

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    Quote Originally Posted by taousif View Post
    My /etc/exports looks lik
    / *(rw,fsid=0,insecure,no_subtree_check,no_root_squa sh)

    The output of the exportfs command is -

    / <world>
    I don't understand ,are you trying to export whole root partition or newly added drive alone?
    If you wanted to export the newly added drive , please mount it (say /newdrive) and then add this entry to /etc/export file.

    # cat /etc/exports
    /newdrive *(rw)
    Now make sure its correctly exported using showmount -e or exportfs and then mount it client as
    client#mount -t nfs <server-host>:/newdrive /client/mnt/pt
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  6. #5
    Just Joined!
    Join Date
    Dec 2010
    Posts
    44
    # cat /etc/exports
    /newdrive *(rw)

    client#mount -t nfs <server-host>:/newdrive /client/mnt/pt
    Is the same applicable for NFSv4.1 ?

  7. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    I'm not sure about NFS 4 options - May be continue with what you are already using . but the only change would be mount the device into some mountpoint and then add it export file -
    /newdrive *(rw,fsid=0,insecure,no_subtree_check,no_root_squa sh)
    now try and mount from nfs client.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  8. #7
    Just Joined!
    Join Date
    Dec 2010
    Posts
    44
    I had tried that, i got follwing error

    client# mount -t nfs4 -o minorversion=1 <server>:/nfs /mnt

    mount.nfs4: mounting <server>:/nfs failed, reason given by server: No such file or directory

  9. #8
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    Please post the exact server host name and from client machine try something like
    #showmount -e SERVERNAME
    Does it show the exported directory?
    If so then try mounting it - If mounting fails check for
    dmesg
    for any errors
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

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