[ceph-users] RBD: create imaged with qemu

Liu, Changcheng changcheng.liu at intel.com
Tue Oct 30 08:55:51 PDT 2018


Hi all,
     I follow below guide to create images with qemu-rbd: qemu-img create -f raw rbd:quick_rbd_test/own_image 5G;
            http://docs.ceph.com/docs/master/rbd/qemu-rbd/
However, it always shows "connect error". Does anyone know how to resolve the problem?

The info is below:
nstcc0 at nstcloudcc0:lst_deploy$ sudo rados lspools
.rgw.root
default.rgw.control
default.rgw.meta
default.rgw.log
quick_rbd_test

nstcc0 at nstcloudcc0:lst_deploy$ qemu-img create -f raw rbd:quick_rbd_test/own_image 5G; dmesg | grep -v 'UFW' | tail -n 5
Formatting 'rbd:quick_rbd_test/own_image', fmt=raw size=5368709120
qemu-img: rbd:quick_rbd_test/own_image: error connecting

[30696.520273] virbr0: port 1(virbr0-nic) entered blocking state
[30696.520278] virbr0: port 1(virbr0-nic) entered listening state
[30698.472362] virbr0: port 1(virbr0-nic) entered disabled state
[30698.478503] device virbr0-nic left promiscuous mode
[30698.478569] virbr0: port 1(virbr0-nic) entered disabled state


nstcc0 at nstcloudcc0:lst_deploy$ ifconfig
eno1      Link encap:Ethernet  HWaddr 00:1e:67:94:65:ae
          inet addr:10.239.48.91  Bcast:10.239.48.255  Mask:255.255.255.0
          inet6 addr: fe80::651e:6989:e32c:b0b2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1649029 errors:0 dropped:0 overruns:0 frame:0
          TX packets:870237 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1492566309 (1.4 GB)  TX bytes:237759999 (237.7 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:52119 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52119 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:84885344 (84.8 MB)  TX bytes:84885344 (84.8 MB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

B.R.
Changcheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ceph.com/pipermail/ceph-users-ceph.com/attachments/20181030/02d4d51f/attachment.html>


More information about the ceph-users mailing list