Bug 561226
| Summary: | clvmd hangs during stress load | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Perry Myers <pmyers> | ||||||||||
| Component: | lvm2-cluster | Assignee: | Petr Rockai <prockai> | ||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||||||
| Severity: | medium | Docs Contact: | |||||||||||
| Priority: | low | ||||||||||||
| Version: | 5.4 | CC: | agk, casmith, ccaulfie, cluster-maint, cmarthal, coughlan, dwysocha, edamato, heinzm, jbrassow, jfenal, jkortus, joe.thornber, mbroz, prajnoha, prockai | ||||||||||
| Target Milestone: | rc | Keywords: | ZStream | ||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | 559999 | Environment: | |||||||||||
| Last Closed: | 2011-01-13 22:42:36 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: | |||||||||||||
| Bug Depends On: | 559999, 561227 | ||||||||||||
| Bug Blocks: | 584706 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Perry Myers
2010-02-03 04:10:44 UTC
Assign to mbroz for packaging as the patch is now in CVS. Fix in lvm2-cluster-2.02.56-10.el5. This doesn't appear to be fixed. I ran five instances of the script mentioned in comment #0 on all the nodes in my four node cluster. Those scripts continued to make progress for about 12 hours at which point the vgscan cmds hung. The lvs cmds however continued to run however. I'll attach kern dumps from each of the systems. TAFT-01: [root@taft-01 ~]# ps aux | grep vgs root 10219 0.0 0.0 77944 1704 pts/3 S+ 04:38 0:00 vgscan root 10438 0.0 0.0 77940 1372 pts/4 S+ 04:38 0:00 vgscan root 10467 0.0 0.0 77940 1368 pts/1 S+ 04:38 0:00 vgscan root 10543 0.0 0.0 77940 1368 pts/2 S+ 04:38 0:00 vgscan root 10694 0.0 0.0 77940 1368 pts/0 S+ 04:38 0:00 vgscan root 12045 0.0 0.0 61212 748 pts/7 S+ 11:52 0:00 grep vgs [root@taft-01 ~]# ps -elf | grep vgs 4 S root 10219 11012 0 75 0 - 19486 - 04:38 pts/3 00:00:00 vgscan 0 S root 10438 12880 0 80 0 - 19485 - 04:38 pts/4 00:00:00 vgscan 0 S root 10467 9594 0 78 0 - 19485 - 04:38 pts/1 00:00:00 vgscan 0 S root 10543 10352 0 80 0 - 19485 - 04:38 pts/2 00:00:00 vgscan 0 S root 10694 8411 0 77 0 - 19485 - 04:38 pts/0 00:00:00 vgscan 0 S root 12356 14973 0 78 0 - 15304 pipe_w 11:52 pts/7 00:00:00 grep vgs [root@taft-01 ~]# strace -p 10219 Process 10219 attached - interrupt to quit read(3, TAFT-04: [root@taft-04 ~]# ps -elf | grep vgs 0 S root 6102 22608 0 77 0 - 19491 - 04:37 pts/0 00:00:00 vgscan 0 S root 6127 23827 0 80 0 - 19491 - 04:37 pts/1 00:00:00 vgscan 0 S root 6345 24540 0 78 0 - 19491 - 04:38 pts/2 00:00:00 vgscan 0 S root 6426 25180 0 80 0 - 19491 - 04:38 pts/3 00:00:00 vgscan 0 S root 6427 26998 0 78 0 - 19491 - 04:38 pts/4 00:00:00 vgscan 0 S root 12572 12548 0 78 0 - 15310 pipe_w 11:54 pts/7 00:00:00 grep vgs [root@taft-04 ~]# ps aux | grep vgs root 6102 0.0 0.0 77964 1376 pts/0 S+ 04:37 0:00 vgscan root 6127 0.0 0.0 77964 1376 pts/1 S+ 04:37 0:00 vgscan root 6345 0.0 0.0 77964 1376 pts/2 S+ 04:38 0:00 vgscan root 6426 0.0 0.0 77964 1372 pts/3 S+ 04:38 0:00 vgscan root 6427 0.0 0.0 77964 1368 pts/4 S+ 04:38 0:00 vgscan root 12576 0.0 0.0 61240 760 pts/7 S+ 11:54 0:00 grep vgs [root@taft-04 ~]# strace -p 6427 Process 6427 attached - interrupt to quit connect(3, {sa_family=AF_FILE, path="/var/run/lvm/clvmd.sock"...}, 110 2.6.18-225.el5 lvm2-2.02.73-2.el5 BUILT: Mon Aug 30 06:36:20 CDT 2010 lvm2-cluster-2.02.73-2.el5 BUILT: Mon Aug 30 06:38:05 CDT 2010 device-mapper-1.02.54-2.el5 BUILT: Fri Sep 10 12:00:05 CDT 2010 cmirror-1.1.39-10.el5 BUILT: Wed Sep 8 16:32:05 CDT 2010 kmod-cmirror-0.1.22-3.el5 BUILT: Tue Dec 22 13:39:47 CST 2009 Created attachment 452996 [details]
kern dump from taft-01
Created attachment 452997 [details]
kern dump from taft-02
Created attachment 452998 [details]
kern dump from taft-03
Created attachment 452999 [details]
kern dump from taft-04
Running test instances over the weekend with the latest scratch build http://download.devel.redhat.com/brewroot/scratch/mbroz/task_2838441. Should have an update on this Monday. The vgscan commands still eventually end up deadlocking with the test rpms in comment #12. Hm. One thing that puzzles me somewhat: are the lvs commands still making progress? It is puzzling, because according to your strace, vgscan is hanging trying to connect to clvmd. If lvs is connecting to clvmd, it should experience the same hang. And it should be, as far as I can tell? I have tracked down and fixed another deadlock in clvmd. It is consistent with the logs here in the sense that all the clvmd threads are hanging on futexes apart from one, which is hanging in vfs_read. I will merge the patch now and hopefully Milan can make a new test build with that patch. Even though the vfs_read is hopeful, there may be other deadlocks... nevertheless, testing it can't hurt. The latest build appears to fix this deadlock. The scripts in comment #0 have been running w/o issues for almost 24 hours. 2.6.18-227.el5 lvm2-2.02.74-1.el5 BUILT: Fri Oct 15 10:26:21 CDT 2010 lvm2-cluster-2.02.74-1.6.el5 BUILT: Wed Oct 27 04:57:56 CDT 2010 device-mapper-1.02.55-1.el5 BUILT: Fri Oct 15 06:15:55 CDT 2010 cmirror-1.1.39-10.el5 BUILT: Wed Sep 8 16:32:05 CDT 2010 kmod-cmirror-0.1.22-3.el5 BUILT: Tue Dec 22 13:39:47 CST 2009 Nice. The fix that Corey has been testing is already upstream, going for POST. Additional fixes in lvm2-cluster-2.02.74-2.el5. Multiple instances of the this test script ran all night. Marking verified in the current rpms. 2.6.18-227.el5 lvm2-2.02.74-1.el5 BUILT: Fri Oct 15 10:26:21 CDT 2010 lvm2-cluster-2.02.74-2.el5 BUILT: Fri Oct 29 07:48:11 CDT 2010 device-mapper-1.02.55-1.el5 BUILT: Fri Oct 15 06:15:55 CDT 2010 cmirror-1.1.39-10.el5 BUILT: Wed Sep 8 16:32:05 CDT 2010 kmod-cmirror-0.1.22-3.el5 BUILT: Tue Dec 22 13:39:47 CST 2009 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/RHBA-2011-0053.html |