Hi folks, thanks for the reply Wouter's reply was in junk only found it when I saw Richards reply and fished it out. I'm still getting $ sudo nbd-client 192.168.1.14 10809 -N recipes /dev/nbd0 Negotiation: ..size = 0MB Connected /dev/nbd0 Here are the changes I've made - first I built nbdinfo - thanks for the tip Richard. Build GnuTLS from Build libnbd from After installing quite a lot of libraries . . . ---------------------------------------------------------------------- Thank you for downloading libnbd 1.8.3 This is how we have configured the optional components for you today: Optional library features: TLS support ............................ yes NBD URI support ........................ yes FUSE support ........................... yes Manual pages ........................... yes Bash tab completion .................... yes Language bindings: Go ..................................... no OCaml .................................. no Python ................................. no nbdkit version note - during ./configure checking for nbdkit... nbdkit checking for nbdkit >= 1.12... no (1.10) configure: WARNING: nbdkit is too old, some tests will be disabled The 'make check' skipped a lot of tests but there were no FAILS $ nbdinfo --version nbdinfo 1.8.3 libnbd 1.8.3 == rpi-C3 (192.168.1.14) server side Q: Wouter ( w@uter.be ) - Are they readable and writable by the "nbd" user? R: I've changed the user & group to pi (the logged in user) so should be R/W Note: Richard ( rjones@redhat.com ) - You don't need to serve each export on a separate port. The NBD protocol can serve multiple exports (disks) on the same port, with the client requesting which one it wants. R: Have remove the port addresses from config pi@rpi-C3:~ $ cat /etc/nbd-server/config [generic] # If you want to run everything as root rather than the nbd user, you # may either say "root" in the two following lines, or remove them # altogether. Do not remove the [generic] section, however. user = pi group = pi includedir = /etc/nbd-server/conf.d allowlist = true # What follows are export definitions. You may create as much of them as # you want, but the section header has to be unique. [images] exportname = /home/pi/media/500G_FAITH/images/ transactionlog = /home/pi/media/500G_FAITH/logs/log_images [recipes] exportname = /home/pi/media/500G_FAITH/recipes/ transactionlog = /home/pi/media/500G_FAITH/logs/log_recipes [movie] exportname = /home/pi/media/500G_FAITH/movies/ transactionlog = /home/pi/media/500G_FAITH/logs/log_movie Q: Wouter ( w@uter.be ) - Do the paths that you point to in the exportname parameters exist? R: YES its a directory with a bunch of images in it. YES - Non zero size. pi@rpi-C3:~ $ ls /home/pi/media/500G_FAITH/recipes/ y000_Pork_Belly_Wontan____TOCOST.rtf y011_Rack_And_Black.rtf y002_Salmon_Parfait_Forest_Rosemary_Bread_LE.rtf y021_StoneAge_Beef_Taragon_Sauce____TOCOST.rtf pi@rpi-C3:~ $ ls /home/pi/media/500G_FAITH/images 160g? of dough - 250C - 6m.jpg 20190228_163410_monkfish and red pepper skewers.jpg 20190629_202814_couscous w apricots.jpg 672_V_cheddar_gorgeous.jpg 20181022_134259.jpg 20200124_152329_aubergine & pesto stuffing.jpg 25_androll_into_pancakes.jpg 665 Celeriac & Cockscombe Mint Soup.jpg pi@rpi-C3:~ $ ls /home/pi/media/500G_FAITH/movies NA #015 - Bread.mp4 NA #016 - Fisetin - Mayo Clinic Trials.mp4 NA #042 - Delta Variant COVID.mp4 NA #044 - Lex Fridman.mp4 pi@rpi-C3:~ $ ls -la /home/pi/media/500G_FAITH/logs -rw------- 1 pi pi 56 Aug 26 17:00 log_images -rw------- 1 pi pi 56 Aug 26 17:00 log_movie -rw------- 1 pi pi 700 Aug 26 17:35 log_recipes pi@rpi-C3:~ $ cat /home/pi/media/500G_FAITH/logs/log_images %`?%`? pi@rpi-C3:~ $ cat /home/pi/media/500G_FAITH/logs/log_movie %`?%`? pi@rpi-C3:~ $ cat /home/pi/media/500G_FAITH/logs/log_recipes %`?`%`?a%`?b%`?c%`?d%`?e%`?f%`?g%`?h%`?i%`?j%`?k%`?l%`?%`?%`?%`?%`?%`?%`?%`?%`%`? %`? pi@rpi-C3:~ $ nbdkit --version nbdkit 1.1.12 == client side Note: Richard ( rjones@redhat.com ) - Use the 'nbdinfo' tool to examine what is being served by an NBD server. It can query all sorts of information as described in the manual: R: Built the tool. - here is what it says : / protocol: newstyle-fixed without TLS export="recipes": export-size: 4096 is_rotational: false is_read_only: true can_cache: false can_df: false can_fast_zero: false can_flush: false can_fua: false can_multi_conn: true can_trim: false can_zero: true pi@rpi-C1:~ $ nbdkit --version nbdkit 1.10.3 pi@rpi-C1:~ $ nbd-client -l 192.168.1.14 Negotiation: .. images recipes movie pi@rpi-C1:~ $ sudo modprobe nbd pi@rpi-C1:~ $ lsmod | grep nbd nbd 49152 0 pi@rpi-C1:~ $ sudo nbd-client 192.168.1.14 10809 -N recipes /dev/nbd0 Negotiation: ..size = 0MB Connected /dev/nbd0 pi@rpi-C1:~ $ sudo partx -a /dev/nbd0 partx: /dev/nbd0: failed to read partition table pi@rpi-C1:~ $ sudo parted -l Error: /dev/nbd0: unrecognised disk label Model: Unknown (unknown) Disk /dev/nbd0: 4096B Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags: pi@rpi-C1:~ $ dmesg | tail -n 20 [ 2138.454532] blk_update_request: I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [ 2138.454547] Buffer I/O error on dev nbd0, logical block 0, async page read [ 2138.457380] block nbd0: Other side returned error (22) [ 2138.457497] blk_update_request: I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [ 2138.457520] Buffer I/O error on dev nbd0, logical block 0, async page read [ 2138.459238] block nbd0: Other side returned error (22) [ 2138.459280] blk_update_request: I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [ 2138.459297] Buffer I/O error on dev nbd0, logical block 0, async page read [ 2138.460993] block nbd0: Other side returned error (22) [ 2138.461023] blk_update_request: I/O error, dev nbd0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 [ 2138.461038] Buffer I/O error on dev nbd0, logical block 0, async page read [ 2138.462649] block nbd0: Other side returned error (22) [ 2138.462685] Buffer I/O error on dev nbd0, logical block 0, async page read [ 2138.464344] block nbd0: Other side returned error (22) [ 2138.466926] block nbd0: Other side returned error (22) [ 2138.468506] block nbd0: Other side returned error (22) [ 2138.470066] block nbd0: Other side returned error (22) [ 2138.471442] block nbd0: Other side returned error (22) [ 2138.472978] block nbd0: Other side returned error (22) [ 2138.474448] block nbd0: Other side returned error (22) pi@rpi-C1:~ $ sudo nbd-client 192.168.1.14 10809 -N movies /dev/nbd1 Negotiation: ..Error: E: server does not support NBD_OPT_GO and dropped connection after sending NBD_OPT_EXPORT_NAME. Try -g. Exiting. I'm attempting to serve non empty directories so I don't know why it's saying 0Mb size? Scratching my head here . . any thoughts? :/ Thanks in advance, Simon
|