Questions tagged [network-block-device]

8 questions
5
votes
2 answers

Where is the Network Block Device format described?

What is the format of network block device protocol? It is stated that it is simple, but I can't find any RFC or similar things that describes what client and server should send.
Vi.
  • 37,014
  • 18
  • 93
  • 148
3
votes
1 answer

How to load network block device on CentOS7

I am trying to load the nbd network block device on my CentOS7 server. However, I got: modprobe nbd modprobe: FATAL: Module nbd not found. It would be really appreciated if anyone could tell me the best way to have nbd module loaded. And…
3
votes
2 answers

How to unsafely remove blockdevice driver in Linux

I am writing a block device driver for linux. It is crucial to support unsafe removal (like usb unplug). In other words, I want to be able to shut down the block device without creating memory leaks / crashes even while applications hold open files…
DanielHsH
  • 4,287
  • 3
  • 30
  • 36
2
votes
0 answers

File System Block Size while creating the File System using mkfs

I am trying to use BUSE (with NBD) to create a block device in user space. I am not clearly understanding the block access patterns when creating a file system. As shown in the example when I mount the nbd device and create a ext4 file system with a…
1
vote
2 answers

How can I export disk image file to a remote machine using ndb-server?

I'm trying to export disk image on one machine to another machine using nbd-server and nbd-client. On the sever side (hostname gpu) where nbd-server will run, I made an disk image using the dd command and created a file system on the image file…
0
votes
1 answer

How to make /dev/loop0 gathered as ansible_devices

Let me try to be clearer : ansible localhost -m setup Is not showing any block devices : "ansible_devices": {}, This host is using /dev/nbd0 as its root device. Now I was wondering, for my particular needs, how I could fill this gathered facts…
wsteven
  • 67
  • 1
  • 8
0
votes
1 answer

Network Block Device - Receive control failed (result -32) - Kernel 3.16.0-41

When I connect to a Network Block Device (NBD) using qemu-nbd -c /dev/nbd0 /tmp/disk and disconnect subsequently without any modifications via qemu-nbd -d /dev/nbd0, I get the following error in my syslog: Jun 17 05:40:28 os-compute01 kernel:…
Herr-Herner
  • 491
  • 6
  • 22
-1
votes
1 answer

mkfs.ext4 on nbd gets stuck

I am trying to mkfs ext4 filesystem on /dev/nbd0 (I am on Ubuntu) I do not get any error msg and the command just gets stuck sudo mkfs.ext4 /dev/nbd0 I am using this BUSE code from github: https://github.com/acozzette/BUSE/blob/master/README.md …
Noor Yag
  • 43
  • 7