1. 程式人生 > >install ceph by ceph-deploy

install ceph by ceph-deploy

ssh key sta install oot home swd ech cep nopasswd

1、在每臺ceph節點上都生成一個ceph-deploy用戶,密碼也為ceph-deply

sudo useradd -d /home/ceph-deploy -m ceph-deploy

passwd ceph-deploy

(ceph-deploy)

echo "ceph-deploy ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph-deploy

sudo chmod 0440 /etc/sudoers.d/ceph-deploy

2、在其中一臺節點上生成ssh key,並將ssh key 拷貝至其余ceph節點

su ceph-deploy

ssh-keygen 一路回車

ssh-copy-id ceph-deploy@ceph-node1

ssh-copy-id ceph-deploy@ceph-node2

ssh-copy-id ceph-deploy@ceph-node3

install ceph by ceph-deploy