Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel - LVM issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
madurani
n00b
n00b


Joined: 08 Mar 2017
Posts: 54

PostPosted: Thu Nov 28, 2024 8:25 am    Post subject: Genkernel - LVM issue Reply with quote

Hello All, When i wonted to extend /usr lvm volume so i found out that is incorrect mounted. Volume is lvm, but mounted is as dm-8. Same is for root /:

Code:

pc-marek1 /etc # df -h | grep dm-5
/dev/dm-5                     15G   41M   14G   1% /

pc-marek1 /etc # df -h | grep usr
/dev/dm-8                     20G   15G  3.6G  81% /usr
/dev/mapper/system-portage    15G  1.9G   13G  14% /usr/portage
/dev/mapper/system-src        20G   13G  5.8G  69% /usr/src


I tried investigate issue and in dmesg i found that during booting is some problem with lvm, probably some commands missing(failed to execute >>> No such file or directory):

Code:
pc-marek1 /etc # dmesg | grep -i lvm
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.12.1-gentoo-x86_64 root=/dev/mapper/system-root ro dolvm domdadm rootfstype=ext4 pv6.disable=1 mitigations=auto rd.driver.blacklist=nouveau nouveau.modeset=0 nvidia_drm.modeset=1 video=vesafb:off,efifb:on rd.lvm.vg=system
[    0.279490] Kernel command line: BOOT_IMAGE=/vmlinuz-6.12.1-gentoo-x86_64 root=/dev/mapper/system-root ro dolvm domdadm rootfstype=ext4 pv6.disable=1 mitigations=auto rd.driver.blacklist=nouveau nouveau.modeset=0 nvidia_drm.modeset=1 video=vesafb:off,efifb:on rd.lvm.vg=system
[    0.279698] Unknown kernel command line parameters "dolvm domdadm BOOT_IMAGE=/vmlinuz-6.12.1-gentoo-x86_64", will be passed to user space.
[    2.649439]     dolvm
[    3.979142] udevd[2401]: failed to execute '/usr/bin/systemd-run' '/usr/bin/systemd-run --no-block --property DefaultDependencies=no --unit lvm-activate-system /usr/sbin/lvm vgchange -aay --autoactivation event system': No such file or directory
[    4.002315] udevd[2402]: failed to execute '/usr/bin/systemd-run' '/usr/bin/systemd-run --no-block --property DefaultDependencies=no --unit lvm-activate-data02 /usr/sbin/lvm vgchange -aay --autoactivation event data02': No such file or directory
[    4.002376] udevd[2403]: failed to execute '/usr/bin/systemd-run' '/usr/bin/systemd-run --no-block --property DefaultDependencies=no --unit lvm-activate-kvm-storage /usr/sbin/lvm vgchange -aay --autoactivation event kvm-storage': No such file or directory
[    4.002417] udevd[2404]: failed to execute '/usr/bin/systemd-run' '/usr/bin/systemd-run --no-block --property DefaultDependencies=no --unit lvm-activate-data01 /usr/sbin/lvm vgchange -aay --autoactivation event data01': No such file or directory
[    6.697823] systemd[1]: Listening on LVM2 poll daemon socket.
[    6.733309] systemd[1]: Starting Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...


It look like that in vmlinuz-6.12.1-gentoo-x86_64 missing some lvm commnads. After mounting root and usr as dm-X devices are rest of lvm volumes mounted correctly.
kernel I commpile via genkernel:

Code:
pc-marek1 /etc # genkernel --oldconfig --lvm --mdadm all


In /etc/default/grub i have line:

Code:
GRUB_CMDLINE_LINUX="dolvm domdadm rootfstype=ext4 pv6.disable=1 mitigations=auto rd.driver.blacklist=nouveau nouveau.modeset=0 nvidia_drm.modeset=1 video=vesafb:off,efifb:on rd.lvm.vg=system"


I checked "how to" of grub, lvm and genkernel but i didn't find nothing useful. Please help me.
Back to top
View user's profile Send private message
madurani
n00b
n00b


Joined: 08 Mar 2017
Posts: 54

PostPosted: Thu Nov 28, 2024 8:47 am    Post subject: Re: Genkernel - LVM issue Reply with quote

I tried extract initramfs-6.12.1-gentoo-x86_64.img and there missing commnad/file systemd-run

Code:
pc-marek1 ~/test # file /boot/initramfs-6.12.1-gentoo-x86_64.img
/boot/initramfs-6.12.1-gentoo-x86_64.img: XZ compressed data, checksum NONE

pc-marek1 ~/test # xzcat /boot/initramfs-6.12.1-gentoo-x86_64.img | cpio -idm

pc-marek1 ~/test # find . | grep systemd-run
pc-marek1 ~/test #
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum