RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 769874 - tail: fix --follow on FhGFS remote file systems
Summary: tail: fix --follow on FhGFS remote file systems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: coreutils
Version: 6.4
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 809828 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-22 15:39 UTC by Sven Breuner
Modified: 2018-11-27 19:25 UTC (History)
6 users (show)

Fixed In Version: coreutils-8.4-17.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 14:34:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0933 0 normal SHIPPED_LIVE coreutils bug fix and enhancement update 2012-06-19 20:45:56 UTC

Description Sven Breuner 2011-12-22 15:39:09 UTC
Description of problem:
"tail" from coreutils is trying to use inotify with the FhGFS remote file system, which isn't working (i.e. a process will not receive inotify notifications when a file is updated by a process on another machine in a cluster).

Steps to reproduce:
1. Use "tail -f" on a log file from machine A in an FhGFS mount directory.
2. Append text to the log file from machine B.
3. "tail -f" will not show/notice that the file has been updated, because it is waiting for an inotify notification (which won't be coming).
  
Actual results:
"tail -f" does not show updates, although the file has in fact been updated.

Expected results:
"tail -f" should fallback to the stat-based polling method instead of using inotify on a remote file system. Then it would work as expected and show/notice that the file has been updated.

Additional info:
Most of our users are using RHEL and thus currently experience problems when they try to watch their compute job log files with "tail -f" on a cluster.

Tail has an internal list of remote file systems, for which it automatically disables inotify. I already reported the problem to the GNU coreutils mailing list and a small patch has been developed by Jim Meyering to add FhGFS to tail's list of remote file systems, which resolves the problem:
http://lists.gnu.org/archive/html/bug-coreutils/2011-12/msg00129.html

To resolve the problem for our users as quickly as possible, can you please apply the patch to the RHEL version of the GNU coreutils.

Thanks and best regards,

Sven Breuner
Fraunhofer HPC, FhGFS Development Team

Comment 6 Josko Plazonic 2012-03-12 21:15:41 UTC
Indeed - please consider adding support for detecting GPFS - we have just hit that issue and it is defaulting to inotify use on GPFS file systems (and therefore failing miserably).  The strace is indicating the right magic number (from above coreutils commits) so adding those commits would fix it.

Thanks!

Comment 7 Ondrej Vasik 2012-04-04 13:45:58 UTC
*** Bug 809828 has been marked as a duplicate of this bug. ***

Comment 8 Joe Pope 2012-04-04 19:26:18 UTC
When is an updated coreutils rpm going to be released to support GPFS? I found a workaround by using the "---disable-inotify" option but would prefer an updated version of tail.

Comment 9 Ondrej Vasik 2012-04-05 07:35:44 UTC
At the moment the fix is planned for RHEL-6.3 minor update. I can't give any promise but it is very likely that this will be fixed in that update.

Comment 11 errata-xmlrpc 2012-06-20 14:34:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0933.html


Note You need to log in before you can comment on or make changes to this bug.