[DRBD-user] DRBD Delay

Banks, David (db2d) db2d at virginia.edu
Mon Jul 29 14:11:03 CEST 2019


This did not work.


On Jul 24, 2019, at 9:03 AM, Banks, David (db2d) <db2d at virginia.edu<mailto:db2d at virginia.edu>> wrote:

Tried adding new drbd.service file below. In the middle of a data transfer now but will try a reboot when done.

[Unit]
Description=DRBD -- please disable. Unless you are NOT using a cluster manager.
Wants=network.target sshd.service network-online.target zfs-import.target
After=network.target sshd.service network-online.target zfs-import.target

[Service]
Type=oneshot


-------------------------------
Dav Banks
School of Architecture
University of Virginia
Campbell Hall, Rm 138
(o) 434.243.8883
(e) dav.banks at virginia.edu<x-msg://236/davbanks@virginia.edu>

On Jul 24, 2019, at 2:28 AM, Gianni Milo <gianni.milo22 at gmail.com<mailto:gianni.milo22 at gmail.com>> wrote:

It might worth having a look at the drbd.service systemd unit file...

dpkg -l | grep drbd
ii  drbd-dkms                            9.0.19-1                       all          RAID 1 over TCP/IP for Linux module source
ii  drbd-utils                           9.10.0-1                       amd64        RAID 1 over TCP/IP for Linux (user utilities)

dpkg -L drbd-utils|grep drbd.service
/lib/systemd/system/drbd.service

Gianni

On Tue, 23 Jul 2019 at 17:07, Banks, David (db2d) <db2d at virginia.edu<mailto:db2d at virginia.edu>> wrote:
Thanks Veit, that’s what I use to start it manually. I’m looking for the automated approach so that it starts on it’s own reliably after system start.

-------------------------------
Dav Banks
School of Architecture
University of Virginia
Campbell Hall, Rm 138
(o) 434.243.8883
(e) dav.banks at virginia.edu

On Jul 23, 2019, at 3:49 AM, Veit Wahlich <cru.lists at zodia.de<mailto:cru.lists at zodia.de>> wrote:

Hi David,

have a look at the documentation of drbdadm; the commands up, down and
adjust might be what you are looking for.

Best regards,
// Veit


Am Montag, den 22.07.2019, 16:34 +0000 schrieb Banks, David (db2d):
Hello,

Is there a way to delay the loading of DRBD resources until after the
underlying block system has made the devices available?

I’ve looked in systemd but didn’t see any drbd services and wanted to
ask before monkeying with that.

System: Ubuntu 18.04
DRBD: 8.9.10

After reboot DRBD starts before the zfs volumes that is use are
available so I have to do a 'drbdadm adjust all’ each time. I’d like
it to just wait until the zfs-mount.service is done.

Thanks!

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user at lists.linbit.com<mailto:drbd-user at lists.linbit.com>
http://lists.linbit.com/mailman/listinfo/drbd-user


_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user at lists.linbit.com<mailto:drbd-user at lists.linbit.com>
http://lists.linbit.com/mailman/listinfo/drbd-user

_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user at lists.linbit.com<mailto:drbd-user at lists.linbit.com>
http://lists.linbit.com/mailman/listinfo/drbd-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20190729/62017ec1/attachment-0001.htm>


More information about the drbd-user mailing list