Originally posted by Michael_S
View Post
Announcement
Collapse
No announcement yet.
Systemd 232 Coming Soon With Numerous New Features
Collapse
X
-
Originally posted by Ericg View PostFrom Lennart
- Likes 3
Comment
-
Originally posted by Stellarwind View Post
Translation: mounting filesystems is harder than we thought and it often didn't work under systemd, because it was stupid enough to shut down network before nfs was unmounted, so we had to come up with even more crap to fix this mess.
- Likes 3
Comment
-
Stellarwind, no idea what you are talking about, you mount disks using mount command + fstab. For network mounts, did you try to add dependency for your mount "x-systemd.requires=network.target" ...?
Comment
-
Originally posted by Stellarwind View Post
Translation: mounting filesystems is harder than we thought and it often didn't work under systemd, because it was stupid enough to shut down network before nfs was unmounted, so we had to come up with even more crap to fix this mess.
In systemd 231- or any other init system(outside recent enough solaris OS) having to umount an networked filesystem (ceph, nfs, samba, AFS, etc.) can generate race conditions or partial/missed writes(depends if it support atomic operations) due to the fact there is no way for the services to inform the init system "perfectly" when there are current operations(specially messy with forked child processes on write operations). This + systemd dbus API can be a trully effective solution that would allow both services to talk and agree when is safe to continue the shutdown/restart process
The same is true at boot, is very weird to find a distro with enough dark magic bash on the init files to be able to mount networked filesystems when something weird happens(for example FSCK taking long time on main drive while NFS fail to find mount point path, just a simple example of the million things that can go wrong when mounting networked FS). This should help a lot here too.
- Likes 1
Comment
-
Originally posted by Stellarwind View PostTranslation: I'm an idiot and can't configure my services correctly, so I blame whatever else
It's an init system damnit, not an AGI nanny for noobs.
- Likes 2
Comment
-
Originally posted by Ericg View Post
From Lennart
Second: through systemd's job scheduler we can schedule an fsck invocation before the first access. This means: we can automatically fix up the fs should it end up being uncleanly unplugged after all.
- Likes 2
Comment
-
Originally posted by acobar View Post
This is really a bad idea. All fixes must be explicitly called or you may risk ruining the work of someone else, even though you had the best of the intentions. Hard learned lesson.
Can you give an example of what you mean? Your last sentence suggests, that you have encountered some.
- Likes 1
Comment
-
Originally posted by srakitnican View PostStellarwind, no idea what you are talking about, you mount disks using mount command + fstab. For network mounts, did you try to add dependency for your mount "x-systemd.requires=network.target" ...?
Yes, you need dependency, but network.target is not enough. Systemd way seems good in simple cases, but you end up in a dependency hell very quickly.
With sysvinit this was usually not a problem, because startup/shutdown was done in a specific order. Slower, but much more reliable and debuggable,
I'm not saying that sysvinit way is always better btw, just that relying 100% on dependency tree is a mess.
- Likes 1
Comment
Comment