OK, we're now almost purely into the world of OS questions (I do have one 
s3ql question) but this pertains to running s3ql so I'll keep going.

I've changed the TimeOutStopSec=5min setting under [Service] to 1min. This 
setting appears not to enforce any timeout, instead it's just how long the 
call to unmount will wait before marking it failed or killing it.

I've added ExecStopPost=/usr/bin/sleep 60 to the [Service] in the hopes 
that it would add a 1min pause to unmounting.

So my unit file /lib/systemd/system/s3ql.service now looks like:
[Unit]
Description=mount s3ql filesystem
Require=NetworkManager-wait-online.service
Before=nfs-server.service
After=NetworkManager-wait-online.service


[Service]
ExecStart=/usr/bin/mount.s3ql --fg --authfile /etc/s3ql.authinfo --allow-other 
swift://tin.fhcrc.org/fast_dr/ /fast_dr
ExecStop=/usr/bin/umount.s3ql /fast_dr
ExecStopPost=/usr/bin/sleep 60
TimeoutStopSec=1min


[Install]
WantedBy=multi-user.target
RequiredBy=nfs-server.service

(note that I want to serve this volume via NFS and don't want nfs-server 
running unless this volume is available)

ran "systemctl daemon-reload" to load changes

Still no love. If I fsck the volume, I can run "systemctl start 
s3ql.service" and the volume mounts. If I "systemctl restart," the volume 
unmounts clean, waits a minute and mounts again. "systemctl stop" also 
unmounts gracefully including a 60 second pause.

But (tailing syslog shows this) if I reboot, the system is down within a 
second. What am I missing? You've mentioned systemd-notify here, I believe 
without any mention in the unit file the default for the service is 
"simple," should I be checking on the OS that something is running for that 
work?

s3ql question, finally: a clean unmount shows the metadata being backed up 
and the backup rotated. Is that the complete DB? How large? Where's it 
kept? If the file system is large (say millions of inodes or more) how much 
time/space will that take?

Reading up on systemd and notify....


-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to