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.
- 05-03-2011 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 44
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
- 05-07-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,233
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!
- 05-09-2011 #3Just 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>
- 05-09-2011 #4
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.
Now make sure its correctly exported using showmount -e or exportfs and then mount it client as# cat /etc/exports
/newdrive *(rw)
client#mount -t nfs <server-host>:/newdrive /client/mnt/ptFirst 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
- 05-09-2011 #5Just Joined!
- Join Date
- Dec 2010
- Posts
- 44
Is the same applicable for NFSv4.1 ?# cat /etc/exports
/newdrive *(rw)
client#mount -t nfs <server-host>:/newdrive /client/mnt/pt
- 05-09-2011 #6
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 -
now try and mount from nfs client./newdrive *(rw,fsid=0,insecure,no_subtree_check,no_root_squa sh)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
- 05-09-2011 #7Just 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
- 05-09-2011 #8
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
for any errorsdmesgFirst 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


Reply With Quote

