接下來透過cepy-deploy工具快速部署一叢集,ceph-deploy工具運行在管理節點上的目錄之外。 任何具有網絡連接和現代python環境和ssh(如Linux)的主機都應該可以工作。
在下面的描述中,Node指的是一台機器。
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
echo deb https://download.ceph.com/debian-{ceph-stable-release}/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list
將
{ceph-stable-release}
取代為我們要安裝的版本(firefly, giant, hammer, infernalis, jewel, kraken, luminous)
sudo apt update
sudo apt install ceph-deploy
sudo subscription-manager repos --enable=rhel-7-server-extras-rpms
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
/etc/yum.repos.d/ceph.repo
cat >/etc/yum.repos.d/ceph.repo
[ceph-noarch]
name=Ceph noarch packages
baseurl=https://download.ceph.com/rpm-{ceph-release}/el7/noarch
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
將
{ceph-release}
取代為我們要安裝的版本(firefly, giant, hammer, infernalis, jewel, kraken, luminous)
sudo yum update
sudo yum install ceph-deploy
Ceph項目目前沒有發布openSUSE的發行版RPM,但是默認的更新庫中包含了一個穩定版本的Ceph
sudo zypper install ceph
sudo zypper install ceph-deploy