ceph安装命令罗列

DNS服务

SSH服务

             ssh-keygen -t rsa          公钥和私钥生成
             ssh-copy-id node4       公钥发送到node4节点

NTP服务

     /usr/sbin/ntpdate -u 10.1.1.2  &&hwclock -w

安装ceph

sudo apt-get install ceph-deploy
mkdir /root/demo_cluster
cd /root/demo_clusert

ceph-deploy install democeph2 democeph3 democeph4

ceph-deploy new democeph2 democeph3 democeph4

vi ceph.conf
    可参考D:\***\我的文库\ceph\cephconf

ceph-deploy mon create democeph2 democeph3 democeph4

ceph-deploy gatherkeys democeph2
ceph-deploy disk list democeph2 democeph3 democeph4
ceph-deploy osd prepare democeph2:/dev/sdb democeph3:/dev/sdb democeph4:/dev/sdb   #默认日志和数据在同一个盘里,自动划出一块做日志盘

    ceph-deploy osd prepare democeph2:/dev/sdb:/path/to/journal #ceph2d 数据盘是sdb,与数据盘对应的日志盘是后面的

(命令后面的名称部分仅供参考)

你可能感兴趣的:(ceph)