Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd November 2011, 06:34 PM
rtkennedy Offline
Registered User
 
Join Date: Nov 2011
Posts: 1
macosfirefox
systemd and a large quantity of NFS mounts

All hail systemd. I have been to the seminar with the strange-tasting punch.

However, I have an /etc/fstab with about 200 NFS mounts in it. systemd does its job and scans the /etc/fstab and makes systemd mounts out of all of them on the fly. Unfortunately when it tries to mount all of them at exactly the same time with 200 individual mount processes, sadness occurs on either the client or the server and some of the mounts take longer than the 90 second timeout in systemd. systemd then sends a TERM to the mount -- it appears to do nothing because all the filesystems get mounted anyway without a retry. I do end up with a bunch of orphaned rpc.statd processes because of the TERM signal.

So far my solutions to this sort-of problem appear to be:

1. Find a way to change the default timeout used for mounts systemd creates on the fly.
2. Find a way to convince systemd to treat them all with a single mount process (like mount -a does).
3. Move the mounts out of fstab into systemd proper. I would have to make some intermediate targets to partially serialize the mounting. I could also adjust the timeout value per mount.
4. Go back to using automount which has caused us so much grief in the past it was removed from our configuration.
5. Just have a script kill all the orphaned rpc.statd processes after boot and walk away, whistling nonchalantly.

Options 3, 4, and 5 are all pretty distasteful for our organization. We also prefer to keep the mounts in /etc/fstab to make for a more homogenous deployment between systemd and non-systemd machines.

Any brilliant ideas?
Reply With Quote
  #2  
Old 2nd November 2011, 07:34 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,092
linuxfedorafirefox
Re: systemd and a large quantity of NFS mounts

Your best bet is to mark them noauto, then in /etc/rc.local put mounts in it to serialize the mounting.

I don't know if a single "mount -a -t nfs" will work when the entries are marked "noauto", but it might.

Sucks. but your problem is the way systemd is designed to work.

Not good for servers. Ok to borderline for workstations. Seems to be designed for netbooks though.

Anything that isn't too complicated.

Last edited by jpollard; 2nd November 2011 at 07:37 PM.
Reply With Quote
Reply

Tags
large, mounts, nfs, quantity, systemd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] httpd and systemd Donald Winslow F15 Development 4 23rd May 2011 03:38 AM
Systemd - Automount jvillain F16 Development 0 8th January 2011 08:55 PM
systemd? ssidhar F14 Development 5 29th September 2010 07:11 PM
Systemd + nfs mounts jvillain F16 Development 3 18th June 2010 04:13 AM
nothing mounts on boot nor auto mounts earobinson111 Using Fedora 7 16th December 2004 09:04 PM


Current GMT-time: 20:05 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat