[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

systemd sd_notify in chroot



At the moment the chrooted rsyslog instance use bind mounted /run/systemd/notify.
It is causing the Veeam backup fail.
Anyone how to make it working without bind mounting notify file into chroot?
Is there some way to let systemd create and listen on another "notify" socket?

--
Peter

~# systemctl status rsyslog-chroot@lin.service
● rsyslog-chroot@lin.service - Syslog Service lin instance under /chroot/lin
   Loaded: loaded (/lib/systemd/system/rsyslog-chroot@.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-06-21 12:36:38 CEST; 19min ago
     Docs: man:rsyslogd(8)
           http://www.rsyslog.com/doc/
.......
  Process: 27608 ExecStartPre=/usr/bin/touch /chroot/lin/run/systemd/notify (code=exited, status=0/SUCCESS)
  Process: 27609 ExecStartPre=/bin/mount -o bind,rw /run/systemd/notify /chroot/lin/run/systemd/notify (code=exited, status=0/SUCCESS)
........
 Main PID: 27611 (rsyslogd)
    Tasks: 8 (limit: 4717)
   CGroup: /system.slice/system-rsyslog\x2dchroot.slice/rsyslog-chroot@lin.service
           └─27611 /usr/sbin/rsyslogd -n -f /etc/rsyslog.d/rsyslog-lin.conf

VMTools debug log entries:
[Jun 21 12:41:12.350] [   debug] [vmbackup] *** VmBackupSyncDriverStart
[Jun 21 12:41:12.350] [   debug] [vmsvc] SyncDriver: Skipping remote filesystem, name=systemd-1, mntpt=/proc/sys/fs/binfmt_misc.
[Jun 21 12:41:12.350] [   debug] [vmsvc] SyncDriver: Calling backend 0.
[Jun 21 12:41:12.350] [   debug] [vmsvc] SyncDriver: Freezing using Linux ioctls...
[Jun 21 12:41:12.350] [   debug] [vmsvc] SyncDriver: opening path '/chroot/lin/etc/rsyslog.d'.
[Jun 21 12:41:12.350] [   debug] [vmsvc] SyncDriver: freezing path '/chroot/lin/etc/rsyslog.d' (fd=8).
[Jun 21 12:41:12.396] [   debug] [vmsvc] SyncDriver: successfully froze '/chroot/lin/etc/rsyslog.d' (fd=8).
[Jun 21 12:41:12.396] [   debug] [vmsvc] SyncDriver: opening path '/run/rsyslog-lin/systemd/notify'.
[Jun 21 12:41:12.396] [   debug] [vmsvc] SyncDriver: failed to open '/run/rsyslog-lin/systemd/notify': 6 (No such device or address)
[Jun 21 12:41:12.396] [   debug] [vmsvc] SyncDriver: Thawing fd=8.
[Jun 21 12:41:12.396] [   debug] [vmsvc] SyncDriver: Closing fd=8.
[Jun 21 12:41:12.396] [ warning] [vmbackup] Error freezing filesystems.
[Jun 21 12:41:13.351] [   debug] [vmbackup] *** VmBackupAsyncCallback
[Jun 21 12:41:13.351] [   debug] [vmbackup] *** VmBackupPostProcessCurrentOp
[Jun 21 12:41:13.351] [   debug] [vmbackup] Async request 'VmBackupSyncDriverStart' completed
[Jun 21 12:41:13.351] [   debug] [vmbackup] *** VmBackupSyncDriverReadyForSnapshot
[Jun 21 12:41:13.351] [   debug] [vmbackup] *** VmBackupEnableSync

Reply to: