更新系统:
rm -f /etc/apt/sources.list.d/pve-enterprise.list
echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list
wget http://download.proxmox.com/debian/proxmox-ve-release-5.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
apt update&&apt dist-upgrade
apt-get install net-tools
设置时钟同步:
apt-get install ntpdate
ntpdate 120.25.108.11
echo "0 * * * * /usr/sbin/ntpdate 120.25.108.11 > /dev/null 2>&1" >> /etc/crontab
在每个节点上安装ceph,详见https://pve.proxmox.com/pve-docs/chapter-pveceph.html
root@proxmox231:~# pveceph install --version luminous
配置ceph集群存储网络
root@proxmox231:~# pveceph init --network 192.168.5.0/24
创建ceph集群存储Mon监控
root@proxmox231:~# pveceph createmonroot
root@proxmox231:~# pveceph createmgr
root@proxmox231:~# pveceph createosd /dev/sdbr
创建集群存储资源池ceph osd pool create [资源池名称] 128 128
root@proxmox231:~# ceph osd pool create pvepool 128 128
pool'pvepool'created
复制存储ID和密钥到指定文件位置
root@proxmox231:~# mkdir /etc/pve/priv/ceph
root@proxmox231:~# cp /etc/ceph/ceph.client.admin.keyring /etc/pve/priv/ceph.keyring
root@proxmox231:~# cp /etc/pve/priv/ceph.client.admin.keyring /etc/pve/priv/ceph/ceph1.keyring
root@proxmox231:~# ceph osd pool application enable pvepool
rbdenabled application'rbd'on pool'pvepool'
查看集群状态
ceph -s
网友评论