aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netfs
Commit message (Collapse)AuthorAgeFilesLines
* netfs: only unmount loopback device mounted on top of netdev or with ↵Lukas Nykryn2016-02-031-12/+3
| | | | back-file on netdev
* netfs: tweak nfs umountLukas Nykryn2016-01-191-58/+5
| | | | | | | | We want to run one round of regular umount before we will look for open descriptors. In the case that there are some stale mounts, without any open file descriptors on them we will avoid blocking stat call later. Resolves: #1296900
* netfs: don't race NFS umount to network shutdownBenjamin Coddington2015-02-271-5/+57
| | | | | | | | | | | | | | RHEL6 customers have been reporting hangs when restaring due to IO for NFS filesystems being unable to flush after network shutdown. The current __umount_loop allows newly created processes to continue to open files to NFS filesystems, which can create thisi problem. Change the umount logic to perform a MNT_DETACH, then search for processes that have open file descriptors on the detached filesystems. The detach prevents newly created processes from opening new files during our search. Finally, after making every attempt to clean up processes with open files, perform a sync to flush NFS filesystems before continuing onto network shutdown.
* netfs: implicitly handle glusterfs as a network filesystemdLukas Nykryn2014-04-301-0/+13
|
* rc.sysinit: use 'vgchange --ignoreskippedcluster'Lukas Nykryn2014-03-261-1/+1
|
* Revert "do not run fsck in netfs multiple times (#825190)"Lukas Nykryn2013-08-091-5/+1
| | | | This reverts commit 542108e4cc22662701fd98e45ad13ece7a84baa1.
* do not run fsck in netfs multiple times (#825190)Lukas Nykryn2013-07-221-1/+5
|
* netfs: do not force NFS exports to be mounted before _netdev mountsHarshula Jayasuriya2013-07-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current /etc/init.d/netfs mounts the following entries in /etc/fstab not in the order desired by the sysadmin: -------------------------------------------- /dev/san_test/san_vol /mnt/san ext3 _netdev 0 0 nas:/vol/vol7/afsdb /mnt/san/nfs nfs _netdev 0 0 -------------------------------------------- => The NFS filesystem needs to be mounted after the SAN filesystem. Looking at /etc/init.d/netfs: -------------------------------------------- 37 start) 38 # Let udev handle any backlog before trying to mount file systems 39 /sbin/udevsettle --timeout=30 40 [ -n "$NFSFSTAB" ] && 41 { 42 [ ! -f /var/lock/subsys/portmap ] && service portmap start 43 action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4 44 } 45 [ -n "$SMBFSTAB" ] && action $"Mounting SMB filesystems: " mount -a -t smbfs 46 [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs 47 [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs 48 [ -n "$NETDEVFSTAB" ] && 49 { ... 98 } 99 touch /var/lock/subsys/netfs 100 # The 'no' applies to all listed filesystem types. See mount(8). 101 action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,smbfs,cifs,ncpfs,gfs -------------------------------------------- => The NFS filesystems are mounted *before* _netdev regardless of what the sysadmin wants. So, let's defer all the mounts, NFS, SMB, CIFS, etc, to the final mount -a and only do all the necessary prereqs in the conditional clauses. This gives the sysadmin the ability to order netfs mounts as they see fit. Signed-off-by: Harshula Jayasuriya <harshula@redhat.com>
* use vgchange -aay in rc.sysinit and netfs init scriptLukas Nykryn2012-10-081-1/+1
|
* Do not check mounted filesystems (#745224)Lukas Nykryn2012-02-131-1/+1
|
* plymouth lives in /bin. (#702814)Bill Nottingham2011-08-161-2/+2
| | | | | | Conflicts: rc.d/rc.sysinit
* Don't mount gfs2 in netfs (#689593)Bill Nottingham2011-08-151-1/+1
|
* Add a comment explaining the oft-confused -t nox,y,z mount syntax.Bill Nottingham2011-08-151-0/+1
| | | | | The 'no' applies to all listed filesystem types, not just the first. Since this comes up in bugzilla once every month or two, explicitly comment it.
* Don't print errors if mdadm isn't installed. (#692187)Bill Nottingham2011-04-191-2/+2
|
* Also init_crypto for encrypyed network block devices. (#605600)Bill Nottingham2010-06-231-0/+5
|
* Check for NetworkManager to be connected, not just running. (#589710, #592095)Bill Nottingham2010-05-131-1/+1
|
* More random return code fixes.Bill Nottingham2009-09-291-1/+1
|
* Fix stop/start return codes (#524489).Bill Nottingham2009-09-241-0/+2
|
* Various initscript standard changes. (#524486)Bill Nottingham2009-09-211-2/+4
|
* Use $() instead of `` for process expansion.Bill Nottingham2009-07-301-8/+8
| | | | Adapted from <victor.lowther@gmail.com>.
* Drop smbfs support - both the kernel module and the userspace helper are ↵Bill Nottingham2009-04-021-14/+2
| | | | long gone.
* Support MD on iSCSI (this *SHOULD* be udev rules, but alas) (#480627)Bill Nottingham2009-03-111-0/+3
|
* Use the same arguments for kpartx that we do in rc.sysinit.Bill Nottingham2009-02-061-1/+1
| | | | Noticed when reviewing (#448919)
* Don't unmount the nfsd filesystem when unmounting nfs client mounts. ↵Bill Nottingham2009-01-271-1/+1
| | | | (#481794, <sprabhu@redhat.com>)
* Add some LSB description stuff. (#225900)Bill Nottingham2008-09-301-0/+2
|
* Just use plymouth directly, not the rhgb-client wrapper.Bill Nottingham2008-09-231-4/+4
| | | | This fixes the fact that the semantics of --details changed.
* Check that we're on a tty before trying to start a repair shell. (#463161)Bill Nottingham2008-09-231-2/+2
| | | | | | If netfs isn't running from a tty (say, from NetworkManager), the attempt to start a shell will fail, and we'll immediately fall through to rebooting. That isn't good.
* remove references to static dmraid/multipath binaries (#453987)Bill Nottingham2008-07-031-2/+2
|
* Revert "Remove rhgb support."Bill Nottingham2008-06-191-0/+4
| | | | This reverts commit c722b0ee95746aa9289efd40bbdd23a87d1e5dee.
* Remove rhgb support.Bill Nottingham2008-05-131-4/+0
|
* do a much better check for network availabilityBill Nottingham2008-04-231-3/+1
| | | | Avoids nasty 'FAILED' messages when using NetworkManager.
* Remove $local_fs from the list of provides.Bill Nottingham2008-04-011-1/+1
| | | | | | | The concept of local filesystems on top of remote network filesystems is bizarre enough that it's almost certainly not necessary for 'system' things. Removing the $local_fs provide (making it implicitly provided, like $time) simplifies some of the dependency issues.
* Umount 'ncp' filesystems as well (#437117)Bill Nottingham2008-03-121-1/+1
|
* use lvm, not lvm.static (#429222)Bill Nottingham2008-01-191-3/+3
|
* - netfs: check for rpcbind, not portmap (#245595)Bill Nottingham2007-06-251-1/+1
|
* run multipath on netdev devices (#180977)Bill Nottingham2006-08-011-0/+7
|
* /etc/mtab doesn't have commentsBill Nottingham2006-07-111-1/+1
|
* Fix handling of mount points with white space (#186713):Miloslav Trmac2006-05-081-65/+14
| | | | | | | | | | | | | - src/fstab-decode.c, src/fstab-decode.8: New files. - src/Makefile: Build and install fstab-decode. - initscripts.spec: Add fstab-decode to %files - rc.d/init.d/functions (fstab_decode_str): New function. (__umount_loop, __umount_loopback_loop): Factor out from copy&pasted copies. (action): Fix command quoting. - rc.d/rc.sysinit: Correctly quote and decode mount points. - rc.d/init.d/halt: Use __umount_* and fstab-decode. (action): Rename from runcmd. Fix command quoting. - rc.d/init.d/netfs: Use __umount_*.
* fix redirect (#187505)Bill Nottingham2006-04-031-1/+1
|
* set status correctly (#60711)Bill Nottingham2005-09-291-0/+1
|
* handle lvm & fsck for network block devices (#148764, <alewis@redhat.com>)Bill Nottingham2005-07-141-1/+53
|
* I'm going to go out on a limb and say that /proc/mounts *doesn't* haveBill Nottingham2005-04-271-10/+10
| | | | comments.
* fix _netdev unmounting (#147610, <alewis@redhat.com>)Bill Nottingham2005-02-091-3/+3
|
* don't unmount NFS root FS (#142169)Bill Nottingham2004-12-081-2/+2
|
* don't mount GFS (#140281)Bill Nottingham2004-11-241-1/+1
|
* fix nfs unmounting (#129765)Bill Nottingham2004-08-121-2/+2
|
* handle CIFS (#115691)Bill Nottingham2004-03-171-2/+14
|
* fix mount invocationBill Nottingham2004-01-271-1/+1
|
* NFSv4 support (<chucklever@bigfoot.com>, <steved@redhat.com>)Bill Nottingham2004-01-271-6/+6
|
* speedups (<drepper@redhat.com>)Bill Nottingham2003-01-071-15/+15
| | | | | - use LC_ALL=C - don't use both grep&awk on the same file, just use awk