ceph下创建rbd

[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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值