You are not logged in.

#51 2018-07-13 17:42:28

kinleyd
Member
From: Bhutan
Registered: 2012-09-21
Posts: 142

Re: Dependency failed for File System Check

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

#52 2018-07-13 17:49:37

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Dependency failed for File System Check

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

#53 2018-07-13 19:10:57

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,251

Re: Dependency failed for File System Check

@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

Offline

#54 2018-07-13 19:43:07

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Dependency failed for File System Check

Roken does the journal show systemd unmounting anything before the nfs mounts fail?

Offline

#55 2018-07-13 20:00:19

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,251

Re: Dependency failed for File System Check

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

Offline

#56 2018-07-14 05:26:04

CyrIng
Member
From: France
Registered: 2010-07-17
Posts: 106
Website

Re: Dependency failed for File System Check

As suggested above

noauto,x-systemd.automount

is solving the issue.

The FS are automatically mounted when first used ...

Offline

#57 2018-07-14 12:03:25

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Dependency failed for File System Check

loqs wrote:

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)


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#58 2018-07-14 12:06:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,786
Website

Re: Dependency failed for File System Check

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

#59 2018-07-14 12:17:39

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Dependency failed for File System Check

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)


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#60 2018-07-14 12:40:30

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Dependency failed for File System Check

Please change

  cp -a lvm2/ lvm2-initramfs/

to

  cp -af lvm2/ lvm2-initramfs/

Offline

#61 2018-07-14 12:42:13

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Dependency failed for File System Check

loqs wrote:

Please change

  cp -a lvm2/ lvm2-initramfs/

to

  cp -af lvm2/ lvm2-initramfs/

OK thank you


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#62 2018-07-14 13:19:46

Xwang
Member
Registered: 2012-05-14
Posts: 353

Re: Dependency failed for File System Check

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


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#63 2018-07-14 18:02:25

ormu
Member
Registered: 2013-05-14
Posts: 22

Re: Dependency failed for File System Check

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

#64 2018-07-15 21:12:16

W54J04S07T
Member
Registered: 2016-06-27
Posts: 100

Re: Dependency failed for File System Check

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

#65 2018-07-15 23:05:44

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Dependency failed for File System Check

Offline

#66 2018-07-16 02:38:20

abdulhakeem
Member
From: Chicagoland
Registered: 2016-07-31
Posts: 36
Website

Re: Dependency failed for File System Check

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

#67 2018-07-16 07:14:08

ironicbadger
Member
Registered: 2013-11-12
Posts: 17

Re: Dependency failed for File System Check

LVM package downgrade confirmed to solve this issue here.


linuxserver.io

Offline

#68 2018-07-16 07:22:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Dependency failed for File System Check

Enough with the empty posts: https://wiki.archlinux.org/index.php/Co … mpty_posts



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB