[SPDK] Re: Installation of Spdk and running bdev command

Zawadzki, Tomasz <tomasz.zawadzki at intel.com> Wed, 03 Mar 2021 08:47:25 +0000
Newsgroups dev.linux.lists.spdk
Message-ID <DM6PR11MB4220902EBAFC7C92A789502AEE989@DM6PR11MB4220.namprd11.prod.outlook.com>
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