Re: krbd map on Jewel, sysfs write failed when rbd map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I had the same issue when testing on Ubuntu xenial beta. That has 4.4,
so should be fine? I had to create images without the new RBD features
to make it works.

% ceph -v
ceph version 10.1.2 (4a2a6f72640d6b74a3bbd92798bb913ed380dcd4)

% modinfo rbd
filename:       /lib/modules/4.4.0-18-generic/kernel/drivers/block/rbd.ko
license:        GPL
description:    RADOS Block Device (RBD) driver
author:         Jeff Garzik <jeff@xxxxxxxxxx>
author:         Yehuda Sadeh <yehuda@xxxxxxxxxxxxxxx>
author:         Sage Weil <sage@xxxxxxxxxxxx>
author:         Alex Elder <elder@xxxxxxxxxxx>
srcversion:     9453A7FA5C504B1C95EDA8A
depends:        libceph
intree:         Y
vermagic:       4.4.0-18-generic SMP mod_unload modversions
parm:           single_major:Use a single major number for all rbd
devices (default: false) (bool)

% uname -a
Linux xtest 4.4.0-18-generic #34-Ubuntu SMP Wed Apr 6 14:01:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Tim.

On Mon, Apr 18, 2016 at 09:51:45AM +0000, Varada Kari wrote:
> Using any kernel >= 4.2 shouldn't have any problem. If you are using
> kernel version < 4.2, disable the recent features except layering.
> Varada
> 
> On Monday 18 April 2016 02:41 PM, $B@JCRM&(B wrote:
> 
> thanks for ur reply~
> I did some search, and found the reason, like the
> mail([1]http://lists.ceph.com/pipermail/ceph-users-ceph.com/2015-Septem
> ber/004928.html) said, that because the krbd still not yet support the
> new RBD features like exclusive-lock.
> 
> 2016-04-18 16:45 GMT+08:00 huang jun <[2]hjwsm1989@xxxxxxxxx>:
> 
> Hi, can you post the 'modinfo rbd' and your cluster state 'ceph -s'.
> 
> 2016-04-18 16:35 GMT+08:00 $B@JCRM&(B <[3]xizhiyong18@xxxxxxxxx>:
> > hi cephers:
> >
> > I create a rbd volume(image) on Jewel release, when exec rbd map, I
> got the
> > error message as follows.i can not  find any message usage in
> > syslog/kern.log/messages.
> > anyone can share some tips?
> >
> > ----------------------my ceph
> > version--------------------------------------------
> > root@hzbxs-xzy-ceph-dev-mon:~/ceph-cluster# ceph -v
> > ceph version 10.1.2 (4a2a6f72640d6b74a3bbd92798bb913ed380dcd4)
> > ---------------------system
> > info----------------------------------------------------
> > root@hzbxs-xzy-ceph-dev-mon:~/ceph-cluster# cat /etc/debian_version
> > 8.4
> > root@hzbxs-xzy-ceph-dev-mon:~/ceph-cluster# uname -a
> > Linux hzbxs-xzy-ceph-dev-mon 3.16.0-4-amd64 #1 SMP Debian
> 3.16.7-ckt25-2
> > (2016-04-08) x86_64 GNU/Linux
> > ----------------------my screen
> > snap---------------------------------------------
> > root@hzbxs-xzy-ceph-dev-mon:~/ceph-cluster# ceph osd lspools
> > 2016-04-18 16:24:24.691909 7fb08663b700 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > 2016-04-18 16:24:24.701003 7fb08663b700 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > 1 rbd,
> > root@hzbxs-xzy-ceph-dev-mon:~/ceph-cluster# rbd --image test_volume
> info
> > --pool rbd
> > 2016-04-18 16:24:27.396490 7f2156ea2d40 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > 2016-04-18 16:24:27.396551 7f2156ea2d40 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > 2016-04-18 16:24:27.399508 7f2156ea2d40 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > rbd image 'test_volume':
> > size 1024 MB in 256 objects
> > order 22 (4096 kB objects)
> > block_name_prefix: rbd_data.371a6b8b4567
> > format: 2
> > features: layering, exclusive-lock, object-map, fast-diff,
> deep-flatten
> > flags:
> > root@hzbxs-xzy-ceph-dev-mon:~/ceph-cluster# rbd map test_volume
> --pool rbd
> > 2016-04-18 16:25:02.547462 7f291c173d40 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > 2016-04-18 16:25:02.547523 7f291c173d40 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > 2016-04-18 16:25:02.550352 7f291c173d40 -1 WARNING: the following
> dangerous
> > and experimental features are enabled: bluestore,rocksdb
> > rbd: sysfs write failed
> > rbd: map failed: (6) No such device or address
> > root@hzbxs-xzy-ceph-dev-mon:~/ceph-cluster#
> >
> 
> > _______________________________________________
> > ceph-users mailing list
> > [4]ceph-users@xxxxxxxxxxxxxx
> > [5]http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> >
> --
> Thank you!
> HuangJun
> 
> PLEASE NOTE: The information contained in this electronic mail message
> is intended only for the use of the designated recipient(s) named
> above. If the reader of this message is not the intended recipient, you
> are hereby notified that you have received this message in error and
> that any review, dissemination, distribution, or copying of this
> message is strictly prohibited. If you have received this communication
> in error, please notify the sender by telephone or e-mail (as shown
> above) immediately and destroy any and all copies of this message in
> your possession (whether hard copies or electronically stored copies).
> 
> References
> 
> Visible links
> 1. http://lists.ceph.com/pipermail/ceph-users-ceph.com/2015-September/004928.html
> 2. mailto:hjwsm1989@xxxxxxxxx
> 3. mailto:xizhiyong18@xxxxxxxxx
> 4. mailto:ceph-users@xxxxxxxxxxxxxx
> 5. http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 
> Hidden links:
> 7. http://lists.ceph.com/pipermail/ceph-users-ceph.com/2015-September/004928.html
> 8. mailto:xizhiyong18@xxxxxxxxx

> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



Tim.

-- 
Tim Bishop
http://www.bishnet.net/tim/
PGP Key: 0x6C226B37FDF38D55

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux