基于 rbd nbd 的支持抢锁的 rbd docker volume plugin
来源:互联网 发布:淘宝开店交保证金流程 编辑:程序博客网 时间:2024/06/08 02:05
基于 rbd nbd 的支持抢锁的 rbd docker volume plugin
1.注意
本plugin和jewel(10.2.2)一起测试过,需要apply 下面的patch:
ceph-patch/rbd-nbd-ceph-10.2.2.patch2. 编译rpm包
$ git clone https://github.com/yanghonggang/rbd-docker-plugin-nbd.git rbd-docker-plugin$ cd rbd-docker-plugin$ make rpms...$ls rpmbuild/RPMS/x86_64/rbd-docker-plugin-1.5.2-1.el7.centos.x86_64.rpm rbd-docker-plugin-debuginfo-1.5.2-1.el7.centos.x86_64.rpm
3. 安装使用
rpm -ivh *.rpmsystemctl enablesystemctl start rbd-docker-plugin
需要重新启动使用了rbd卷的container 或者重启docker daemon
4. docker container 创建参数说明
# docker run --name disk22 --volume-driver rbd -v mpool/disk2@1000:/root/hehe -it anna /bin/bash--volume-driver rbd // 表示要使用 rbd-docker-plugin作为volume的后端-v 中 mpool 为用于创建 image 的 ceph pool disk2为image的名字 1000为1000MB/root/hehe 为container内部的映射目录
5.所有可配置条目
# rbd-docker-plugin -hUsage of rbd-docker-plugin: -cluster string xtao ceph cluster (default "xtao") -config string Xtao ceph cluster config (default "/etc/ceph/xtao.conf") -create Can auto Create RBD Images (default true) -debug Debug output -fs string FS type for the created RBD Image (must be xfs now) (default "xfs") -go-ceph Use go-ceph library -logdir string Logfile directory (default "/var/log") -mount string Mount directory for volumes on host (default "/var/lib/docker-volumes") -name string Docker plugin name for use on --volume-driver option (default "rbd") -plugins string Docker plugin directory for socket (default "/run/docker/plugins") -pool string Default Ceph Pool for RBD operations (default "rbd") -remove value Action to take on Remove: ignore, delete or rename (default ignore) -size int RBD Image size to Create (in MB) (default: 20480=20GB) (default 20480) -use-nbd Use rbd-nbd to map RBD Image (default true) -user string Ceph user (default "admin") -version Print version
0 0
- 基于 rbd nbd 的支持抢锁的 rbd docker volume plugin
- kubernetes的ceph RBD volume(3): 动态volume的使用(ceph RBD)
- kubernetes的ceph RBD volume(1):使用Ceph RBD作为后端Volume
- kubernetes的ceph RBD volume(2): 使用Ceph RBD作为persistent volume
- ceph之rbd-nbd
- kubernetes的ceph RBD volume(4): 性能测试
- RBD中主要的数据结构
- 使用tgt搭建一个基于rbd的SCSI target
- 查看ceph rbd的真实占用空间
- rbd map失败的一个问题
- Ceph RBD请求过程的分析
- RBD中回调函数的变迁
- Docker容器对存储的定义 Volume 与 Volume Plugin
- kubernetes的ceph RBD volume(5): 创建动态的volume绑定随replica scale的扩容和缩容的pod
- ceph后端rbd,active的实例创建快照报错
- ceph存储 ceph集群Tier和RBD Cache的区别
- Ceph 性能优化 之 带掉电保护的Rbd Cache
- 关于ceph client创建RBD报错的解决方法
- 自适应辛普森(近似求积分模板)
- CSDN——hello world。
- POJ 3175 Finding Bovine Roots
- Catalan Square----卡特兰数
- 在ogg中手动同步数据遇到列映射的情况
- 基于 rbd nbd 的支持抢锁的 rbd docker volume plugin
- 字节流操作媒体文件
- 如何present出一个透明导航控制器NavigationController + UIVisualEffectView实现模糊效果、毛玻璃效果
- 苹果ios用js的Date()出现NaN问题解决办法
- 五分钟学GIS | BIM与三维GIS的融合
- JS数据类型
- 百度地图实现最简单的路径规划
- Mybits-generator 自动生成文件
- Mac一键删除所有数据