Control: forcemerge -1 960595 Control: tags -1 + moreinfo I assume this was filed twice by mistake, so merging the two bug reports
Am 14.05.2020 um 13:20 schrieb Wladimir Mutel: > Package: systemd > Version: 241-7~deb10u4 > Severity: normal > > Dear Maintainer, > > I have Cubietruck A20 system with Armbian kernel 4.19.62 and the rest of > packages taken from Debian 10 Buster armhf, systemd is 241-7~deb10u4. > > To save my boot microSD card from wearing down, I created a LVM2 volume group > on USB-attached HDD (WD5000BMVW, Western Digital Elements / My Passport > (USB)), and a number of ext4 filesystems on LVs in this VG, to store /var/lib > , /var/log , some of /var/spool/* , /var/cache , and so on . > > I properly recorded all these filesystems in /etc/fstab and they are mounted > on system boot. > > But as a result, some services have become dependent on these filesystems > having been mounted before they start. In part, bind9 (named) and squid > (squid3). And after next reboot I noticed that these services are started > earlier than they have these filesystems mounted & accessible. > > So I asked some systemd experts, and they said, "run 'systemctl edit' and add > .mount dependencies on these services". And I added override files for bind9 > and squid with content like that : > > # /etc/systemd/system/squid.service.d/override.conf > [Unit] > Requires=var-log.mount var-spool-squid3.mount > After=var-log.mount var-spool-squid3.mount > > and > > # /etc/systemd/system/bind9.service.d/override.conf > [Unit] > Requires=var-lib.mount var-cache.mount > After=var-lib.mount var-cache.mount > > and this did not help, else I would not be asking my question. You can be > sure that I took these .mount names from the printout of 'systemctl > list-units', and tried Requires and After both alone and together > > In 'journalctl -b' I see very clearly that bind9 and squid .services are > started very early and failing; and only some seconds later, usb block device > (sda) is discovered, lvm pvscan is run, and found LVs are activated and > mounted. So I assume these .mount units simply do not exist when bind9&squid > .service start is attempted. Please attach the output of a journalctl -alb output with systemd.log_level=debug enabled https://freedesktop.org/wiki/Software/systemd/Debugging/#index1h1 -> If You Can Get a Shell -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature