Skip to contentSkip to conversation

NBD for SPDK bdevs

SPDK omchavan6699 at gmail.com 1 participant 3 messages Mar 9, 2021

lore
Share & tools
lore

omchavan6699 at gmail.com

#0 lore raw

can anyone please tell me how to export bdev using nbd
i executed following command
rpc.py nbd_start_disk Malloc0 /dev/nbd0 (malloc0 already created using rpc command) for exporting it we need to install nbd server and client?
or
SPDK provide client and server??
what are the steps?

#1 lore raw

You don't need nbd_server or client, SPDK will act as nbd_server & client. RPC method " nbd_start_disk " is enough to create an nbd device in kernel. Maybe your nbd module is not loaded by "modprobe nbd"

-----Original Message-----
From: omchavan6699(a)gmail.com <omchavan6699(a)gmail.com>
Sent: Tuesday, March 9, 2021 3:30 PM
To: spdk(a)lists.01.org
Subject: [SPDK] NBD for SPDK bdevs

can anyone please tell me how to export bdev using nbd i executed following command rpc.py nbd_start_disk Malloc0 /dev/nbd0 (malloc0 already created using rpc command) for exporting it we need to install nbd server and client? or
SPDK provide client and server??
what are the steps?
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org

#2 lore raw

ok thank you it worked can you tell me how to export created nbd device to another host(VM) let consider i created nbd_start_disk on VM1
how to access it through VM2 using nbd can you tell me solution of it??