Centos 6.5下配置tgt后端存储为ceph
来源:互联网 发布:松下电视怎么样知乎 编辑:程序博客网 时间:2024/04/28 23:59
操作环境
Centos 6.5
ceph 0.87
tgt
操作步骤
安装tgt
#wget http://ceph.com/packages/ceph-extras/rpm/centos6/x86_64/scsi-target-utils-1.0.38-48.bf6981.ceph.el6.x86_64.rpm#rpm -ivh scsi-target-utils-1.0.38-48.bf6981.ceph.el6.x86_64.rpm
查看当前tgt对于rbd driver是否支持
[root@ceph-osd-3 ~]# tgtadm --lld iscsi --mode system --op showSystem: State: ready debug: offLLDs: iser: error iscsi: readyBacking stores: rbd (bsoflags sync:direct) rdwr (bsoflags sync:direct) ssc null bsg sg sheepdogDevice types: passthrough tape changer controller osd cd/dvd diskiSNS: iSNS=Off iSNSServerIP= iSNSServerPort=3205 iSNSAccessControl=Off
在Backing stores栏中可以看见rbd,说明该tgt可对rbd支持
创建tgt所需的pool以及rbd
[root@ceph-osd-1 ~]ceph osd pool create iscsi 256[root@ceph-osd-1 ~]rbd create tgt --size 10240 --pool iscsi
[root@ceph-osd-1 ~]# rbd ls --pool iscsitgt
添加以下内容至gt配置文件中
include /etc/tgt/conf.d/*.conf<target iqn.2014-11.rbdstore.com:iscsi> driver iscsi bs-type rbd backing-store iscsi/tgt </target>
重启tgtd
[root@ceph-osd-3 ~]# /etc/init.d/tgtd restartStopping target framework daemonStarting target framework daemon
[root@ceph-osd-1 ~]# iscsiadm -m discovery -t sendtargets -p 10.10.200.165Starting iscsid: [ OK ]10.10.200.165:3260,1 iqn.2014-11.rbdstore.com:iscsi[root@ceph-osd-1 ~]# iscsiadm -m node -T iqn.2014-11.rbdstore.com:iscsi -lLogging in to [iface: default, target: iqn.2014-11.rbdstore.com:iscsi, portal: 10.10.200.165,3260] (multiple)Login to [iface: default, target: iqn.2014-11.rbdstore.com:iscsi, portal: 10.10.200.165,3260] successful.[root@ceph-osd-1 ~]# fdisk -lDisk /dev/sdb: 5788.2 GB, 5788206759936 bytes255 heads, 63 sectors/track, 703709 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/sda: 209.7 GB, 209715068928 bytes255 heads, 63 sectors/track, 25496 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0009a9dd Device Boot Start End Blocks Id System/dev/sda1 * 1 131 1048576 83 LinuxPartition 1 does not end on cylinder boundary./dev/sda2 131 1176 8392704 82 Linux swap / Solaris/dev/sda3 1176 25497 195356672 8e Linux LVMDisk /dev/mapper/vg_swift-LogVol00: 200.0 GB, 200043134976 bytes255 heads, 63 sectors/track, 24320 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x00000000Disk /dev/mapper/docker-253:0-3539142-pool: 107.4 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 65536 bytesDisk identifier: 0x00000000Disk /dev/sdc: 10.7 GB, 10737418240 bytes64 heads, 32 sectors/track, 10240 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytesSector size (logical/physical): 512 bytes / 4194304 bytesI/O size (minimum/optimal): 4194304 bytes / 4194304 bytesDisk identifier: 0x00000000
可以发现sdc为映射过来的新硬盘
0 0
- Centos 6.5下配置tgt后端存储为ceph
- CentOS 6.5下配置Ceph作为KVM后端存储
- 配置Ceph为openstack后端
- ceph存储 Linux 网卡配置-centos&ubuntu
- ceph存储 centos下tail命令详解
- ceph存储 centos下lsof详解
- ceph存储 centos下Git常用命令查询
- ceph存储 centos下SELinux工具
- ceph存储 centos下chkconfig详解
- ceph存储 centos下ulimit用法示例
- ceph存储 centos下fuser命令小结
- ceph存储 ceph集群配置
- 使用Ceph作为OpenStack的后端存储
- 使用Ceph作为OpenStack的后端存储
- [Kubernetes] Kubernetes 集成 Ceph 后端存储教程
- ceph存储 ceph集群网络配置
- ceph存储 ceph集群osd配置
- ceph存储 ceph集群配置参数一
- 百度地图API上手
- 线程通信升级版
- jsp错误页面打印日志
- ios之NSSet 使用技巧总结
- Mysql热备增量备份与恢复(二)--备份部分查看
- Centos 6.5下配置tgt后端存储为ceph
- centos 安装stardict星际译王
- 基于ibcurl的跨平台多线程断点续传下载库
- android打包准备:混淆第三方jar包(Gson, greenDao,sharesdk,UIL,高德地图, unity,pinyin4j,async http,JPush,EventBus等)
- C++进行base64编码和解码
- cocos2d-x实现3D模型的换装系统的研究
- Javascript 异步加载详解(浏览器在javascript的加载方式)
- 图片的逐渐显示与消失
- LeetCode Solutions : Swap Nodes in Pairs