You are not logged in.
Same issue here.. and glad to know I have plenty of company, and that I have lvm2 on my system. Going to downgrade now...
and that did it for me. Now I'll have to remember to ignore lvm2 upgrades until a fix is in.
Edit: My apologies, @loqs. I just want to add that using noauto,x-systemd.automount in fstab was the better option as I don't need to track lvm2 updates.
Edit 2: I had to downgrade lvm2 after all as my qemu/kvm vm could not access the host.
Last edited by kinleyd (2018-07-14 13:49:29)
Offline
If you are also affected please do not post me too or fixed by an already listed work around (if a work around that is known to work does not work for you please do post that)
Edit:
Known work arounds
Downgrade to lvm2 2.02.177-5
Mask lvm2-monitor.service
Add noauto,x-systemd.automount to fstab entries
Ctrl-D to continue boot
Last edited by loqs (2018-07-13 18:06:50)
Offline
@loqs
Whilst Ctrl-D is, indeed a workaround of the boot failure, it does not work around all issues. Ctrl-D will allow the system to boot, but some drives (in my case, NFS mounts) will fail to mount via fstab at boot until you sudo mount -a.
Last edited by Roken (2018-07-13 19:11:19)
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
Roken does the journal show systemd unmounting anything before the nfs mounts fail?
Offline
I haven't tried the journal, and have downgraded again already. Currently suffering with toothache (got an emergency dental appointment tomorrow and don't trust myself to concentrate adequately, right now). Let me fix the pain, and I'll test tomorrow or Sunday and post back.
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
As suggested above
noauto,x-systemd.automount
is solving the issue.
The FS are automatically mounted when first used ...
Offline
The following assumes the base-devel group is installed and I recommend enabling Makepkg#Parallel_compilation to reduce build times
$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/lvm2" $ cp -r packages/trunk lvm2 $ rm -rf packages $ cd lvm2 # replace PKGBUILD with the one in this post $ makepkg -rsi #this is to confirm lvm2 2.02.179 as built on your system has the issue $ cd lvm2/src/lvm2 $ git checkout v2_02_177 $ cd ../.. $ makepkg -ersi #this is to confirm lvm2 2.02.177 as built on your system does not have the issue $ cd lvm2/src/lvm2 $ git bisect start $ git bisect good v2_02_177 $ git bisect bad v2_02_179 $ cd ../.. $ makepkg -ersif $ cd lvm2/src/lvm2 $ git bisect $result #substitute good or bad here $ cd ../.. $ makepkg -ersif #repeat these four lines and test the generated package until git has found the bad commit
PKGBUILD
# $Id$ # Maintainer: Eric Bélanger <eric@archlinux.org> # Maintainer: Thomas Bächler <thomas@archlinux.org> pkgbase=lvm2 pkgname=('lvm2' 'device-mapper') pkgver=2.02.177.r0.ga1f7a4832 pkgrel=1 arch=('x86_64') url='https://sourceware.org/lvm2/' license=('GPL2' 'LGPL2.1') makedepends=('git' 'systemd' 'thin-provisioning-tools') groups=('base') validpgpkeys=('88437EF5C077BD113D3B7224228191C1567E2C17' # Alasdair G Kergon <agk@redhat.com> 'D501A478440AE2FD130A1BE8B9112431E509039F') # Marian Csontos <marian.csontos@gmail.com> source=("git+https://sourceware.org/git/lvm2.git#tag=v2_02_179" 'lvm2_install' 'lvm2_hook' 'sd-lvm2_install' '11-dm-initramfs.rules') sha256sums=('SKIP' 'cc51940a8437f3c8339bb9cec7e929b2cc0852ffc8a0b2463e6f67ca2b9950f6' '97d7c92e4954bc0108e7cd183b2eb5fe7ecc97e6f56369669e6537cb6ed45d80' 'b749c2da0e9307b0c2c3858d024a19c268e01e393e876a284fe1a302427f72f1' 'e10f24b57582d6e2da71f7c80732a62e0ee2e3b867fe84591ccdb53e80fa92e0') pkgver() { cd lvm2 git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/_/./g;s/-/./g' } prepare() { cd lvm2/ # # remove install section from systemd units that are enabled by default # sed -i -e '/^\[Install\]$/,$d' \ # scripts/dm_event_systemd_red_hat.socket.in \ # scripts/lvm2_lvmetad_systemd_red_hat.socket.in \ # scripts/lvm2_lvmpolld_systemd_red_hat.socket.in \ # scripts/lvm2_monitoring_systemd_red_hat.service.in } build() { local _CONFIGUREOPTS=( --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --enable-applib --enable-cmdlib --enable-dmeventd --enable-lvmetad --enable-lvmpolld --enable-pkgconfig --enable-readline --enable-udev_rules --enable-udev_sync --enable-use-lvmetad --with-cache=internal --with-default-dm-run-dir=/run --with-default-locking-dir=/run/lock/lvm --with-default-pid-dir=/run --with-default-run-dir=/run/lvm --with-systemdsystemunitdir=/usr/lib/systemd/system --with-thin=internal --with-udev-prefix=/usr ) cp -a lvm2/ lvm2-initramfs/ cd lvm2/ ./configure "${_CONFIGUREOPTS[@]}" --enable-udev-systemd-background-jobs make # Build legacy udev rule for initramfs cd ../lvm2-initramfs ./configure "${_CONFIGUREOPTS[@]}" --enable-udev-systemd-background-jobs=no cd udev make 69-dm-lvm-metad.rules } package_device-mapper() { pkgdesc="Device mapper userspace library and tools" url="http://sourceware.org/dm/" depends=('glibc' 'libsystemd') cd lvm2/ make DESTDIR="${pkgdir}" install_device-mapper # extra udev rule for device-mapper in initramfs install -D -m644 "${srcdir}/11-dm-initramfs.rules" "${pkgdir}/usr/lib/initcpio/udev/11-dm-initramfs.rules" # Install dmeventd socket and service make DESTDIR="${pkgdir}" install_systemd_units rm -f "${pkgdir}/usr/lib/systemd/system/"{blk-availability.service,lvm2-*} install -d -m755 "${pkgdir}/usr/lib/systemd/system/sockets.target.wants" ln -sf ../dm-event.socket "${pkgdir}/usr/lib/systemd/system/sockets.target.wants/dm-event.socket" sed -i -e '/^\[Install\]$/,$d' "${pkgdir}/usr/lib/systemd/system/dm-event.socket" } package_lvm2() { pkgdesc="Logical Volume Manager 2 utilities" depends=('bash' "device-mapper>=${pkgver}" 'libsystemd' 'readline' 'thin-provisioning-tools') conflicts=('lvm' 'mkinitcpio<0.7') backup=('etc/lvm/lvm.conf' 'etc/lvm/lvmlocal.conf') options=('!makeflags') install=lvm2.install cd lvm2/ make DESTDIR="${pkgdir}" install_lvm2 # install applib make -C liblvm DESTDIR="${pkgdir}" install # /etc directories install -d "${pkgdir}"/etc/lvm/{archive,backup} # mkinitcpio hook install -D -m644 "${srcdir}/lvm2_hook" "${pkgdir}/usr/lib/initcpio/hooks/lvm2" install -D -m644 "${srcdir}/lvm2_install" "${pkgdir}/usr/lib/initcpio/install/lvm2" install -D -m644 "${srcdir}/sd-lvm2_install" "${pkgdir}/usr/lib/initcpio/install/sd-lvm2" # extra udev rule for lvmetad in non-systemd initramfs install -D -m644 "${srcdir}/lvm2-initramfs/udev/69-dm-lvm-metad.rules" "${pkgdir}/usr/lib/initcpio/udev/69-dm-lvm-metad.rules" # systemd support make DESTDIR="${pkgdir}" install_systemd_units rm -f "${pkgdir}/usr/lib/systemd/system/"dm-* install -d -m755 "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants" ln -sf ../lvm2-lvmetad.socket "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants/lvm2-lvmetad.socket" ln -sf ../lvm2-lvmpolld.socket "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket" ln -sf ../lvm2-monitor.service "${pkgdir}/usr/lib/systemd/system/sysinit.target.wants/lvm2-monitor.service" make DESTDIR="${pkgdir}" install_systemd_generators sed -i -e '/^\[Install\]$/,$d' \ "${pkgdir}/usr/lib/systemd/system/lvm2-lvmetad.socket" \ "${pkgdir}/usr/lib/systemd/system/lvm2-lvmpolld.socket" \ "${pkgdir}/usr/lib/systemd/system/lvm2-monitor.service" }
I'm trying
Last edited by Xwang (2018-07-14 12:05:13)
Offline
It's built alongside the lvm2 package. Add it to your pacman -U command.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Trying to compile the first version after the bisect commands, it gives this errors (the 177 and 179 version compiled correctly).
makepkg -ersif
==> Creazione del pacchetto: lvm2 2.02.177.r291.gddb5de7a9-1 (sab 14 lug 2018 14:15:21 CEST)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> ATTENZIONE: Sto usando il tree esistente di $srcdir/
==> Avvio di pkgver() in corso...
==> Rimozione dell'esistente directory $pkgdir/ in corso...
==> Avvio di build() in corso...
cp: impossibile creare il file regolare 'lvm2-initramfs/lvm2/.git/objects/pack/pack-97c5281d5954b0d06a40d2e2e1a30253e46b46ad.idx': Permesso negato
cp: impossibile creare il file regolare 'lvm2-initramfs/lvm2/.git/objects/pack/pack-bfce2c51bd966697c4a689458b706548d04c4407.idx': Permesso negato
cp: impossibile creare il file regolare 'lvm2-initramfs/lvm2/.git/objects/pack/pack-03e57a3f5377c1e33b2b76321f7ba45a6f5a3c61.idx': Permesso negato
cp: impossibile creare il file regolare 'lvm2-initramfs/lvm2/.git/objects/pack/pack-4426143dfe84db371e8346c35e44f9f5c6430b83.idx': Permesso negato
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta...
Last edited by Xwang (2018-07-14 12:19:38)
Offline
Please change
cp -a lvm2/ lvm2-initramfs/
to
cp -af lvm2/ lvm2-initramfs/
Offline
Please change
cp -a lvm2/ lvm2-initramfs/
to
cp -af lvm2/ lvm2-initramfs/
OK thank you
Offline
This is the output of the bisect process:
57bb46c5e7f8d6af1737af5ed1acae8abc37cded is the first bad commit
commit 57bb46c5e7f8d6af1737af5ed1acae8abc37cded
Author: David Teigland <teigland@redhat.com>
Date: Thu May 3 17:12:07 2018 -0500
filter: use bcache for filter reads
Filters are still applied before any device reading or
the label scan, but any filter checks that want to read
the device are skipped and the device is flagged.
After bcache is populated, but before lvm looks for
devices (i.e. before label scan), the filters are
reapplied to the devices that were flagged above.
The filters will then find the data they need in
bcache.
:040000 040000 721531d5dfb3c46b9eb6778d168ab4924b8e5b17 43153836af55b5de10d7717006056b4b7c547007 M lib
:040000 040000 2f55881a01e084feb23bcd53e183507e24dd8af1 c25495fb0704d96a8b802e6bc48f6a935547cd52 M tools
Offline
I think I'm having the same problem. I upgraded the system today. Last upgrade was done in January.
Ctrl+D seems to work. Also, rebooting works sometimes.
Offline
This is a very strange little issue.
Ran updates today on 4 systems ( not updated in last week ).
All systems except one did not exhibit this problem.
Thats 2 systems with AMD graphics/cpus and 2 with nVidia graphics and intel cpus.
The one that did exhibit this problem, ( intel/nvidia ), I simply booted up the LTS kernel instead
and the issue doesn't exhibit on LTS. Just the current 4.17.5 kernel.
Now theres a head scratcher for you.
Last edited by W54J04S07T (2018-07-15 21:14:22)
Offline
@W54J04S07T similar report https://bbs.archlinux.org/viewtopic.php … 3#p1797093
Offline
Just chiming in, I'm also experiencing the same issue. Will try downgrading lvm and confirm if that works for me or not. But I don't actually use lvm so I'm not sure if it will have any effect for me
Last edited by abdulhakeem (2018-07-16 02:49:40)
And the worldly life is not but amusement and diversion; but the home of the Hereafter is best for those who fear Allah, so will you not reason? {6:32}
Offline
LVM package downgrade confirmed to solve this issue here.
linuxserver.io
Offline
Offline