Bug #1994
closeddm/lvm not working on latest master
0%
Description
I upgrade my PostgreSQL test box to latest master. I couldn't access my
striped lv anymore after upgrading. I removed the lv and tried to
recreated it, but no success. It complaines about stripe target missing
from kernel, but the module is loaded.
bash-4.1# pvs
PV VG Fmt Attr PSize PFree
/dev/da1s2a vg01 lvm2 a- 9.93g 9.93g
/dev/da2s2a vg01 lvm2 a- 9.93g 9.93g
bash-4.1# vgs -v
Finding all volume groups
Finding volume group "vg01"
VG Attr Ext #PV #LV #SN VSize VFree VG UUID
vg01 wz--n- 4.00m 2 0 0 19.87g 19.87g
DYRNaR-yLWe-vrmt-IHNj-UAWL-ukjT-sJm2KE
bash-4.1# kldstat
Id Refs Address Size Name
1 9 0xc0100000 804310 kernel
2 1 0xc0905000 6cd48 acpi.ko
3 1 0xc0972000 11bbc ahci.ko
4 1 0xc0984000 93ec ehci.ko
7 1 0xdc192000 3000 dm_target_striped.ko
8 1 0xdc354000 9000 dm.ko
bash-4.1# lvcreate -i 2 -I 64 -L 18G -n stripe_lv vg01
striped: Required device-mapper target(s) not detected in your kernel
Run `lvcreate --help' for more information.
in /var/log/messages I have:
Feb 19 15:55:54 atom kernel: Device Mapper version 4.16.0 loaded
Feb 19 15:55:54 atom kernel: dm_target_error: Successfully initialized
Feb 19 15:55:54 atom kernel: dm_target_zero: Successfully initialized
Feb 19 15:55:54 atom kernel: dm_target_stripe: Successfully initialized
Feb 19 15:56:03 atom kernel: da2s1: cannot find label (no disk label)
Feb 19 15:56:09 atom last message repeated 86 times
Feb 19 15:58:34 atom last message repeated 93 times
Feb 19 15:59:06 atom last message repeated 4 times
Feb 19 16:26:27 atom kernel: da2s1: cannot find label (no disk label)
Jan
Updated by lentferj almost 14 years ago
hmm.. seems I need the linear target, too?
Jan Lentfer schrieb:
I upgrade my PostgreSQL test box to latest master. I couldn't access my
striped lv anymore after upgrading. I removed the lv and tried to
recreated it, but no success. It complaines about stripe target missing
from kernel, but the module is loaded.bash-4.1# pvs
PV VG Fmt Attr PSize PFree
/dev/da1s2a vg01 lvm2 a- 9.93g 9.93g
/dev/da2s2a vg01 lvm2 a- 9.93g 9.93g
bash-4.1# vgsv4.00m 2 0 0 19.87g 19.87g
Finding all volume groups
Finding volume group "vg01"
VG Attr Ext #PV #LV #SN VSize VFree VG UUID
vg01 wz--n
DYRNaR-yLWe-vrmt-IHNj-UAWL-ukjT-sJm2KE
bash-4.1# kldstat
Id Refs Address Size Name
1 9 0xc0100000 804310 kernel
2 1 0xc0905000 6cd48 acpi.ko
3 1 0xc0972000 11bbc ahci.ko
4 1 0xc0984000 93ec ehci.ko
7 1 0xdc192000 3000 dm_target_striped.ko
8 1 0xdc354000 9000 dm.ko
bash-4.1# lvcreate -i 2 -I 64 -L 18G -n stripe_lv vg01
striped: Required device-mapper target(s) not detected in your kernel
Run `lvcreate --help' for more information.in /var/log/messages I have:
Feb 19 15:55:54 atom kernel: Device Mapper version 4.16.0 loaded
Feb 19 15:55:54 atom kernel: dm_target_error: Successfully initialized
Feb 19 15:55:54 atom kernel: dm_target_zero: Successfully initialized
Feb 19 15:55:54 atom kernel: dm_target_stripe: Successfully initialized
Feb 19 15:56:03 atom kernel: da2s1: cannot find label (no disk label)
Feb 19 15:56:09 atom last message repeated 86 times
Feb 19 15:58:34 atom last message repeated 93 times
Feb 19 15:59:06 atom last message repeated 4 times
Feb 19 16:26:27 atom kernel: da2s1: cannot find label (no disk label)Jan
Updated by alexh over 13 years ago
Recent masters should load all the needed targets automatically, except during
initrd; unless lvm first checks for present modules instead of just going ahead
and using them.
Is your issue fixed by loading the dm_target_linear module?