| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
back-file on netdev
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
This reverts commit 542108e4cc22662701fd98e45ad13ece7a84baa1.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
| |
Conflicts:
rc.d/rc.sysinit
|
| |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Adapted from <victor.lowther@gmail.com>.
|
|
|
|
| |
long gone.
|
| |
|
|
|
|
| |
Noticed when reviewing (#448919)
|
|
|
|
| |
(#481794, <sprabhu@redhat.com>)
|
| |
|
|
|
|
| |
This fixes the fact that the semantics of --details changed.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This reverts commit c722b0ee95746aa9289efd40bbdd23a87d1e5dee.
|
| |
|
|
|
|
| |
Avoids nasty 'FAILED' messages when using NetworkManager.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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_*.
|
| |
|
| |
|
| |
|
|
|
|
| |
comments.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- use LC_ALL=C
- don't use both grep&awk on the same file, just use awk
|