[root@ceph01 ~]# ceph -s
cluster:
id: e6c031c4-5482-4029-ab47-ef4193bd0bbd
health: HEALTH_OK
services:
mon: 1 daemons, quorum ceph01
mgr: ceph01(active)
osd: 6 osds: 6 up, 6 in
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 bytes
usage: 6338 MB used, 54495 MB / 60833 MB avail
pgs:
[root@ceph01 ~]# ceph osd pool create sas 256
pool 'sas' created
[root@ceph01 ~]# rbd create testrbd --size 10240 --pool sas
[root@ceph01 ~]# rbd map testrbd -p sas
rbd: sysfs write failed
RBD image feature set mismatch. Try disabling features unsupported by the kernel with "rbd feature disable".
In some cases useful info is found in syslog - try "dmesg | tail".
rbd: map failed: (6) No such device or address
[root@ceph01 ~]# rbd info sas/testrbd
rbd image 'testrbd':
size 10240 MB in 2560 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.1025643c9869
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
create_timestamp: Tue Jan 2 10:25:47 2018
[root@ceph01 ~]# rbd feature disable sas/testrbd fast-diff
[root@ceph01 ~]# rbd feature disable sas/testrbd deep-flatten
[root@ceph01 ~]# rbd feature disable sas/testrbd object-map
[root@ceph01 ~]# rbd feature disable sas/testrbd exclusive-lock
[root@ceph01 ~]# rbd info sas/testrbd
rbd image 'testrbd':
size 10240 MB in 2560 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.1025643c9869
format: 2
features: layering
flags:
create_timestamp: Tue Jan 2 10:25:47 2018
[root@ceph01 ~]# rbd map testrbd -p sas
/dev/rbd0
设置crushmap
[root@ceph01 ~]#
[root@ceph01 ~]# yum install scsi-target-utils -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.cn99.com
* updates: mirrors.aliyun.com
8 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package scsi-target-utils.x86_64 0:1.0.55-4.el7 will be installed
--> Processing Dependency: librdmacm for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: lsof for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: perl(Config::General) for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: sg3_utils for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: librdmacm.so.1()(64bit) for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Running transaction check
---> Package librdmacm.x86_64 0:13-7.el7 will be
cluster:
id: e6c031c4-5482-4029-ab47-ef4193bd0bbd
health: HEALTH_OK
services:
mon: 1 daemons, quorum ceph01
mgr: ceph01(active)
osd: 6 osds: 6 up, 6 in
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 bytes
usage: 6338 MB used, 54495 MB / 60833 MB avail
pgs:
[root@ceph01 ~]# ceph osd pool create sas 256
pool 'sas' created
[root@ceph01 ~]# rbd create testrbd --size 10240 --pool sas
[root@ceph01 ~]# rbd map testrbd -p sas
rbd: sysfs write failed
RBD image feature set mismatch. Try disabling features unsupported by the kernel with "rbd feature disable".
In some cases useful info is found in syslog - try "dmesg | tail".
rbd: map failed: (6) No such device or address
[root@ceph01 ~]# rbd info sas/testrbd
rbd image 'testrbd':
size 10240 MB in 2560 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.1025643c9869
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
create_timestamp: Tue Jan 2 10:25:47 2018
[root@ceph01 ~]# rbd feature disable sas/testrbd fast-diff
[root@ceph01 ~]# rbd feature disable sas/testrbd deep-flatten
[root@ceph01 ~]# rbd feature disable sas/testrbd object-map
[root@ceph01 ~]# rbd feature disable sas/testrbd exclusive-lock
[root@ceph01 ~]# rbd info sas/testrbd
rbd image 'testrbd':
size 10240 MB in 2560 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.1025643c9869
format: 2
features: layering
flags:
create_timestamp: Tue Jan 2 10:25:47 2018
[root@ceph01 ~]# rbd map testrbd -p sas
/dev/rbd0
设置crushmap
[root@ceph01 ~]#
[root@ceph01 ~]# yum install scsi-target-utils -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.cn99.com
* updates: mirrors.aliyun.com
8 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package scsi-target-utils.x86_64 0:1.0.55-4.el7 will be installed
--> Processing Dependency: librdmacm for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: librdmacm.so.1(RDMACM_1.0)(64bit) for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: lsof for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: perl(Config::General) for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: sg3_utils for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Processing Dependency: librdmacm.so.1()(64bit) for package: scsi-target-utils-1.0.55-4.el7.x86_64
--> Running transaction check
---> Package librdmacm.x86_64 0:13-7.el7 will be