Re: [gentoo-user] Help!!! My system won't boot. (?lvm?) :-(

2023-01-11 Thread flzdjhmtax
Alan Mackenzie  writes:

> My system isn't booting.  In particular, most of the SSD partitions
> won't mount, because they are not under /dev any more.  The root
> partition, /dev/md125 mounts, but that is all.
>
> These partitions are lvm partitions under RAID-1 (software RAID).  They
> simply fail to appear in /dev/mapper on boot up.
>
> I've managed to bring my system up using a Rescue-DVD followed by
> chroot.  This shows that the partions on the SSD are basically
> undamaged.
>
> I strongly suspect that my emerge update from last night is to blame.

It was.

Been there, done that myself.

Mount your filesystems from the rescue boot and chroot into them.

Re-emerge lvm2 with the "lvm" flag enabled.

See
https://www.gentoo.org/support/news-items/2022-11-19-lvm2-default-USE-flags.html

Some of these commands (or similar) in the rescue boot might be helpful:

mkdir -p /mnt/{usr,var,home,work,boot,dev,sys,proc}

mount /dev/mapper/vg0-root /mnt
mount /dev/mapper/vg0-usr  /mnt/usr
mount /dev/mapper/vg0-var  /mnt/var
mount /dev/mapper/vg1-home /mnt/home
mount /dev/mapper/vg1-work /mnt/work

mount /dev/sda1/mnt/boot

mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /dev/shm /mnt/dev/shm
mount -o bind /sys /mnt/sys
mount -o bind /proc/mnt/proc

PATH=/bin:/sbin:/usr/bin:/usr/sbin \
SHELL=/bin/bash \
chroot /mnt

-- 
Alan J. Wylie  https://www.wylie.me.uk/

Dance like no-one's watching. / Encrypt like everyone is.
Security is inversely proportional to convenience



[gentoo-user] Help!!! My system won't boot. (?lvm?) :-(

2023-01-11 Thread Alan Mackenzie
Hello, Gentoo.

My system isn't booting.  In particular, most of the SSD partitions
won't mount, because they are not under /dev any more.  The root
partition, /dev/md125 mounts, but that is all.

These partitions are lvm partitions under RAID-1 (software RAID).  They
simply fail to appear in /dev/mapper on boot up.  (I don't remember the
exact error message, here).

I've managed to bring my system up using a Rescue-DVD followed by
chroot.  This shows that the partions on the SSD are basically
undamaged.

I strongly suspect that my emerge update from last night is to blame.
There, lvm2-2.03.17-r1 was reinstalled after other packages
(dependencies) were updated.  The order of these packages, taken from
/var/log/emerge.log was:

1. dev-libs/mpfr-4.1.1_p1
2. dev-lang/mujs-1.3.2
3. sys-apps/util-linux-2.38.1
4. sys-apps/systemd-utils-251.10
5. dev-python/installer-0.6.0
6. app-text/lib-paper-2.0.4
7. app-misc/ca-certificates-20211016.3.86
8. sys-fs/lvm2-2.03.17-r1

..  There were a few more packages after that, a total of 23.  If any of
these is relevant, then it is surely 3. or 4.  lvm2 itself was merely
rebuilt.

I've had a quick scan of the gentoo bugzilla, but not found anything
relevant there.

Please help me get my system booting again!

Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).