Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@f9-sda10-105 xtd8865]# /usr/sbin/exportfs -ra
exportfs: Warning: /dev/sdb1 is neither a directory nor a file.
remote access will fail
Normally /dev/sdb1 is mounted on one of my home directories on the remote machine, however, when I mounted my /home over NFS, and checked /home/username/data (the directory that /dev/sdb1 is locally mounted on) and it seems to be empty. Can it be a permission problem?
Normally /dev/sdb1 is mounted on one of my home directories on the remote machine, however, when I mounted my /home over NFS, and checked /home/username/data (the directory that /dev/sdb1 is locally mounted on) and it seems to be empty. Can it be a permission problem?
Ok, sorted
Then my next question:
the entry in /etc/exports is:
/home/username/data1 192.168.1.105(rw)
how can I add it to /etc/fstab on the client machine?
I was mostly concerned with the nfs options. I have decided on rw,setuid.
Now I'm reading about autofs (however, in my case one mount will not make a big difference for my system)
Although I haven't noticed any visible impact on the performance (mounted via fstab) even with some additional network traffic, I might go for autofs. The reason being that the nfs client is connected to the router via wireless which is controlled by network manager. As the partitions are mounted at an early stage of the system boot up, it will probably fail to mount, as the laptop gets connected to the internet in the GUI environment.
There is no difference in performance relative to autofs v. fstab mounts. What mechanism performs that mount is irrelevant.
You can set your fstab to retry in the background to not hold up other mounts with the bg option, or noauto to not automatically mount upon during boot (eg. mount -a). This allows you to mount -a -t nfs later.
FYI: partitions are not mounted - file systems are.
There is no difference in performance relative to autofs v. fstab mounts. What mechanism performs that mount is irrelevant.
Well, not according to redhat manuals on NFS :
Quote:
One drawback to using /etc/fstab is that, regardless of how much you use that mounted filesystem, your system must dedicate resources to keep that mount in place. This is not a problem with one or two mounts, but when your system is maintaining mounts to a dozen systems at one time, overall system performance can suffer. An alternative to /etc/fstab is to use the kernel-based automount utility, which will mount and unmount NFS filesystems automatically, saving resources.
HOwever, as I would have only one NFS mount, it shouldn't matter.
Quote:
...noauto to not automatically mount upon during boot (eg. mount -a). This allows you to mount -a -t nfs later
But anyway, I've modified the fstab entry and used the bg option - it's really clever to
exit with a zero exit code and to keep trying to mount it in the background.
The performance topic you see is about very large environments where dozens or hundreds of mounted and cross-mounted directories are maintained. Each mount consumes a certain amount of memory in the mount table, and a certain amount of network bandwidth to maintain the mount. For anything less, you have nothing to be concerned about.
Automounting has pros and cons, which you'll discover soon enough.
Sounds fine. Just avoid accidental overlapping mounts (eg. manual mount + automount on same mount point).
Just as an FYI, fstab is simply a convenience table for mount(8), fsck(8), dump(8) and a few other utilities. There are no special properties about it. I mention this for those reading who think there is something "magical" about /etc/fstab (vs. manual mount, fsck, etc.).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.