DRBD 9.3.5: persistent timerless FIN-WAIT-1 sockets after abrupt peer reset

DRBD 9.3.5: persistent timerless FIN-WAIT-1 sockets after abrupt peer reset

Environment

  • Three-node Proxmox VE and LINSTOR cluster
  • Proxmox VE 9.2.26
  • Kernel 7.0.14-28-pve
  • DRBD module / DKMS 9.3.5 / 9.3.5-1
  • drbd-utils 9.36.0-1
  • LINSTOR controller and satellite 1.35.3-1
  • linstor-proxmox 8.3.2-1
  • drbd-reactor 1.12.0-1
  • Three diskful replicas, Protocol C, quorum and TLS
  • Standard DRBD TCP transport, not lb-tcp

Reproduction and result

Starting from healthy Connected/UpToDate resources, an unclean watchdog reset
was induced on the controller owner. The cluster retained quorum and all DRBD
resources recovered automatically. Replacement TCP sessions became established
and every replica returned to UpToDate.

Old storage TCP sessions nevertheless remained indefinitely in FIN-WAIT-1 on
the surviving nodes. The entries have inode 0, root cgroup, and no active timer.
The counts remained unchanged on a subsequent 45-second sample. Repeating the
test against another controller owner produced the same bounded signature.

At the final capture:

Node FIN-WAIT-1 TCP orphan Established storage sessions
node-a 0 0 16
node-b 8 8 16
node-c 16 16 16

No split brain, suspended I/O, failed DRBD unit, backing-device error, or
persistently degraded replica state was present. A planned rolling reboot clears
the local residue, but repeated unclean failures can create it again.

Questions

  1. Is this a known DRBD TCP/TLS teardown defect in DRBD 9.3.5?
  2. Could this involve network-namespace reference lifetime for sockets created
    with sock_create_kern(), comparable in mechanism to the previously fixed
    ksmbd timerless-orphan issue?
  3. Is there a patch or supported diagnostic build available?
  4. Is reboot currently the only supported way to clear these dormant sockets?

The attached evidence is anonymized; complete original diagnostics can be made
available privately if requested by a developer.

Anonymized command output

Real hostnames use node-a/node-b/node-c, and storage IPs use RFC 5737 documentation addresses.

Package versions (identical on all three nodes)

COMMAND: dpkg-query -W drbd-dkms drbd-utils drbd-reactor linstor-client linstor-controller linstor-satellite linstor-proxmox pve-manager proxmox-kernel-helper

drbd-dkms	9.3.5-1
drbd-reactor	1.12.0-1
drbd-utils	9.36.0-1
linstor-client	1.29.1-1
linstor-controller	1.35.3-1
linstor-proxmox	8.3.2-1
linstor-satellite	1.35.3-1
proxmox-kernel-helper	9.2.1
pve-manager	9.2.26

Kernel (node-a; identical kernel on all nodes)

COMMAND: uname -a

Linux node-a 7.0.14-28-pve #2 SMP PREEMPT_DYNAMIC PMX 7.0.14-28 (2026-11-02T11:54Z) x86_64 GNU/Linux

Loaded DRBD version (node-a)

COMMAND: cat /sys/module/drbd/version

9.3.5

DRBD status after recovery (node-b)

COMMAND: drbdsetup status --verbose --statistics

resource-db node-id:1 role:Primary suspended:no force-io-failures:no
    write-ordering:flush
  volume:0 minor:1005 disk:UpToDate
      backing_dev:/dev/storage-pool/resource-db_00000 quorum:yes open:yes
      size:1052408 read:825 written:29140 al-writes:5 bm-writes:14 upper-pending:0
      lower-pending:0 al-suspended:no blocked:no
  node-a node-id:0 connection:Connected role:Secondary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:0 sent:92 out-of-sync:0 pending:0 unacked:0
  node-c node-id:2 connection:Connected role:Secondary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:9728 sent:356 out-of-sync:0 pending:0 unacked:0

resource-data-a node-id:1 role:Secondary suspended:no force-io-failures:no
    write-ordering:flush
  volume:0 minor:1002 disk:UpToDate
      backing_dev:/dev/storage-pool/resource-data-a_00000 quorum:yes open:no
      size:67110872 read:6684 written:0 al-writes:0 bm-writes:0 upper-pending:0
      lower-pending:0 al-suspended:no blocked:no
  node-a node-id:0 connection:Connected role:Primary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:0 sent:0 out-of-sync:0 pending:0 unacked:0
  node-c node-id:2 connection:Connected role:Secondary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:0 sent:0 out-of-sync:0 pending:0 unacked:0

resource-data-b node-id:1 role:Secondary suspended:no force-io-failures:no
    write-ordering:flush
  volume:0 minor:1000 disk:UpToDate
      backing_dev:/dev/storage-pool/resource-data-b_00000 quorum:yes open:no
      size:14685080 read:753495 written:1834677 al-writes:211 bm-writes:292
      upper-pending:0 lower-pending:0 al-suspended:no blocked:no
  node-a node-id:0 connection:Connected role:Primary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:447730 sent:4352 out-of-sync:1524636 pending:0 unacked:0
  node-c node-id:2 connection:Connected role:Secondary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:699544 sent:53786 out-of-sync:0 pending:0 unacked:0

resource-metadata node-id:1 role:Secondary suspended:no force-io-failures:no
    write-ordering:flush
  volume:0 minor:1001 disk:UpToDate
      backing_dev:/dev/storage-pool/resource-metadata_00000 quorum:yes open:no
      size:8152 read:716 written:736 al-writes:1 bm-writes:0 upper-pending:0
      lower-pending:0 al-suspended:no blocked:no
  node-a node-id:0 connection:Connected role:Secondary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:368 sent:0 out-of-sync:0 pending:0 unacked:0
  node-c node-id:2 connection:Connected role:Secondary tls:yes congested:no
      ap-in-flight:0 rs-in-flight:0
    volume:0 replication:Established peer-disk:UpToDate resync-suspended:no
        received:0 sent:368 out-of-sync:0 pending:0 unacked:0

TCP socket accounting (node-a)

COMMAND: cat /proc/net/sockstat

sockets: used 346
TCP: inuse 23 orphan 0 tw 225 alloc 32 mem 201
UDP: inuse 4 mem 0
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0

TCP socket accounting (node-b)

COMMAND: cat /proc/net/sockstat

sockets: used 350
TCP: inuse 30 orphan 8 tw 225 alloc 45 mem 0
UDP: inuse 4 mem 0
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0

TCP socket accounting (node-c)

COMMAND: cat /proc/net/sockstat

sockets: used 338
TCP: inuse 38 orphan 16 tw 232 alloc 48 mem 0
UDP: inuse 4 mem 0
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0

FIN-WAIT-1 sockets (node-a)

SCRIPT: ss -Hntpeoi state fin-wait-1 | grep "192.0.2." || true

FIN-WAIT-1 sockets (node-b)

SCRIPT: ss -Hntpeoi state fin-wait-1 | grep "192.0.2." || true

0      75     192.0.2.5:34009 192.0.2.4:7001  ino:0 sk:1 cgroup:/ ---
0      1      192.0.2.5:39081 192.0.2.4:7002  ino:0 sk:2 cgroup:/ ---
0      39     192.0.2.5:7000  192.0.2.4:35463 ino:0 sk:3 cgroup:/ ---
0      39     192.0.2.5:7001  192.0.2.4:41905 ino:0 sk:4 cgroup:/ ---
0      1      192.0.2.5:37043 192.0.2.4:7000  ino:0 sk:5 cgroup:/ ---
0      39     192.0.2.5:7005  192.0.2.4:41825 ino:0 sk:6 cgroup:/ ---
0      39     192.0.2.5:7002  192.0.2.4:44351 ino:0 sk:7 cgroup:/ ---
0      1      192.0.2.5:54823 192.0.2.4:7005  ino:0 sk:8 cgroup:/ ---

FIN-WAIT-1 sockets (node-c)

SCRIPT: ss -Hntpeoi state fin-wait-1 | grep "192.0.2." || true

0      39     192.0.2.6:7001  192.0.2.4:46289 ino:0 sk:1 cgroup:/ ---
0      75     192.0.2.6:42459 192.0.2.4:7000  ino:0 sk:2 cgroup:/ ---
0      1      192.0.2.6:36259 192.0.2.5:7001  ino:0 sk:3 cgroup:/ ---
0      1      192.0.2.6:51477 192.0.2.5:7005  ino:0 sk:4 cgroup:/ ---
0      1      192.0.2.6:44591 192.0.2.4:7001  ino:0 sk:5 cgroup:/ ---
0      115    192.0.2.6:7005  192.0.2.4:47089 ino:0 sk:6 cgroup:/ ---
0      75     192.0.2.6:42095 192.0.2.4:7002  ino:0 sk:7 cgroup:/ ---
0      77     192.0.2.6:7002  192.0.2.4:42633 ino:0 sk:8 cgroup:/ ---
0      115    192.0.2.6:7000  192.0.2.4:39479 ino:0 sk:9 cgroup:/ ---
0      1      192.0.2.6:33451 192.0.2.5:7002  ino:0 sk:a cgroup:/ ---
0      39     192.0.2.6:7000  192.0.2.5:48601 ino:0 sk:b cgroup:/ ---
0      1      192.0.2.6:36723 192.0.2.5:7000  ino:0 sk:c cgroup:/ ---
0      39     192.0.2.6:7005  192.0.2.5:60445 ino:0 sk:d cgroup:/ ---
0      75     192.0.2.6:38853 192.0.2.4:7005  ino:0 sk:e cgroup:/ ---
0      39     192.0.2.6:7001  192.0.2.5:51123 ino:0 sk:f cgroup:/ ---
0      39     192.0.2.6:7002  192.0.2.5:60453 ino:0 sk:10 cgroup:/ ---

Relevant TCP sysctls (identical on all nodes)

COMMAND: sysctl net.ipv4.tcp_fin_timeout net.ipv4.tcp_retries2 net.ipv4.tcp_orphan_retries net.ipv4.tcp_keepalive_time

net.ipv4.tcp_fin_timeout = 60
net.ipv4.tcp_retries2 = 15
net.ipv4.tcp_orphan_retries = 0
net.ipv4.tcp_keepalive_time = 7200

Failed units (node-a; same result on all nodes)

COMMAND: systemctl --failed --no-pager

  UNIT LOAD ACTIVE SUB DESCRIPTION

0 loaded units listed.