Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-11 Thread martin f krafft
also sprach Lennart Poettering [2015-09-11 14:16 +0200]: > I figure the next step is to attach gdb to PID, set a break point > in device_process_new() and figure out why systemd doesn't care > for the symlink. Frankly — and you won't like this — but I lack the resources to get involved at this l

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-11 Thread martin f krafft
also sprach Lennart Poettering [2015-09-11 12:30 +0200]: > Do I see this right, this is luks on lvm on drbd? Yuck! luks on drbd, and the local volume is on lvm, yes. > Which symlink are you looking for? the drbd one? Right. /dev/drbd/by-res/backup -- @martinkrafft | http://madduck.net/ | htt

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-11 Thread martin f krafft
also sprach Andrei Borzenkov [2015-09-11 10:28 +0200]: > Please run "udevadm monitor --env", start drbd service to trigger > device creation and make output available. http://slexy.org/raw/s21alRk3ZD -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ "if you have built castles in

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread martin f krafft
also sprach Michael Biebl [2015-09-10 19:13 +0200]: > Could you run udevadm info on the device? > Does it have a SYSTEMD_READY flag set? No: http://slexy.org/raw/s2VEGDwICN -- @martinkrafft | http://madduck.net/ | http://two.sentenc.es/ murphy's law is recursive. washing your car to make it r

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread martin f krafft
also sprach Michael Biebl [2015-09-10 17:51 +0200]: > drbd requires network access and drdb.service has > DefaultDependencies=yes and is started in multi-user.target. > > If this mount point is treated as local file system, maybe it helps to > explicitly mark it as _netdev, so it is started after

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread martin f krafft
also sprach Lennart Poettering [2015-09-10 13:01 +0200]: > Hmm. After the device appeared in systemd, does it show up in the > Aliases= field of the .device unit? Specifically, can you make the > device appear, then run "systemctl show -a" on it, and paste the > output somewhere? Hoping I know w

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread martin f krafft
also sprach Richard Maw [2015.09.10.1227 +0200]: > > FHANDLE is enabled on this machine (and Debian jessie in general). > > I thought I'd check that first, since it has been the root cause for a few > similar issues. It was a good call and I appreciate your time. -- @martinkrafft | http://madd

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread martin f krafft
also sprach Lennart Poettering [2015-09-10 12:28 +0200]: > Does udev know about the symlink? I.e. does "udevadm info" show it? > Which component is creating it? Only symlinks created by udev are > known by udev and systemd. To support this, the drbd support needs to > install rules files that cre

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread martin f krafft
also sprach Richard Maw [2015-09-10 12:13 +0200]: > I've seen this happen when udev is misbehaving because your kernel doesn't > have > CONFIG_FHANDLE enabled. Can you check that first? FHANDLE is enabled on this machine (and Debian jessie in general). -- @martinkrafft | http://madduck.net/ |

[systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread martin f krafft
Hi, on one of my machines, /srv/backup is an encrypted filesystem sitting on top of a DRBD volume. In /etc/crypttab, I thus have backup /dev/drbd/by-res/backup none noauto and then I mount /dev/mapper/backup on /srv/backuppc. systemd-cryptsetup-generated creates a unit for this which includes