rbd命令
- chen@admin-node:~$ rbd --help
- usage: rbd [-n <auth user>] [OPTIONS] <cmd> ...
- where 'pool' is a rados pool name (default is 'rbd') and 'cmd' is one of:
- (ls | list) [-l | --long ] [pool-name] list rbd images
- (-l includes snapshots/clones)
- info <image-name> show information about image size,
- striping, etc.
- create [--order <bits>] [--image-features <features>] [--image-shared]
- --size <MB> <name> create an empty image
- clone [--order <bits>] [--image-features <features>] [--image-shared]
- <parentsnap> <clonename> clone a snapshot into a COW
- child image
- children <snap-name> display children of snapshot
- flatten <image-name> fill clone with parent data
- (make it independent)
- resize --size <MB> <image-name> resize (expand or contract) image
- rm <image-name> delete an image
- export <image-name> <path> export image to file
- "-" for stdout
- import [--image-features <features>] [--image-shared]
- <path> <image-name> import image from file (dest
- defaults as the filename part
- of file). "-" for stdin
- diff <image-name> [--from-snap <snap-name>] print extents that differ since
- a previous snap, or image creation
- export-diff <image-name> [--from-snap <snap-name>] <path>
- export an incremental diff to
- path, or "-" for stdout
- merge-diff <diff1> <diff2> <path> merge <diff1> and <diff2> into
- <path>, <diff1> could be "-"
- for stdin, and <path> could be "-"
- for stdout
- import-diff <path> <image-name> import an incremental diff from
- path or "-" for stdin
- (cp | copy) <src> <dest> copy src image to dest
- (mv | rename) <src> <dest> rename src image to dest
- snap ls <image-name> dump list of image snapshots
- snap create <snap-name> create a snapshot
- snap rollback <snap-name> rollback image to snapshot
- snap rm <snap-name> deletes a snapshot
- snap purge <image-name> deletes all snapshots
- snap protect <snap-name> prevent a snapshot from being deleted
- snap unprotect <snap-name> allow a snapshot to be deleted
- watch <image-name> watch events on image
- status <image-name> show the status of this image
- map <image-name> map image to a block device
- using the kernel
- unmap <device> unmap a rbd device that was
- mapped by the kernel
- showmapped show the rbd images mapped
- by the kernel
- lock list <image-name> show locks held on an image
- lock add <image-name> <id> [--shared <tag>] take a lock called id on an image
- lock remove <image-name> <id> <locker> release a lock on an image
- bench-write <image-name> simple write benchmark
- --io-size <bytes> write size
- --io-threads <num> ios in flight
- --io-total <bytes> total bytes to write
- --io-pattern <seq|rand> write pattern
- <image-name>, <snap-name> are [pool/]name[@snap], or you may specify
- individual pieces of names with -p/--pool, --image, and/or --snap.
- Other input options:
- -p, --pool <pool> source pool name
- --image <image-name> image name
- --dest <image-name> destination [pool and] image name
- --snap <snap-name> snapshot name
- --dest-pool <name> destination pool name
- --path <path-name> path name for import/export
- --size <size in MB> size of image for create and resize
- --order <bits> the object size in bits; object size will be
- ( << order) bytes. Default is ( MB).
- --image-format <format-number> format to use when creating an image
- format is the original format (default)
- format supports cloning
- --image-features <features> optional format features to enable
- + layering support, + striping v2,
- + exclusive lock, + object map
- --image-shared image will be used concurrently (disables
- RBD exclusive lock and dependent features)
- --stripe-unit <size-in-bytes> size (in bytes) of a block of data
- --stripe-count <num> number of consecutive objects in a stripe
- --id <username> rados user (without 'client.'prefix) to
- authenticate as
- --keyfile <path> file containing secret key for use with cephx
- --shared <tag> take a shared (rather than exclusive) lock
- --format <output-format> output format (default: plain, json, xml)
- --pretty-format make json or xml output more readable
- --no-progress do not show progress for long-running commands
- -o, --options <map-options> options to use when mapping an image
- --read-only set device readonly when mapping image
- --allow-shrink allow shrinking of an image when resizing
rbd命令的更多相关文章
- 理解 OpenStack + Ceph (3):Ceph RBD 接口和工具 [Ceph RBD API and Tools]
本系列文章会深入研究 Ceph 以及 Ceph 和 OpenStack 的集成: (1)安装和部署 (2)Ceph RBD 接口和工具 (3)Ceph 物理和逻辑结构 (4)Ceph 的基础数据结构 ...
- ceph运维命令合集
一.集群 1.启动一个ceph进程 启动mon进程 [root@ceph-adm ~]#203.109 service ceph start mon.ceph-mon1 启动msd进程 [root@c ...
- rexray在CentOS上不能创建ceph rbd的docker volume问题定位
背景 我们通过docker的rexray插件来创建ceph rbd设备的docker volume,但总提示创建失败. # docker volume create --driver=rexray - ...
- Ceph 命令
引用自: https://www.cnblogs.com/schangech/p/8036161.html 一.集群 1.启动一个ceph 进程启动mon进程 service ceph start ...
- 最新ceph集群常用命令梳理
结合网络.官网.手动查询等多方渠道,整理ceph维护管理常用命令,并且梳理常规命令在使用过程中的逻辑顺序.另外整理期间发现ceph 集群的命令体系有点乱,详细情况各自体验. 一:ceph集群启动.重启 ...
- Ceph 块设备 - 命令,快照,镜像
目录 一.Ceph 块设备 二.块设备 rbd 命令 三.操作内核模块 四.快照基础 rbd snap 五.分层快照 六.镜像 rbd mirror 七.QEMU 八.libvirt 九.Openst ...
- ceph常用命令(转)
原文:http://michaelkang.blog.51cto.com/1553154/1698287 一:ceph集群启动.重启.停止 1:ceph 命令的选项如下: 选项简写描述 --verbo ...
- Kubernetes配置Ceph RBD StorageClass
1. 在Ceph上为Kubernetes创建一个存储池 # ceph osd pool create k8s 2. 创建k8s用户 # ceph auth get-or-create client.k ...
- RBD 基本使用 - Storage6
块存储管理系列文章 (1)RBD 基本使用 - Storage6 (2)iSCSI 网关管理 (3)使用 librbd 将虚拟机运行在 Ceph RBD (4)RBD Mirror 容灾 Ceph 块 ...
随机推荐
- docker不稳定 short running containers with -rm failed to destroy
正常运行以下命令 sudo docker run --rm busybox echo helloworld /var/log/upstart/docker.log 日志如下: // :: POST / ...
- WordPress ”无法发送电子邮件,可能原因:您的主机禁用了mail()函数“的解决办法
WordPress网站中出现 "无法发送电子邮件,可能原因:您的主机禁用了mail()函数"的情况一般都是因为所在主机环境不支持在线邮件收发功能导致,如果不支持的话,那么像类似 N ...
- Azkaban 2.5.0 搭建
一.前言 最近试着参照官方文档搭建 Azkaban,发现文档很多地方有坑,所以在此记录一下. 二.环境及软件 安装环境: 系统环境: ubuntu-12.04.2-server-amd64 安装目录: ...
- ural 1143. Electric Path
1143. Electric Path Time limit: 1.0 secondMemory limit: 64 MB Background At the team competition of ...
- 数据结构:后缀自动机 WJMZBMR讲稿的整理和注释
链接放在这里,有点难理解,至少我个人是的. 后缀自动机是一种有限状态自动机,其功能是识别字符串是否是母串的后缀.它能解决的问题当然不仅仅是判断是不是后缀这种事,跟字符串的连续子串有关的问题都可以往这个 ...
- git 回滚
git reset --hard HEAD~10 可以通过上面的命令会退到最初的版本查看源代码, git reset --hard 4aa9a32d1625997ef5b28463ccde78d711 ...
- 【CodeVS】 p1225 八数码难题
题目描述 Description Yours和zero在研究A*启发式算法.拿到一道经典的A*问题,但是他们不会做,请你帮他们.问题描述 在3×3的棋盘上,摆有八个棋子,每个棋子上标有1至8的某一数字 ...
- HDU 1251 Trie树模板题
1.HDU 1251 统计难题 Trie树模板题,或者map 2.总结:用C++过了,G++就爆内存.. 题意:查找给定前缀的单词数量. #include<iostream> #incl ...
- jquery dialog open后,服务器端控件失效的快速解决方法
jquery dialog为我们提供了非常漂亮实用的对话框,比单调的alert.confirm.prompt好用很多. 在使用jquery与.net共同开发时,直接调用jquery dialog的op ...
- Thymeleaf学习内容
Thymeleaf Page Layouts Spring MVC and Thymeleaf: how to access data from templates thymeleaf-layout- ...