BPI-Router-Linux icon indicating copy to clipboard operation
BPI-Router-Linux copied to clipboard

[BPI-R3][Kernel 6.1] LVM issue

Open guedz opened this issue 1 year ago • 2 comments

Hello,

When i try to create a LV i have an issue :

root@bpi-r3:~# vgs
  VG      #PV #LV #SN Attr   VSize   VFree  
  os        1   0   0 wz--n- <32.00g <32.00g
root@bpi-r3:~# lvs
root@bpi-r3:~# lvcreate -n opt os -L 1G
  /dev/mapper/control: open failed: No such device
  Failure to communicate with kernel device-mapper driver.
  Check that device-mapper is available in the kernel.
  Incompatible libdevmapper 1.02.185 (2022-05-18) and kernel driver (unknown version).
  striped: Required device-mapper target(s) not detected in your kernel.
  Run `lvcreate --help' for more information.

Have you an idea about this issue ? Thanks for your help

Best regards

guedz avatar Jan 26 '24 14:01 guedz

I guess i have not added related kernel options for r3 :)

frank-w avatar Jan 26 '24 15:01 frank-w

Try adding these options

https://github.com/frank-w/BPI-Router-Linux/blob/6.1-main/arch/arm/configs/mt7623n_evb_fwu_defconfig#L384

To end of this file

https://github.com/frank-w/BPI-Router-Linux/blob/6.1-main/arch/arm64/configs/mt7986a_bpi-r3_defconfig

Running importconfig again and building

frank-w avatar Jan 26 '24 16:01 frank-w

at least on kernel 6.6 i have it working

frank-w avatar Aug 30 '24 12:08 frank-w