Skip to content

nbd-client timeout ignored #92

@albertdb

Description

@albertdb

OS: Ubuntu Xenial 16.04
Kernel: 4.9.20
nbd-client: 3.13

Hi,

I'm experiencing an issue with nbd-client. Whatever the timeout value I set (and also when unset), about 30 seconds after a network disconnection, socket is shut down, making FS also shutdown. Shorter disconnections are correcly managed (or maybe they are not even treated as a disconnection).

Is there any way of solving/avoiding this issue?

Thanks!

nbd-client X.X.X.X 8992 /dev/nbd1 -timeout 600 -persist -block-size 4096 -name test_timeout
[4567768.848517] XFS (nbd1): Mounting V5 Filesystem
[4567769.975868] XFS (nbd1): Ending clean mount
[4567848.602530] r8169 0000:02:00.0 enp2s0: link down
[4567878.780575] block nbd1: Connection timed out, shutting down connection
[4567878.780576] block nbd1: Receive control failed (result -32)
[4567878.780580] blk_update_request: 144 callbacks suppressed
[4567878.780580] blk_update_request: I/O error, dev nbd1, sector 10485815
[4567878.780587] XFS (nbd1): metadata I/O error: block 0xa00037 ("xlog_iodone") error -1 numblks 64
[4567878.780589] XFS (nbd1): xfs_do_force_shutdown(0x2) called from line 1200 of file fs/xfs/xfs_log.c.  Return address = 0xffffffffa07de73c
[4567878.780613] XFS (nbd1): Log I/O Error Detected.  Shutting down filesystem
[4567878.780614] XFS (nbd1): Please umount the filesystem and rectify the problem(s)
[4567878.780616] block nbd1: shutting down socket

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions