New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nbd device is read-only #4
Comments
|
On ubuntu 16.04, using nbd-client 3.13-262-g69a15c0-dirty, it is created properly as r/w. Closing this, but if you want any more information I can set up the old environment again to do testing. |
|
Thanks for the report. I will take a look at this as i have a 14.04 environment. From memory there was in one nbd-client release a forward compatibility problem that produced this result; perhaps that got into 14.04. If so it would be useful if there was a workaround (other than upgrade nbd-client). |
|
I think it's the following bug in nbd: If I'm reading that right, the issue is that nbd-client is sending flags to the kernel that it shouldn't be, specifically the |
|
If you still have the test environment around, any chance you could try the latest version of gonbdserver (specifically with commit 929da65) with 14.04 and add |
|
I don't, blew it away to install 16.04. I will try and recreate it in the morning and let you know how it goes. |
|
I have replicated this issue, which is indeed for the reason I said above. I have confirmed that commit 929da65 fixes it. You will need to make a change to your config file as follows to support it. |
Using nbd-client version 3.7 from ubuntu 14.04.1, connecting to gonbdserver, the created nbd device is read-only. blockdev --getro returns 1.
Using blockdev --setrw will cause it --getro to return 0, but writes will fail and dmesg will show "block nbd0: Write on read-only".
Using the nbd-server package to serve the device gives a writable device. Uncommenting the Dispatch debug line shows only NBD_CMD_READs being dispatched until the final NBD_CMD_DISC.
My impression is that something during the initial setup is signaling that it's a read only device somehow.
Any ideas on what I can try to debug this? gonbdserver.conf is:
servers:- protocol: tcpaddress: 127.0.0.1:6666exports:- name: foodriver: filepath: /tmp/testworkers: 2logging:Connecting using: nbd-client -N foo 127.0.0.1 6666 /dev/nbd0
The text was updated successfully, but these errors were encountered: