-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
On my NAS (Ubuntu-20.04), I defined a volume with option "maxconnections=1, as a workaround for exclusive volume export. This way I want to ensure that my Laptop and my PC do not corrupt a LUKS/ext4 volume accidentally via concurrent mount.
[vol-test]
exportname=/dat/nbd-export/vol-test
maxconnections=1
On the client, the following commands result in an unexpected error message:
> sudo nbd-client my_nas -N vol-test /dev/nbd0
Negotiation: ..size = 1024MB
Connected /dev/nbd0
> sudo nbd-client -d /dev/nbd0
> sudo nbd-client my_nas -N vol-test /dev/nbd0
Negotiation: ..Error: Connection not allowed by server policy. Server said: Access denied by server configurationguration for th�
Exiting.
The only cure I know is systemctl restart nbd-server on the server. Is this an expected behavior, or rather a bug?
Metadata
Metadata
Assignees
Labels
No labels