1. chen@admin-node:~$ rbd --help
  2. usage: rbd [-n <auth user>] [OPTIONS] <cmd> ...
  3. where 'pool' is a rados pool name (default is 'rbd') and 'cmd' is one of:
  4. (ls | list) [-l | --long ] [pool-name] list rbd images
  5. (-l includes snapshots/clones)
  6. info <image-name> show information about image size,
  7. striping, etc.
  8. create [--order <bits>] [--image-features <features>] [--image-shared]
  9. --size <MB> <name> create an empty image
  10. clone [--order <bits>] [--image-features <features>] [--image-shared]
  11. <parentsnap> <clonename> clone a snapshot into a COW
  12. child image
  13. children <snap-name> display children of snapshot
  14. flatten <image-name> fill clone with parent data
  15. (make it independent)
  16. resize --size <MB> <image-name> resize (expand or contract) image
  17. rm <image-name> delete an image
  18. export <image-name> <path> export image to file
  19. "-" for stdout
  20. import [--image-features <features>] [--image-shared]
  21. <path> <image-name> import image from file (dest
  22. defaults as the filename part
  23. of file). "-" for stdin
  24. diff <image-name> [--from-snap <snap-name>] print extents that differ since
  25. a previous snap, or image creation
  26. export-diff <image-name> [--from-snap <snap-name>] <path>
  27. export an incremental diff to
  28. path, or "-" for stdout
  29. merge-diff <diff1> <diff2> <path> merge <diff1> and <diff2> into
  30. <path>, <diff1> could be "-"
  31. for stdin, and <path> could be "-"
  32. for stdout
  33. import-diff <path> <image-name> import an incremental diff from
  34. path or "-" for stdin
  35. (cp | copy) <src> <dest> copy src image to dest
  36. (mv | rename) <src> <dest> rename src image to dest
  37. snap ls <image-name> dump list of image snapshots
  38. snap create <snap-name> create a snapshot
  39. snap rollback <snap-name> rollback image to snapshot
  40. snap rm <snap-name> deletes a snapshot
  41. snap purge <image-name> deletes all snapshots
  42. snap protect <snap-name> prevent a snapshot from being deleted
  43. snap unprotect <snap-name> allow a snapshot to be deleted
  44. watch <image-name> watch events on image
  45. status <image-name> show the status of this image
  46. map <image-name> map image to a block device
  47. using the kernel
  48. unmap <device> unmap a rbd device that was
  49. mapped by the kernel
  50. showmapped show the rbd images mapped
  51. by the kernel
  52. lock list <image-name> show locks held on an image
  53. lock add <image-name> <id> [--shared <tag>] take a lock called id on an image
  54. lock remove <image-name> <id> <locker> release a lock on an image
  55. bench-write <image-name> simple write benchmark
  56. --io-size <bytes> write size
  57. --io-threads <num> ios in flight
  58. --io-total <bytes> total bytes to write
  59. --io-pattern <seq|rand> write pattern
  60.  
  61. <image-name>, <snap-name> are [pool/]name[@snap], or you may specify
  62. individual pieces of names with -p/--pool, --image, and/or --snap.
  63.  
  64. Other input options:
  65. -p, --pool <pool> source pool name
  66. --image <image-name> image name
  67. --dest <image-name> destination [pool and] image name
  68. --snap <snap-name> snapshot name
  69. --dest-pool <name> destination pool name
  70. --path <path-name> path name for import/export
  71. --size <size in MB> size of image for create and resize
  72. --order <bits> the object size in bits; object size will be
  73. ( << order) bytes. Default is ( MB).
  74. --image-format <format-number> format to use when creating an image
  75. format is the original format (default)
  76. format supports cloning
  77. --image-features <features> optional format features to enable
  78. + layering support, + striping v2,
  79. + exclusive lock, + object map
  80. --image-shared image will be used concurrently (disables
  81. RBD exclusive lock and dependent features)
  82. --stripe-unit <size-in-bytes> size (in bytes) of a block of data
  83. --stripe-count <num> number of consecutive objects in a stripe
  84. --id <username> rados user (without 'client.'prefix) to
  85. authenticate as
  86. --keyfile <path> file containing secret key for use with cephx
  87. --shared <tag> take a shared (rather than exclusive) lock
  88. --format <output-format> output format (default: plain, json, xml)
  89. --pretty-format make json or xml output more readable
  90. --no-progress do not show progress for long-running commands
  91. -o, --options <map-options> options to use when mapping an image
  92. --read-only set device readonly when mapping image
  93. --allow-shrink allow shrinking of an image when resizing

rbd命令的更多相关文章

  1. 理解 OpenStack + Ceph (3):Ceph RBD 接口和工具 [Ceph RBD API and Tools]

    本系列文章会深入研究 Ceph 以及 Ceph 和 OpenStack 的集成: (1)安装和部署 (2)Ceph RBD 接口和工具 (3)Ceph 物理和逻辑结构 (4)Ceph 的基础数据结构 ...

  2. ceph运维命令合集

    一.集群 1.启动一个ceph进程 启动mon进程 [root@ceph-adm ~]#203.109 service ceph start mon.ceph-mon1 启动msd进程 [root@c ...

  3. rexray在CentOS上不能创建ceph rbd的docker volume问题定位

    背景 我们通过docker的rexray插件来创建ceph rbd设备的docker volume,但总提示创建失败. # docker volume create --driver=rexray - ...

  4. Ceph 命令

    引用自: https://www.cnblogs.com/schangech/p/8036161.html 一.集群 1.启动一个ceph 进程启动mon进程 service ceph start  ...

  5. 最新ceph集群常用命令梳理

    结合网络.官网.手动查询等多方渠道,整理ceph维护管理常用命令,并且梳理常规命令在使用过程中的逻辑顺序.另外整理期间发现ceph 集群的命令体系有点乱,详细情况各自体验. 一:ceph集群启动.重启 ...

  6. Ceph 块设备 - 命令,快照,镜像

    目录 一.Ceph 块设备 二.块设备 rbd 命令 三.操作内核模块 四.快照基础 rbd snap 五.分层快照 六.镜像 rbd mirror 七.QEMU 八.libvirt 九.Openst ...

  7. ceph常用命令(转)

    原文:http://michaelkang.blog.51cto.com/1553154/1698287 一:ceph集群启动.重启.停止 1:ceph 命令的选项如下: 选项简写描述 --verbo ...

  8. Kubernetes配置Ceph RBD StorageClass

    1. 在Ceph上为Kubernetes创建一个存储池 # ceph osd pool create k8s 2. 创建k8s用户 # ceph auth get-or-create client.k ...

  9. RBD 基本使用 - Storage6

    块存储管理系列文章 (1)RBD 基本使用 - Storage6 (2)iSCSI 网关管理 (3)使用 librbd 将虚拟机运行在 Ceph RBD (4)RBD Mirror 容灾 Ceph 块 ...

随机推荐

  1. docker不稳定 short running containers with -rm failed to destroy

    正常运行以下命令 sudo docker run --rm busybox echo helloworld /var/log/upstart/docker.log 日志如下: // :: POST / ...

  2. WordPress ”无法发送电子邮件,可能原因:您的主机禁用了mail()函数“的解决办法

    WordPress网站中出现 "无法发送电子邮件,可能原因:您的主机禁用了mail()函数"的情况一般都是因为所在主机环境不支持在线邮件收发功能导致,如果不支持的话,那么像类似 N ...

  3. Azkaban 2.5.0 搭建

    一.前言 最近试着参照官方文档搭建 Azkaban,发现文档很多地方有坑,所以在此记录一下. 二.环境及软件 安装环境: 系统环境: ubuntu-12.04.2-server-amd64 安装目录: ...

  4. ural 1143. Electric Path

    1143. Electric Path Time limit: 1.0 secondMemory limit: 64 MB Background At the team competition of ...

  5. 数据结构:后缀自动机 WJMZBMR讲稿的整理和注释

    链接放在这里,有点难理解,至少我个人是的. 后缀自动机是一种有限状态自动机,其功能是识别字符串是否是母串的后缀.它能解决的问题当然不仅仅是判断是不是后缀这种事,跟字符串的连续子串有关的问题都可以往这个 ...

  6. git 回滚

    git reset --hard HEAD~10 可以通过上面的命令会退到最初的版本查看源代码, git reset --hard 4aa9a32d1625997ef5b28463ccde78d711 ...

  7. 【CodeVS】 p1225 八数码难题

    题目描述 Description Yours和zero在研究A*启发式算法.拿到一道经典的A*问题,但是他们不会做,请你帮他们.问题描述 在3×3的棋盘上,摆有八个棋子,每个棋子上标有1至8的某一数字 ...

  8. HDU 1251 Trie树模板题

    1.HDU 1251 统计难题  Trie树模板题,或者map 2.总结:用C++过了,G++就爆内存.. 题意:查找给定前缀的单词数量. #include<iostream> #incl ...

  9. jquery dialog open后,服务器端控件失效的快速解决方法

    jquery dialog为我们提供了非常漂亮实用的对话框,比单调的alert.confirm.prompt好用很多. 在使用jquery与.net共同开发时,直接调用jquery dialog的op ...

  10. Thymeleaf学习内容

    Thymeleaf Page Layouts Spring MVC and Thymeleaf: how to access data from templates thymeleaf-layout- ...