SHOW:
|
|
- or go back to the newest paste.
| 1 | $ journalctl _COMM=lvmetad|tail -2 | |
| 2 | -- Reboot -- | |
| 3 | sept. 05 09:26:18 data-dev4 lvmetad[372]: Cannot lock lockfile [/run/lvmetad.pid], error was [Resource temporarily unavailable] | |
| 4 | ||
| 5 | ||
| 6 | $ ps -aux|grep l[v]m | |
| 7 | root 60 0.0 0.0 160440 444 ? Ssl 09:26 0:00 lvmetad | |
| 8 | root 117 0.0 0.0 25924 5064 ? Ss 09:26 0:00 (lvm2) pvscan --background --cache --activate ay --major 8 --minor 21 | |
| 9 | root 355 0.0 0.0 27280 3832 ? Ss 09:26 0:00 /usr/bin/lvm pvscan --cache --activate ay 8:5 | |
| 10 | root 423 0.0 0.0 27280 3692 ? Ss 09:26 0:00 /usr/bin/lvm pvscan --cache --activate ay 8:21 | |
| 11 | $ for i in 60 117 355 423 ; do ps -o lstart= -p $i ; done | |
| 12 | Fri Sep 5 09:26:15 2014 | |
| 13 | Fri Sep 5 09:26:16 2014 | |
| 14 | Fri Sep 5 09:26:18 2014 | |
| 15 | Fri Sep 5 09:26:20 2014 | |
| 16 | ||
| 17 | ||
| 18 | $ cat /usr/lib/systemd/system/lvm2-lvmetad.service | |
| 19 | [Unit] | |
| 20 | Description=LVM2 metadata daemon | |
| 21 | Documentation=man:lvmetad(8) | |
| 22 | Requires=lvm2-lvmetad.socket | |
| 23 | After=lvm2-lvmetad.socket | |
| 24 | DefaultDependencies=no | |
| 25 | Conflicts=shutdown.target | |
| 26 | ||
| 27 | [Service] | |
| 28 | Type=simple | |
| 29 | NonBlocking=true | |
| 30 | ExecStart=/usr/bin/lvmetad -f | |
| 31 | Environment=SD_ACTIVATION=1 | |
| 32 | Restart=on-abort | |
| 33 | PIDFile=/run/lvmetad.pid | |
| 34 | ||
| 35 | [Install] | |
| 36 | - | WantedBy=sysinit.target |
| 36 | + | WantedBy=sysinit.target |
| 37 | ||
| 38 | ||
| 39 | ||
| 40 | ********* | |
| 41 | Debug trace: | |
| 42 | ||
| 43 | (gdb) attach 60 | |
| 44 | Attaching to program: /usr/bin/lvmetad, process 60 | |
| 45 | warning: .dynamic section for "/usr/lib/libdevmapper.so.1.02" is not at the expected address (wrong library or version mismatch?) | |
| 46 | warning: Could not load shared library symbols for linux-vdso.so.1. | |
| 47 | Do you need "set solib-search-path" or "set sysroot"? | |
| 48 | Reading symbols from /usr/lib/libdevmapper.so.1.02...done. | |
| 49 | Loaded symbols for /usr/lib/libdevmapper.so.1.02 | |
| 50 | Reading symbols from /usr/lib/libpthread.so.0...(no debugging symbols found)...done. | |
| 51 | [New LWP 118] | |
| 52 | [Thread debugging using libthread_db enabled] | |
| 53 | Using host libthread_db library "/usr/lib/libthread_db.so.1". | |
| 54 | Loaded symbols for /usr/lib/libpthread.so.0 | |
| 55 | Reading symbols from /usr/lib/libc.so.6...(no debugging symbols found)...done. | |
| 56 | Loaded symbols for /usr/lib/libc.so.6 | |
| 57 | Reading symbols from /usr/lib/libudev.so.1...(no debugging symbols found)...done. | |
| 58 | Loaded symbols for /usr/lib/libudev.so.1 | |
| 59 | Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. | |
| 60 | Loaded symbols for /lib64/ld-linux-x86-64.so.2 | |
| 61 | Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done. | |
| 62 | Loaded symbols for /usr/lib/librt.so.1 | |
| 63 | Reading symbols from /usr/lib/libdl.so.2...(no debugging symbols found)...done. | |
| 64 | Loaded symbols for /usr/lib/libdl.so.2 | |
| 65 | Got object file from memory but can't read symbols: File truncated. | |
| 66 | 0x00007f493238d565 in pthread_join () from /usr/lib/libpthread.so.0 | |
| 67 | (gdb) bt full | |
| 68 | #0 0x00007f493238d565 in pthread_join () from /usr/lib/libpthread.so.0 | |
| 69 | No symbol table info available. | |
| 70 | #1 0x00007f4932a12c32 in reap (waiting=waiting@entry=1, s=...) at daemon-server.c:500 | |
| 71 | last = 0x7ffff81faf00 | |
| 72 | ts = 0x7f4932cdbb10 | |
| 73 | rv = 0x0 | |
| 74 | #2 0x00007f4932a13b8d in daemon_start (s=...) at daemon-server.c:593 | |
| 75 | failed = <optimized out> | |
| 76 | _log = {log_config = {1, 1, 0 <repeats 30 times>}, backend_state = {0x0 <repeats 32 times>}, name = 0x7f4932a1599f "lvmetad"}
| |
| 77 | _threads = {s = {thread_stack_size = 0, avoid_oom = 0, foreground = 0, name = 0x0, pidfile = 0x0, socket_path = 0x0, protocol = 0x0,
| |
| 78 | protocol_version = 0, handler = 0x0, daemon_init = 0x0, daemon_fini = 0x0, socket_fd = 0, log = 0x0, threads = 0x0, private = 0x0}, client = {
| |
| 79 | socket_fd = 0, thread_id = 0, read_buf = 0x0, private = 0x0}, next = 0x7f4932cdbb10, active = 0} | |
| 80 | #3 0x00007f4932a0fe2b in main (argc=1, argv=0x7ffff81fb4f8) at lvmetad-core.c:1254 | |
| 81 | opt = <optimized out> | |
| 82 | ls = {log = 0x7ffff81fafa0, log_config = 0x7f4932a1588a "", pvid_to_pvmeta = 0x7f4924004d50, device_to_pvid = 0x7f4924004e80,
| |
| 83 | vgid_to_metadata = 0x7f4924004fb0, vgid_to_vgname = 0x7f49240050e0, vgname_to_vgid = 0x7f4924005340, pvid_to_vgid = 0x7f4924005210, lock = {
| |
| 84 | vg = 0x7f4932cdb7c0, vg_lock_map = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0,
| |
| 85 | __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' <repeats 39 times>, __align = 0}, pvid_to_pvmeta = {__data = {__lock = 0,
| |
| 86 | __count = 0, __owner = 0, __nusers = 0, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
| |
| 87 | __size = '\000' <repeats 16 times>, "\001", '\000' <repeats 22 times>, __align = 0}, vgid_to_metadata = {__data = {__lock = 0, __count = 0,
| |
| 88 | __owner = 0, __nusers = 0, __kind = 1, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
| |
| 89 | __size = '\000' <repeats 16 times>, "\001", '\000' <repeats 22 times>, __align = 0}, pvid_to_vgid = {__data = {__lock = 0, __count = 0,
| |
| 90 | __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
| |
| 91 | __size = '\000' <repeats 39 times>, __align = 0}}, token = "filter:0", '\000' <repeats 119 times>, token_lock = {__data = {__lock = 0,
| |
| 92 | __count = 0, __owner = 0, __nusers = 0, __kind = 0, __spins = 0, __elision = 0, __list = {__prev = 0x0, __next = 0x0}},
| |
| 93 | __size = '\000' <repeats 39 times>, __align = 0}} | |
| 94 | s = {thread_stack_size = 0, avoid_oom = 0, foreground = 0, name = 0x7f4932a1599f "lvmetad", pidfile = 0x7f4932a15976 "/run/lvmetad.pid",
| |
| 95 | socket_path = 0x7f4932a15987 "/run/lvm/lvmetad.socket", protocol = 0x7f4932a1599f "lvmetad", protocol_version = 1, | |
| 96 | handler = 0x7f4932a11460 <handler>, daemon_init = 0x7f4932a10190 <init>, daemon_fini = 0x7f4932a10090 <fini>, socket_fd = 0, log = 0x0, | |
| 97 | threads = 0x0, private = 0x7ffff81fb250} | |
| 98 | (gdb) thread 2 | |
| 99 | [Switching to thread 2 (Thread 0x7f49313c9700 (LWP 118))] | |
| 100 | #0 0x00007f493239366d in read () from /usr/lib/libpthread.so.0 | |
| 101 | (gdb) bt full | |
| 102 | #0 0x00007f493239366d in read () from /usr/lib/libpthread.so.0 | |
| 103 | No symbol table info available. | |
| 104 | #1 0x00007f4932a14786 in buffer_read (fd=6, buffer=0x7f49313c8e98) at daemon-io.c:38 | |
| 105 | result = <optimized out> | |
| 106 | #2 0x00007f4932a12f97 in client_thread (state=0x7f4932cdbb10) at daemon-server.c:421 | |
| 107 | req = {cft = 0x7f4924005490, buffer = {allocated = 32, used = 0, mem = 0x7f4924001300 "\250"}}
| |
| 108 | res = {error = 0, cft = 0x7f49240114c0, buffer = {allocated = 0, used = 0, mem = 0x0}}
| |
| 109 | #3 0x00007f493238c124 in start_thread () from /usr/lib/libpthread.so.0 | |
| 110 | No symbol table info available. | |
| 111 | #4 0x00007f49320c04bd in clone () from /usr/lib/libc.so.6 | |
| 112 | No symbol table info available. | |
| 113 | (gdb) detach | |
| 114 | Detaching from program: /usr/bin/lvmetad, process 60 | |
| 115 | (gdb) quit |