Ceph
rpm --import 'https://download.ceph.com/keys/release.asc' rpm -Uhv https://download.ceph.com/rpm-luminous/el7/noarch/ceph-release-1-1.el7.noarch.rpm yum install yum-plugin-priorities yum install snappy leveldb gdisk python-argparse gperftools-libs yum install ceph cat << EOF > /etc/ceph/ceph.conf fsid = a7f64266-0894-4f1e-a635-d0aeaca0e993 mon initial members = monitor mon host = 10.0.0.60 EOF
Create a cluster keyring and generate a monitor secret key.
ceph-authtool --create-keyring /tmp/ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *'
Generate an admin keyring and add the admin user
ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *' --cap mgr 'allow *'
Add the admin key to the monitor keyring
ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring
Generate a monitor map
monmaptool --create --add monitor 10.0.0.60 --fsid 62b6f6f1-d553-439e-8da3-d04e619ebf47 /tmp/monmap
Create a default data directory
sudo -u ceph mkdir /var/lib/ceph/mon/ceph-monitor
Populate the monitor daemon with the monitor map and keyring.
sudo -u ceph ceph-mon --cluster ceph --mkfs -i monitor --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
sudo -u ceph touch /var/lib/ceph/mon/ceph-monitor/done
systemctl enable ceph-mon\@monitor.service
systemctl start ceph-mon\@monitor.service
ceph osd lspools
Backlinks: