Advertisement
Guest User

Untitled

a guest
Dec 8th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. # Make *sure* no osd disks are being started in puppet
  2.  
  3. # Add admin key to keyring
  4. cp /etc/ceph/ceph.mon.keyring /tmp
  5. ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring
  6.  
  7. # Create monmap (fsid comes from /etc/ceph/ceph.conf, hosts are initial members)
  8. monmaptool --create --add host 192.168.0.1 --add more...hosts.. --fsid <fsid from hiera> /tmp/monmap
  9.  
  10. # Copy /tmp/monmap and /tmp/ceph.mon.keyring to all initial monitors
  11. scp ..
  12.  
  13. # Create initial monitor fs (on each node)
  14. ceph-mon --mkfs -i $(hostname -f) --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
  15. touch /var/lib/ceph/mon/ceph-$(hostname -f)/done
  16. touch /var/lib/ceph/mon/ceph-$(hostname -f)/systemd
  17.  
  18. # Enable and start monitor service
  19. systemctl enable ceph-mon@$(hostname -f)
  20. systemctl start ceph-mon@$(hostname -f)
  21.  
  22. # Import deployment keys (only one node)
  23. ceph auth import -i /var/lib/ceph/bootstrap-mds/ceph.keyring
  24. ceph auth import -i /var/lib/ceph/bootstrap-osd/ceph.keyring
  25. ceph auth import -i /var/lib/ceph/bootstrap-rgw/ceph.keyring
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement