DRBD8 with Systemd-Networkd (Netplan)Am I running NetworkManager or networkd?How can I disable LLMNR in Netplan?Long bootup time with bridge configured in netplan in 18.04networkd status - wlp1s0: Could not join netdev: Operation not supportedisc-dhcp-server and systemd-networkd
Would Great Old Ones care about the Blood War?
Would it be easier to colonise a living world or a dead world?
Transiting through Switzerland by coach with lots of cash
Injection from two strings to one string
Is there a difference between historical fiction and creative non-fiction?
Had there been instances of national states banning harmful imports before the Opium wars?
Does SQL Server's serializable isolation level lock entire table
What is the difference between 山道【さんどう】 and 山道【やまみち】?
How to prove (A v B), (A → C), (B → D) therefore (C v D)
Is there any specific significance of inverse demand?
Is there any problem with students seeing faculty naked in university gym?
If LPG gas burners can reach temperatures above 1700 °C, then how do HCA and PAH not develop in extreme amounts during cooking?
Determine the Winner of a Game of Australian Football
Find the percentage
Can someone identify this old round connector?
How to explain that the sums of numerators over sums of denominators isn't the same as the mean of ratios?
Trigger : making API call to validate record creation?
How to catch creatures that can predict the next few minutes?
Who became a professor?
What's the difference between motherboard and chassis?
How to know the size of a package
What is the size of Neverwinter?
Why didn't Trudy wear a breathing mask in Avatar?
How do I know how many sub-shells deep I am?
DRBD8 with Systemd-Networkd (Netplan)
Am I running NetworkManager or networkd?How can I disable LLMNR in Netplan?Long bootup time with bridge configured in netplan in 18.04networkd status - wlp1s0: Could not join netdev: Operation not supportedisc-dhcp-server and systemd-networkd
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
This is the first time I am configuring DRBD(drbd-utils 8.9.10-2) on a Ubuntu 18.04 with systemd-networkd (using netplan).
Generally the setup seems successful. I have one resource that is being synced over two hosts via a dedicated interface. The NIC of node1 and node2 are directly connected (no Switch). Another NIC is used for the hearbeat resource and ressources like webserver.
Now to the part that does not work:
When I unplug the cable of the dedicated drdb network connection, the nodes fall into the StandAlone mode instead of WFConnection. The logs show, that it tries to get into WFConnection but fails and thereafter falls back into StandAlone:
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Flags change: -UP -LOWER_UP -RUNNING
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_33 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=21 reply_cookie=0 signature=sasvas error-name=n/a error-message=n/a
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: LLDP: Stopping LLDP client
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Stopped LLDP.
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Lost carrier
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: State is configured, dropping config
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Removing address: 192.168.0.2/24 (valid forever)
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Network configuration changed, trying to establish connection.
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Synchronized to time server 91.189.94.4:123 (ntp.ubuntu.com).
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: PingAck did not arrive in time.
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: peer( Primary -> Unknown ) conn( Connected -> NetworkFailure ) pdsk( UpToDate -> DUnknown )
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: ack_receiver terminated
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: Terminating drbd_a_storage1
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( NetworkFailure -> Unconnected )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Restarting receiver thread
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver (re)started
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Unconnected -> WFConnection )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: bind before listen failed, err = -99
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( WFConnection -> Disconnecting )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Disconnecting -> StandAlone )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: State change failed: Need a connection to start verify or resync
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: mask = 0x1f0 val = 0x80
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: old_conn:StandAlone wanted_conn:WFConnection
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Terminating drbd_r_storage1
This error is new to me and never happened with Ubuntu 16.04, where ifupdown
was used rather than systemd-networkd
:
bind before listen failed, err = -99
If I systemctl stop systemd-networkd
before unplugging the cable, the behavior is correct --> it remains in WFConnection but I want to be able to use systemd-networkd and not reconfigure everything to go back to "the old way".
The disconnecting of the cable has been simulated in two different ways with the same result:
ip link set ens190 down
or simply disconnecting the interface physically.
Does anyone have an idea what process of systemd-networkd
(or possibly networkd-dispatcher
or other?) causes this misbehavior? I have not been able to find anything on the internet related to this topic.
Any help is highly appreciated.
netplan cluster systemd-networkd
add a comment
|
This is the first time I am configuring DRBD(drbd-utils 8.9.10-2) on a Ubuntu 18.04 with systemd-networkd (using netplan).
Generally the setup seems successful. I have one resource that is being synced over two hosts via a dedicated interface. The NIC of node1 and node2 are directly connected (no Switch). Another NIC is used for the hearbeat resource and ressources like webserver.
Now to the part that does not work:
When I unplug the cable of the dedicated drdb network connection, the nodes fall into the StandAlone mode instead of WFConnection. The logs show, that it tries to get into WFConnection but fails and thereafter falls back into StandAlone:
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Flags change: -UP -LOWER_UP -RUNNING
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_33 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=21 reply_cookie=0 signature=sasvas error-name=n/a error-message=n/a
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: LLDP: Stopping LLDP client
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Stopped LLDP.
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Lost carrier
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: State is configured, dropping config
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Removing address: 192.168.0.2/24 (valid forever)
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Network configuration changed, trying to establish connection.
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Synchronized to time server 91.189.94.4:123 (ntp.ubuntu.com).
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: PingAck did not arrive in time.
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: peer( Primary -> Unknown ) conn( Connected -> NetworkFailure ) pdsk( UpToDate -> DUnknown )
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: ack_receiver terminated
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: Terminating drbd_a_storage1
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( NetworkFailure -> Unconnected )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Restarting receiver thread
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver (re)started
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Unconnected -> WFConnection )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: bind before listen failed, err = -99
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( WFConnection -> Disconnecting )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Disconnecting -> StandAlone )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: State change failed: Need a connection to start verify or resync
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: mask = 0x1f0 val = 0x80
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: old_conn:StandAlone wanted_conn:WFConnection
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Terminating drbd_r_storage1
This error is new to me and never happened with Ubuntu 16.04, where ifupdown
was used rather than systemd-networkd
:
bind before listen failed, err = -99
If I systemctl stop systemd-networkd
before unplugging the cable, the behavior is correct --> it remains in WFConnection but I want to be able to use systemd-networkd and not reconfigure everything to go back to "the old way".
The disconnecting of the cable has been simulated in two different ways with the same result:
ip link set ens190 down
or simply disconnecting the interface physically.
Does anyone have an idea what process of systemd-networkd
(or possibly networkd-dispatcher
or other?) causes this misbehavior? I have not been able to find anything on the internet related to this topic.
Any help is highly appreciated.
netplan cluster systemd-networkd
add a comment
|
This is the first time I am configuring DRBD(drbd-utils 8.9.10-2) on a Ubuntu 18.04 with systemd-networkd (using netplan).
Generally the setup seems successful. I have one resource that is being synced over two hosts via a dedicated interface. The NIC of node1 and node2 are directly connected (no Switch). Another NIC is used for the hearbeat resource and ressources like webserver.
Now to the part that does not work:
When I unplug the cable of the dedicated drdb network connection, the nodes fall into the StandAlone mode instead of WFConnection. The logs show, that it tries to get into WFConnection but fails and thereafter falls back into StandAlone:
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Flags change: -UP -LOWER_UP -RUNNING
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_33 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=21 reply_cookie=0 signature=sasvas error-name=n/a error-message=n/a
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: LLDP: Stopping LLDP client
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Stopped LLDP.
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Lost carrier
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: State is configured, dropping config
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Removing address: 192.168.0.2/24 (valid forever)
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Network configuration changed, trying to establish connection.
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Synchronized to time server 91.189.94.4:123 (ntp.ubuntu.com).
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: PingAck did not arrive in time.
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: peer( Primary -> Unknown ) conn( Connected -> NetworkFailure ) pdsk( UpToDate -> DUnknown )
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: ack_receiver terminated
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: Terminating drbd_a_storage1
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( NetworkFailure -> Unconnected )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Restarting receiver thread
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver (re)started
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Unconnected -> WFConnection )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: bind before listen failed, err = -99
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( WFConnection -> Disconnecting )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Disconnecting -> StandAlone )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: State change failed: Need a connection to start verify or resync
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: mask = 0x1f0 val = 0x80
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: old_conn:StandAlone wanted_conn:WFConnection
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Terminating drbd_r_storage1
This error is new to me and never happened with Ubuntu 16.04, where ifupdown
was used rather than systemd-networkd
:
bind before listen failed, err = -99
If I systemctl stop systemd-networkd
before unplugging the cable, the behavior is correct --> it remains in WFConnection but I want to be able to use systemd-networkd and not reconfigure everything to go back to "the old way".
The disconnecting of the cable has been simulated in two different ways with the same result:
ip link set ens190 down
or simply disconnecting the interface physically.
Does anyone have an idea what process of systemd-networkd
(or possibly networkd-dispatcher
or other?) causes this misbehavior? I have not been able to find anything on the internet related to this topic.
Any help is highly appreciated.
netplan cluster systemd-networkd
This is the first time I am configuring DRBD(drbd-utils 8.9.10-2) on a Ubuntu 18.04 with systemd-networkd (using netplan).
Generally the setup seems successful. I have one resource that is being synced over two hosts via a dedicated interface. The NIC of node1 and node2 are directly connected (no Switch). Another NIC is used for the hearbeat resource and ressources like webserver.
Now to the part that does not work:
When I unplug the cable of the dedicated drdb network connection, the nodes fall into the StandAlone mode instead of WFConnection. The logs show, that it tries to get into WFConnection but fails and thereafter falls back into StandAlone:
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Flags change: -UP -LOWER_UP -RUNNING
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_33 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=21 reply_cookie=0 signature=sasvas error-name=n/a error-message=n/a
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: LLDP: Stopping LLDP client
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Stopped LLDP.
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Lost carrier
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: State is configured, dropping config
Apr 17 09:08:01 gts-test-node2 systemd-networkd[284]: ens192: Removing address: 192.168.0.2/24 (valid forever)
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Network configuration changed, trying to establish connection.
Apr 17 09:08:01 gts-test-node2 systemd-timesyncd[388]: Synchronized to time server 91.189.94.4:123 (ntp.ubuntu.com).
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7082 iface 192.168.0.2 to [1 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: Apr 17 09:08:02 warning [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 corosync[480]: [TOTEM ] Incrementing problem counter for seqid 7084 iface 192.168.0.2 to [2 of 10]
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: PingAck did not arrive in time.
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: peer( Primary -> Unknown ) conn( Connected -> NetworkFailure ) pdsk( UpToDate -> DUnknown )
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: ack_receiver terminated
Apr 17 09:08:02 gts-test-node2 kernel: drbd storage1: Terminating drbd_a_storage1
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( NetworkFailure -> Unconnected )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Restarting receiver thread
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver (re)started
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Unconnected -> WFConnection )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: bind before listen failed, err = -99
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( WFConnection -> Disconnecting )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Connection closed
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: conn( Disconnecting -> StandAlone )
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: State change failed: Need a connection to start verify or resync
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: mask = 0x1f0 val = 0x80
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: old_conn:StandAlone wanted_conn:WFConnection
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: receiver terminated
Apr 17 09:08:03 gts-test-node2 kernel: drbd storage1: Terminating drbd_r_storage1
This error is new to me and never happened with Ubuntu 16.04, where ifupdown
was used rather than systemd-networkd
:
bind before listen failed, err = -99
If I systemctl stop systemd-networkd
before unplugging the cable, the behavior is correct --> it remains in WFConnection but I want to be able to use systemd-networkd and not reconfigure everything to go back to "the old way".
The disconnecting of the cable has been simulated in two different ways with the same result:
ip link set ens190 down
or simply disconnecting the interface physically.
Does anyone have an idea what process of systemd-networkd
(or possibly networkd-dispatcher
or other?) causes this misbehavior? I have not been able to find anything on the internet related to this topic.
Any help is highly appreciated.
netplan cluster systemd-networkd
netplan cluster systemd-networkd
edited Apr 17 at 9:08
Mr Shunz
2,6654 gold badges22 silver badges24 bronze badges
2,6654 gold badges22 silver badges24 bronze badges
asked Apr 17 at 8:25
TopiyobolTopiyobol
62 bronze badges
62 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
I have been experiencing this issue too. Using networkd-dispatch to log the interface state I saw that when there is no-carrier the interface is stripped of its IP configuration causing drbd to make all resources standalone. This systemd behaviour seems to unhelpfully invert all sorts of established ideas about what should happen in this case.
https://github.com/systemd/systemd/commit/a9cc0189aa69a5fa1bcbacbdc69740fa3e5353db has been added but this is not included in the bionic systemd package. The option would probably also need to be exposed through netplan so the generated units set the desired behaviour.
Possible workarounds:
- Assign the drbd IP to a network bridge and add your replication interface to the bridge
- Use networkd-dispatcher to
drbdadm connect all
at a suitable stage
(I think the systemd behaviour is plain wrong. When it is possible to make applications bind to specific addresses I don't want that address to disappear because the peer network device is restarted, cable unplugged etc.)
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134577%2fdrbd8-with-systemd-networkd-netplan%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have been experiencing this issue too. Using networkd-dispatch to log the interface state I saw that when there is no-carrier the interface is stripped of its IP configuration causing drbd to make all resources standalone. This systemd behaviour seems to unhelpfully invert all sorts of established ideas about what should happen in this case.
https://github.com/systemd/systemd/commit/a9cc0189aa69a5fa1bcbacbdc69740fa3e5353db has been added but this is not included in the bionic systemd package. The option would probably also need to be exposed through netplan so the generated units set the desired behaviour.
Possible workarounds:
- Assign the drbd IP to a network bridge and add your replication interface to the bridge
- Use networkd-dispatcher to
drbdadm connect all
at a suitable stage
(I think the systemd behaviour is plain wrong. When it is possible to make applications bind to specific addresses I don't want that address to disappear because the peer network device is restarted, cable unplugged etc.)
add a comment
|
I have been experiencing this issue too. Using networkd-dispatch to log the interface state I saw that when there is no-carrier the interface is stripped of its IP configuration causing drbd to make all resources standalone. This systemd behaviour seems to unhelpfully invert all sorts of established ideas about what should happen in this case.
https://github.com/systemd/systemd/commit/a9cc0189aa69a5fa1bcbacbdc69740fa3e5353db has been added but this is not included in the bionic systemd package. The option would probably also need to be exposed through netplan so the generated units set the desired behaviour.
Possible workarounds:
- Assign the drbd IP to a network bridge and add your replication interface to the bridge
- Use networkd-dispatcher to
drbdadm connect all
at a suitable stage
(I think the systemd behaviour is plain wrong. When it is possible to make applications bind to specific addresses I don't want that address to disappear because the peer network device is restarted, cable unplugged etc.)
add a comment
|
I have been experiencing this issue too. Using networkd-dispatch to log the interface state I saw that when there is no-carrier the interface is stripped of its IP configuration causing drbd to make all resources standalone. This systemd behaviour seems to unhelpfully invert all sorts of established ideas about what should happen in this case.
https://github.com/systemd/systemd/commit/a9cc0189aa69a5fa1bcbacbdc69740fa3e5353db has been added but this is not included in the bionic systemd package. The option would probably also need to be exposed through netplan so the generated units set the desired behaviour.
Possible workarounds:
- Assign the drbd IP to a network bridge and add your replication interface to the bridge
- Use networkd-dispatcher to
drbdadm connect all
at a suitable stage
(I think the systemd behaviour is plain wrong. When it is possible to make applications bind to specific addresses I don't want that address to disappear because the peer network device is restarted, cable unplugged etc.)
I have been experiencing this issue too. Using networkd-dispatch to log the interface state I saw that when there is no-carrier the interface is stripped of its IP configuration causing drbd to make all resources standalone. This systemd behaviour seems to unhelpfully invert all sorts of established ideas about what should happen in this case.
https://github.com/systemd/systemd/commit/a9cc0189aa69a5fa1bcbacbdc69740fa3e5353db has been added but this is not included in the bionic systemd package. The option would probably also need to be exposed through netplan so the generated units set the desired behaviour.
Possible workarounds:
- Assign the drbd IP to a network bridge and add your replication interface to the bridge
- Use networkd-dispatcher to
drbdadm connect all
at a suitable stage
(I think the systemd behaviour is plain wrong. When it is possible to make applications bind to specific addresses I don't want that address to disappear because the peer network device is restarted, cable unplugged etc.)
answered Aug 9 at 10:55
James DingwallJames Dingwall
1
1
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134577%2fdrbd8-with-systemd-networkd-netplan%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown