Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
It looks like this was a red herring. Autofs is the source of the issue. I disabled my nfs automount points, rebooted the PC and Atril will now open the offending pdf faster than a speeding bullet.
Perhaps I need to connect to my servers with Samba instead of nfs. That would suck but it could not be much worse.
NFS is fine, as long as it's NFSv4, but why bother with auto-mounting? Just list them in fstab and mount 'em when you need 'em, or specify that they should be mounted at boot time. There is an overhead associated with mounting a share for the first time, and, I think, very little benefit in "mount on demand."
Perhaps we can use this thread to get to the real root cause of my Atril issue. Here is the setup. I have three "servers" which are actually just bulk data storage for backup/archive purposes. In a few years a flash drive will probably hold 100 TB and I would not need a bunch of rotating rust. In the mean time, however... I do not normally have these boxes on-line. For example, I will bring up server "taylor14" when I need to save my monthly Clonezilla shapshots or to retrieve a virtual machine backup image or something like that. The server has 4 drives mirrored (manually) two by two. Here is what I would mount with autofs
This will produce mount points under /nfs for the "a" drives in the server. After copying data to the server I manually mirror the new files to the "b" drives.
If I add the mounts to /etc/fstab on the PC and the server is not on-line when I boot the PC I believe it will hang unless I add "nofail". If I then bring up the server and issue "sudo mount -a" I would expect the two mounts to happen. If I then shut down the server without unmounting the nfs exports first... I would expect all sorts of mischief on the PC - as I have experienced when doing the mount/umount process with scripts and forgetting to run the umount script before taking the server down.
Perhaps I have missed something. How do I
Quote:
list them in fstab and mount 'em when you need 'em
The advantage(?) of autofs is that it will mount the devices for you ... avoiding the need to "exercise rootly privileges" to get the job done. However, I have never cared for it – for the very same reasons that you have just encountered. It introduces "awkward delays," and with questionable benefit. (And, it can be "automatically triggered," albeit "in error," as you have also seen.)
In your case, I'd define the mounts in your fstab but not specify that they auto-mount. You then would have to sudo mount the drives before using them, and sudo umount them when they were no longer required. Yeah, a couple extra human-deliberate steps. But you know when you do, and when you don't, need those network resources. Your PDF-reader doesn't.
Last edited by sundialsvcs; 04-19-2017 at 05:59 PM.
I have configured visudo to allow my account to mount and umount NOPASSWORD. That is reasonably painless. It work although I have not accidentally shut down a server while mounted to see what will happen. It often locked things up on CentOS 6.
In looking at how to compose an fstab line I see discussion of the "soft" option. I wonder if that would help with autofs? I still do not see how to specify the mount point when I expect the server to be down when the PC is booted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.