文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>monitor commands

monitor commands

时间:2010-05-20  来源:zhengsheng2010

Monitor commands

From Ceph wiki

Jump to: navigation, search

Monitor commands are issued using the ceph utility(in versions before Dec08 it was called cmonctl):

$ ceph [-m monhost] command

where the command is usually of the form

$ ceph subsystem command

Contents

[hide]
  • 1 System commands
  • 2 OSD subsystem
    • 2.1 stat
    • 2.2 getmap
    • 2.3 getcrushmap
    • 2.4 getmaxosd
    • 2.5 setmap
    • 2.6 setcrushmap
    • 2.7 setmaxosd
    • 2.8 down
    • 2.9 out
    • 2.10 in
  • 3 MDS subsystem
    • 3.1 stat
    • 3.2 dump
    • 3.3 getmap
    • 3.4 stop
    • 3.5 set_max_mds
    • 3.6 setmap

[edit] System commands

$ ceph stop

Cleanly shut down the file system.

[edit] OSD subsystem

[edit] stat

$ ceph osd stat

Query osd subsystem status.

[edit] getmap

$ ceph osd getmap -o file

Write a copy of the most recent osd map to a file. See osdmaptool.

[edit] getcrushmap

$ ceph osd getcrushmap -o file

Write a copy of the crush map from the most recent osd map to file. This is functionally equivalent to

$ ceph osd getmap -o /tmp/osdmap
$ osdmaptool /tmp/osdmap --export-crush file

[edit] getmaxosd

$ ceph osd getmaxosd

Query the current max_osd parameter in the osd map.

[edit] setmap

$ ceph osd setmap -i file

Import the given osd map. Note that this can be a bit dangerous, since the osd map includes dynamic state about which OSDs are current on or offline; only do this if you've just modified a (very) recent copy of the map.

[edit] setcrushmap

$ ceph osd setcrushmap -i file

Import the given crush map.

[edit] setmaxosd

$ ceph osd setmaxosd

Set the max_osd parameter in the osd map. This is necessary when expanding the storage cluster.

[edit] down

$ ceph osd down N

Mark osdN down.

[edit] out

$ ceph osd out N

Mark osdN out of the distribution (i.e. allocated no data).

[edit] in

$ ceph osd in N

Mark osdN in the distribution (i.e. allocated data);


[edit] MDS subsystem

[edit] stat

[edit] dump

[edit] getmap

[edit] stop

[edit] set_max_mds

[edit] setmap

相关阅读 更多 +
排行榜 更多 +
超级迈阿密女孩

超级迈阿密女孩

飞行射击 下载
人类与骷髅安卓版

人类与骷髅安卓版

飞行射击 下载
绝地生存战场最新版

绝地生存战场最新版

飞行射击 下载