Bug 461488
| Summary: | Backgrounded NFS mounts dies soon after "service netfs start" command is issued | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Raghavendra Badiger <badiger> | ||||
| Component: | util-linux | Assignee: | Jeff Layton <jlayton> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 4.7 | CC: | badiger, kzak, staubach, steved, tao, ykopkova | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | util-linux-2.12a-19.el4 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2009-05-18 19:01:51 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Raghavendra Badiger
2008-09-08 14:34:54 UTC
There's a lot of info in this bug, but I'm afraid I'm not clear on what the actual problem is. Are you saying that the patch from bug 432313 did not fix this problem for you? Yes, the patch didnot fix the reported problem. Created attachment 316751 [details]
patch -- fix dup2 args in detach_terminal, close original fd
Thanks. I think I see the problem...
Could you test the attached patch and let me know whether it fixes it? It should apply cleanly to the latest util-linux SRPM.
H, I looked in to initlog and mount code and added debugging statemetns assuming the problem is something different. Finally I found the same fix and tested here. It is working fine. INITLOG : PID = 22826 :: PPID : 22813 :::: initlog -q -c mount -a -t nfs,nfs4 INITLOG :forkCommand() quiet 1 : ourpid : 22826 : PID = 22827 :: PPID : 22826 pid : 0 MOUNT :: PID = 22827 :: PPID : 22826 ::::: mount -a -t nfs,nfs4 INITLOG :forkCommand() quiet 1 : ourpid : 22826 : PID = 22826 :: PPID : 22813 pid : 22827 MOUNT : mount Exiting : PID = 22827 :: PPID : 22826 INITLOG :runCommand() IF PART PID : 22826 :: PPID : 22813 : x 0 reexec 0 quiet 1 debug 0 pid : 22827 INITLOG : initlog :: Exiting : PID = 22826 :: PPID : 22813 INITLOG : PID = 22846 :: PPID : 22813 :::: initlog -q -n /etc/rc.d/init.d/netfs -s Mounting NFS filesystems: -e 1 INITLOG : initlog :: Exiting : PID = 22846 :: PPID : 22813 INITLOG : PID = 22848 :: PPID : 22813 :::: initlog -q -c mount -a -t nonfs,nfs4,smbfs,cifs,ncpfs,gfs INITLOG :forkCommand() quiet 1 : ourpid : 22848 : PID = 22849 :: PPID : 22848 pid : 0 MOUNT :: PID = 22849 :: PPID : 22848 ::::: mount -a -t nonfs,nfs4,smbfs,cifs,ncpfs,gfs INITLOG :forkCommand() quiet 1 : ourpid : 22848 : PID = 22848 :: PPID : 22813 pid : 22849 MOUNT : mount Exiting : PID = 22849 :: PPID : 22848 INITLOG :runCommand() IF PART PID : 22848 :: PPID : 22813 : x 0 reexec 0 quiet 1 debug 0 pid : 22849 INITLOG : initlog :: Exiting : PID = 22848 :: PPID : 22813 INITLOG : PID = 22856 :: PPID : 22813 :::: initlog -q -n /etc/rc.d/init.d/netfs -s Mounting other filesystems: -e 1 INITLOG : initlog :: Exiting : PID = 22856 :: PPID : 22813 MOUNT : mount Exiting : PID = 22840 :: PPID : 1 MOUNT : mount Exiting : PID = 22841 :: PPID : 1 MOUNT : mount Exiting : PID = 22839 :: PPID : 1 Sounds good. I'll try to make sure we get this into 4.8. Hi Jeff, By when and in which version of the util-linux SRPM this fix will be available. Please Update us on this. --Raghu Currently, this is on the 4.8 proposed list and I expect that we'll be able to get a fixed package into RHEL4.8 with this patch. If you need something sooner, then you'll need to escalate a support case. If you do open a support case, then be sure to reference this BZ so that they're aware that this is a known bug. Committed in util-linux-2.12a-21.el4 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2009-0981.html |