The "Wants=" clause is just a way to say that there is a soft-dependency between unit files. In this case, it's saying that if you "systemctl enable rbdmap.service", it will also ensure that "network-online.target" and "remote-fs-pre.target" are enabled. The "Before=" and "After=" clauses just establish the ordering. Are there any messages from systemd in regards to the hang you are seeing? You can run "systemctl list-dependencies" or "systemd-analyze critical-chain remote-fs.target" to examine the dependency graphs of the services. On Wed, Feb 13, 2019 at 4:42 AM Clausen, Jörn <jclausen@xxxxxxxxx> wrote: > > Hi! > > I am new to Ceph, Linux, systemd and all that stuff. I have set up a > test/toy Ceph installation using ceph-ansible, and now try to understand > RBD. > > My RBD client has a correct /etc/ceph/rbdmap, i.e. /dev/rbd0 is created > during system boot automatically. But adding an entry to /etc/fstab > hangs the boot process. > > I find this in systemd/rbdmap.service strange: > > After=network-online.target > Before=remote-fs-pre.target > Wants=network-online.target remote-fs-pre.target > > As I said, I am new to systemd, but "remote-fs-pre.target" both in > "Before" and "Wants" seems counter-intuitive to me. > > After changing this to > > After=network-online.target > Before=local-fs.target > > the boot process succeeds and the RBD is mounted via fstab as intended. > > Am I missing something here? > > Joern > > -- > Jörn Clausen > Daten- und Rechenzentrum > GEOMAR Helmholtz-Zentrum für Ozeanforschung Kiel > Düsternbrookerweg 20 > 24105 Kiel > > _______________________________________________ > ceph-users mailing list > ceph-users@xxxxxxxxxxxxxx > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com -- Jason _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com