Summary: | sys-fs/lvm2-2.02.67-r2 breaks under kernel 2.6.32-hardened-r9 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Dodd <paul.dodd> |
Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | agk, cardoe, prajnoha |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Paul Dodd
2010-07-29 15:30:19 UTC
The problem was resolved by setting CONFIG_SYSVIPC=y in the kernel configuration with the menuconfig for kernel 2.6.32-hardened-r9 (in kernel 2.6.28-hardened-r9 CONFIG_SYSVIPC was not set.). Changing /etc/lvm/lvm.conf to get more info: < verbose = 3 < syslog = 0 < file = "/lvm2.log" < level = 7 < command_names = 1 < activation = 1 produced : ioctl/libdm-iface.c:1888 lvchange dm info S7RSdRl0pzR3xkJF3i4hvvJQ65U0IioefEVf MVCZBGABHPhoJm4o6JVgwkX4AUK2-cow OF [16384] ioctl/libdm-iface.c:1888 lvchange dm info (254:6) OF [16384] libdm-deptree.c:949 lvchange Removing vg-opt (254:6) libdm-common.c:1130 lvchange Failed to create notification semaphore: Function not implemented libdm-common.c:1197 lvchange <backtrace> libdm-deptree.c:1165 lvchange Unable to deactivate vg-opt (254:6) : libdm-common.c @ line 1110: if (base_cookie && (gen_semid = semget((key_t) gen_cookie, 1, 0600 | IPC_CREAT | IPC_EXCL)) < 0) { seems to depend on SYSVIPC? The documentation and ELOG make no mention of this. agk: Is CONFIG_SYSVIPC required now? If so, I'll add in a check to the ebuild. Can you add in a check/warning for it at runtime as well? The udev code requires semaphores... Peter - see comment #2 (In reply to comment #2) > Can you add in a check/warning for it at runtime as well? OK, I've added the check. If there's no SYSVIPC/semaphore support and libdevmapper is configured with "--enable-udev_sync", a warning message is issued and the udev synchronisation code is automatically disabled in runtime. http://sourceware.org/git/?p=lvm2.git;a=commit;h=d33d0b01bf102630b7e25fb4cab9ac3d9f3152fe Warning added to all ebuilds >= 2.02.67. Thanks for the warning in LVM2 as well. |