博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
rados命令
阅读量:6709 次
发布时间:2019-06-25

本文共 4198 字,大约阅读时间需要 13 分钟。

chen@admin-node:/etc/ceph$ rados --helpusage: rados [options] [commands]POOL COMMANDS   lspools                          list pools   mkpool 
[123[ 4]] create pool
' [with auid 123[and using crush rule 4]] cppool
copy content of a pool rmpool
[
--yes-i-really-really-mean-it] remove pool
' df show per-pool and total usage ls list objects in pool chown 123 change the pool owner to auid 123POOL SNAP COMMANDS lssnap list snaps mksnap
create snap
rmsnap
remove snap
OBJECT COMMANDS get
[outfile] fetch object put
[infile] write object truncate
length truncate object create
create object rm
... remove object(s) cp
[target-obj] copy object clonedata
clone object data listxattr
getxattr
attr setxattr
attr val rmxattr
attr stat objname stat the named object mapext
rollback
roll back object to snap
listsnaps
list the snapshots of this object bench
write|seq|rand [-t concurrent_operations] [--no-cleanup] [--run-name run_name] default is 16 concurrent IOs and 4 MB ops default is to clean up after write benchmark default run-name is 'benchmark_last_metadata' cleanup [--run-name run_name] [--prefix prefix] clean up a previous benchmark operation default run-name is 'benchmark_last_metadata' load-gen [options] generate load on the cluster listomapkeys
list the keys in the object map listomapvals
list the keys and vals in the object map getomapval
[file] show the value for the specified key in the object's object map setomapval
rmomapkey
getomapheader
[file] setomapheader
tmap-to-omap
convert tmap keys/values to omap watch
add watcher on this object notify
notify wather of this object with message listwatchers
list the watchers of this object set-alloc-hint
set allocation hint for an objectIMPORT AND EXPORT import [options]
Upload
to
export [options]
Download
to
options: -f / --force Copy everything, even if it hasn't changed. -d / --delete-after After synchronizing, delete unreferenced files or objects from the target bucket or directory. --workers Number of worker threads to spawn (default 5)ADVISORY LOCKS lock list
List all advisory locks on an object lock get
Try to acquire a lock lock break
Try to break a lock acquired by another client lock info
Show lock information options: --lock-tag Lock tag, all locks operation should use the same tag --lock-cookie Locker cookie --lock-description Description of lock --lock-duration Lock duration (in seconds) --lock-type Lock type (shared, exclusive)CACHE POOLS: (for testing/development only) cache-flush
flush cache pool object (blocking) cache-try-flush
flush cache pool object (non-blocking) cache-evict
evict cache pool object cache-flush-evict-all flush+evict all objects cache-try-flush-evict-all try-flush+evict all objectsGLOBAL OPTIONS: --object_locator object_locator set object_locator for operation -p pool --pool=pool select given pool by name --target-pool=pool select target pool by name -b op_size set the size of write ops for put or benchmarking -s name --snap name select given snap name for (read) IO -i infile --create create the pool or directory that was specified -N namespace --namespace=namespace specify the namespace to use for the object --all Use with ls to list objects in all namespaces Put in CEPH_ARGS environment variable to make this the default --default Use with ls to list objects in default namespace Takes precedence over --all in case --all is in environment --target-locator Use with cp to specify the locator of the new object --target-nspace Use with cp to specify the namespace of the new objectBENCH OPTIONS: -t N --concurrent-ios=N Set number of concurrent I/O operations --show-time prefix output with date/timeLOAD GEN OPTIONS: --num-objects total number of objects --min-object-size min object size --max-object-size max object size --min-ops min number of operations --max-ops max number of operations --max-backlog max backlog (in MB) --percent percent of operations that are read --target-throughput target throughput (in MB) --run-length total time (in seconds)

 

转载于:https://www.cnblogs.com/IvanChen/p/4939319.html

你可能感兴趣的文章
POJ-1679 The Unique MST---判断最小生成树是否唯一
查看>>
(转)关于Struts 2 拦截器参数丢失问题
查看>>
数据筛选和排序
查看>>
Promise 理解
查看>>
Ueditor在MVC中上传文件和远程图片下载的脚本
查看>>
关于索引
查看>>
让pandoc输出pdf时支持中文
查看>>
利用反射实现页面控件与实体之间的绑定
查看>>
Xamarin-Android_BaseAdapter 简单的复用
查看>>
快速傅里叶变换(FFT)
查看>>
在C#程序中使用ocx的方法
查看>>
C# 递归查找文件夹下所有文件和子文件夹的所有文件
查看>>
如何发布你的 Maya 应用到欧特克官方的 Exchange Store
查看>>
react之自定义react-redux的provider、connect
查看>>
JQuery中工厂函数$()初探
查看>>
网上发现的一个android UI包
查看>>
新闻源图片放到js里
查看>>
SpringBoot学习:整合Mybatis,使用HikariCP超高性能数据源
查看>>
Java--面向对象
查看>>
微信模板消息群发系统
查看>>