Installation of Spdk and running bdev command
omchavan6699 at gmail.com
I installed Spdk
git clone https://github.com/spdk/spdk
cd spdk
git submodule update --init
sudo scripts/pkgdep.sh --all
./configure
make
/test/unit/unittest.sh
But not able to runRPC.py bdev_aio_create /dev/sda aio
It is not runningscripts/rpc.py bdev_aio_create /dev/sda aio ev/sda Traceback (most recent call last): File "/root/spdk/scripts/rpc/client.py", line 71, in connect
device self.sock.connect ( (addr, port)) socket.gaierror: [Errno -2] Name or service not known
mp/fil, During handling of the above exception, another exception occurred:
e deviceTraceback (most recent call last): File "scripts/rpc.py", line 2693, in <module>
odev_aid conn_retries=args.conn_retries) File "7root/spdk/scripts/rpc/client.py", line 47, in init
ioe
self. connect (addr, port)
File "/root/spdk/scripts/rpc/client.py", line 76, in _connect. "Error details: %s" (addr, ex))
rpc.client..JSONRPCException: Error while connecting to /var/tmp/spdk.sock ev Error details: [Errno -2] Name or service not known [root(a)d1560g9-12-vm20 spdk] #
ased on Open CAS Framework - a high performance block storage cachina meta-librar
3/
Zawadzki
Hi,
JSON RPC is an interface to configure a running SPDK application. Please make sure one (ex. ./build/bin/spdk_tgt) is started before issuing any RPC.
Thanks,
Tomek
Quoted 49 lines
-----Original Message-----
From: omchavan6699(a)gmail.com <omchavan6699(a)gmail.com>
Sent: Wednesday, March 3, 2021 9:24 AM
To: spdk(a)lists.01.org
Subject: [SPDK] Installation of Spdk and running bdev commandI installed Spdk
git clone https://github.com/spdk/spdk
cd spdk
git submodule update --init
sudoscripts/pkgdep.sh--all
./configure
make
/test/unit/unittest.sh
But not able to runRPC.pybdev_aio_create/dev/sdaaio
It is not runningscripts/rpc.pybdev_aio_create/dev/sdaaio ev/sda Traceback (most recent call last): File "/root/spdk/scripts/rpc/client.py", line 71, in connectdevice self.sock.connect ( (addr, port)) socket.gaierror: [Errno -2] Name or service not known
mp/fil, During handling of the above exception, another exception occurred:
e deviceTraceback (most recent call last): File "
scripts/rpc.py", line 2693, in <module>
odev_aidconn_retries=args.conn_retries) File "7root/spdk/scripts/rpc/client.py", line 47, in initioe
self. connect (addr, port)
File "
/root/spdk/scripts/rpc/client.py", line 76, in_connect. "Error details:
%s" (addr, ex))rpc.client..JSONRPCException: Error while connecting to
/var/tmp/spdk.sockev Error details: [Errno -2] Name or service not known [root(a)d1560g9-12- vm20 spdk] #ased on Open CAS Framework - a high performance block storage cachina meta-librar
3/
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org
omchavan6699 at gmail.com
i tried this ./build/bin/spdk_tgt command but getting error
./build/bin/spdk_tgt: error while loading shared libraries: libspdk_bdev_malloc.so.3.0: cannot open shared object file: No such file or directory is there any way to fix it
is there any tutorial to learn creation of bdev in spdk??
Harris
We could do a better job of displaying the error conditions, when rpc.py is unable to connect because no SPDK application is running.
https://review.spdk.io/gerrit/c/spdk/spdk/+/6754 should make it better.
-Jim
On 3/3/21, 1:47 AM, "Zawadzki, Tomasz" <tomasz.zawadzki(a)intel.com> wrote:
Hi,
JSON RPC is an interface to configure a running SPDK application. Please make sure one (ex. ./build/bin/spdk_tgt) is started before issuing any RPC.
Thanks,
Tomek
> -----Original Message-----
> From: omchavan6699(a)gmail.com <omchavan6699(a)gmail.com>
> Sent: Wednesday, March 3, 2021 9:24 AM
> To: spdk(a)lists.01.org
> Subject: [SPDK] Installation of Spdk and running bdev command
>
> I installed Spdk
> git clone https://github.com/spdk/spdk
> cd spdk
> git submodule update --init
> sudo scripts/pkgdep.sh --all
> ./configure
> make
> /test/unit/unittest.sh
> But not able to run
> RPC.py bdev_aio_create /dev/sda aio
> It is not running
> scripts/rpc.py bdev_aio_create /dev/sda aio ev/sda Traceback (most recent > call last): File "/root/spdk/scripts/rpc/client.py", line 71, in connect >
> device self.sock.connect ( (addr, port)) socket.gaierror: [Errno -2] Name or > service not known
>
> mp/fil, During handling of the above exception, another exception occurred:
>
> e deviceTraceback (most recent call last): File "scripts/rpc.py", line 2693, in > <module>
>
> odev_aid conn_retries=args.conn_retries) File
> "7root/spdk/scripts/rpc/client.py", line 47, in init
>
> ioe
>
> self. connect (addr, port)
>
> File "/root/spdk/scripts/rpc/client.py", line 76, in _connect. "Error details:
> %s" (addr, ex))
>
> rpc.client..JSONRPCException: Error while connecting to /var/tmp/spdk.sock > ev Error details: [Errno -2] Name or service not known [root(a)d1560g9-12- > vm20 spdk] #
>
> ased on Open CAS Framework - a high performance block storage cachina > meta-librar
>
> 3/
> _______________________________________________
> SPDK mailing list -- spdk(a)lists.01.org
> To unsubscribe send an email to spdk-leave(a)lists.01.org
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org