Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Make *sure* no osd disks are being started in puppet
- # Add admin key to keyring
- cp /etc/ceph/ceph.mon.keyring /tmp
- ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring
- # Create monmap (fsid comes from /etc/ceph/ceph.conf, hosts are initial members)
- monmaptool --create --add host 192.168.0.1 --add more...hosts.. --fsid <fsid from hiera> /tmp/monmap
- # Copy /tmp/monmap and /tmp/ceph.mon.keyring to all initial monitors
- scp ..
- # Create initial monitor fs (on each node)
- ceph-mon --mkfs -i $(hostname -f) --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
- touch /var/lib/ceph/mon/ceph-$(hostname -f)/done
- touch /var/lib/ceph/mon/ceph-$(hostname -f)/systemd
- # Enable and start monitor service
- systemctl enable ceph-mon@$(hostname -f)
- systemctl start ceph-mon@$(hostname -f)
- # Import deployment keys (only one node)
- ceph auth import -i /var/lib/ceph/bootstrap-mds/ceph.keyring
- ceph auth import -i /var/lib/ceph/bootstrap-osd/ceph.keyring
- ceph auth import -i /var/lib/ceph/bootstrap-rgw/ceph.keyring
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement