Red Hat Bugzilla – Bug 838512
Tuned tries to remount a device mounted more than once on the system and fails
Last modified: 2013-11-21 06:33:01 EST
Description of problem: /etc/tune-profiles/enterprise-storage/ktune.sh (and probably others) is not able to correctly mount a GFS2 volume mounted twice or more times on the same system with the same journal id. Version-Release number of selected component (if applicable): tuned-0.2.19-7.el6.noarch How reproducible: Always. Steps to Reproduce: 1. Configure /dev/<path_to>/<gfs2_volume> to mount to /mnt/a and /mnt/b in /etc/fstab 2. Reboot system Actual results: ktune.sh tries to mount /mnt/a and /mnt/b with nobarrier option, which is impossible in the configuration above. Expected results: Exclude /mnt/a and /mnt/b from the list of devices that have to be mounted with nobarrier option.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux.
I will just silence the error, because remounting local mounts with nobarrier can pass: # mount ... /dev/loop0 on /var/tmp/a type gfs2 (rw) /dev/loop0 on /var/tmp/b type gfs2 (rw) # mount -o remount,barrier=0 /var/tmp/a # mount ... /dev/loop0 on /var/tmp/a type gfs2 (rw,nobarrier) /dev/loop0 on /var/tmp/b type gfs2 (rw)
Created attachment 777456 [details] Proposed fix
As mentioned in comment #6, there is no need for automatic test in my opinion. Patch looks sane and it applies correctly. Marking Sanity only.
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-2013-1623.html