| Summary: | sys-fs/lvm2: LVM locking_dir created on root filesystem instead of designated loocation | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juan Francisco Giordana <juangiordana> |
| Component: | [OLD] baselayout | Assignee: | Robin Johnson <robbat2> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | major | CC: | agk, axiator, cardoe, kanelxake, mschiff |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | lvm2-2.02.49-lockdir-override.patch | ||
|
Description
Juan Francisco Giordana
2009-05-08 06:02:22 UTC
agk: Can we maybe exclude an explicit locking dir commandline option for use during early boot when /var is not yet available? agk: re-ping Can we maybe exclude an explicit locking dir commandline option for use during early boot when /var is not yet available? *** Bug 278825 has been marked as a duplicate of this bug. *** As of the .49 version, the locking directory issue causes some boot failures. I'm attaching a potential prototype patch that implements the command-line option "--lock-dir DIR" that can be used to override what directory the lock is actually created in. Created attachment 198956 [details, diff]
lvm2-2.02.49-lockdir-override.patch
Prototype patch, implements --lock-dir option. Does NOT update the documentation for the new option.
2.02.49-r1 now includes the lock-dir patch, and also updates the lvm2-{stop,start}.sh scripts to use it. It boots my machine fine, and i've got one other report of success. Testing wanted.
works for me now, thanks! This patch makes lv* segfault if you compile it with -fstack-protector-all (not -fstack-protector) using gcc-4.
#0 strncpy (s1=0x7f32af05d1df "", s2=0xa4e <Address 0xa4e out of bounds>, n=128) at strncpy.c:41
n4 = 32
c = 19 '\023'
#1 0x00007f32aee2712b in init_file_locking (locking=<value optimized out>, cmd=0x7f32af05d1e0, lock_dir=0xa4e <Address 0xa4e out of bounds>) at /usr/include/bits/string3.h:122
No locals.
#2 0x00007f32aedfe721 in init_locking (type=<value optimized out>, cmd=0x7f32afa23fe0, lock_dir=0xa4e <Address 0xa4e out of bounds>) at locking/locking.c:271
No locals.
#3 0x00007f32aedc6888 in lvm_run_command (cmd=0x7f32afa23fe0, argc=0, argv=0x7ffffda18fe0) at lvmcmdline.c:1024
ret = <value optimized out>
locking_type = -1
lock_dir = 0xa4e <Address 0xa4e out of bounds>
#4 0x00007f32aedc8f66 in lvm2_main (argc=<value optimized out>, argv=<value optimized out>) at lvmcmdline.c:1367
base = <value optimized out>
ret = -1
alias = 1
cmd = (struct cmd_context *) 0x7f32afa23fe0
#5 0x00007f32addc9a0d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>,
stack_end=0x7ffffda18fc8) at libc-start.c:228
result = <value optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 9159246245105922012, 139855658735024, 140737448611792, 0, 0, -9159241175404744740, -9117125852146012196}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7f32aeb9b6fe, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = -1363560706}}}
not_first_call = <value optimized out>
#6 0x00007f32aedbd5d9 in _start () from /sbin/lvs
No symbol table info available.
Forgot to mention this only occurs if I do not set --lock-dir. $ sudo /sbin/lvs Segmenteringsfel $ sudo /sbin/lvs --lock-dir /tmp LV VG Attr LSize Origin Snap% Move Log Copy% Convert distfiles System -wi-ao 5,00G home System -wi-ao 600,00G opt System -wi-ao 3,00G portage System -wi-ao 1,00G root System -wi-ao 4,00G swap System -wi-ao 2,00G usr System -wi-ao 15,00G var System -wi-ao 5,00G var-tmp System -wi-ao 20,00G |