Advertisement
Guest User

First Ceph Deploy

a guest
Apr 5th, 2014
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. ceph -v
  2. ceph version 0.72.2 (a913ded2ff138aefb8cb84d347d72164099cfd60)
  3.  
  4. cat /etc/ceph/ceph.conf
  5. [global]
  6. osd_pool_default_pgp_num = 100
  7. osd_pool_default_min_size = 1
  8. auth_service_required = cephx
  9. mon_initial_members = ceph-mon01,ceph-mon02,ceph-mon03
  10. fsid = 983a74a9-1e99-42ef-8a1d-097553c3e6ce
  11. cluster_network = 172.16.34.0/24
  12. auth_supported = cephx
  13. auth_cluster_required = cephx
  14. mon_host = 172.16.33.20,172.16.33.21,172.16.33.22
  15. auth_client_required = cephx
  16. osd_pool_default_size = 2
  17. osd_pool_default_pg_num = 100
  18. public_network = 172.16.33.0/24
  19.  
  20. ceph -s
  21. cluster 983a74a9-1e99-42ef-8a1d-097553c3e6ce
  22. health HEALTH_ERR 192 pgs stuck inactive; 192 pgs stuck unclean; no osds
  23. monmap e3: 3 mons at {ceph-mon01=172.16.33.20:6789/0,ceph-mon02=172.16.33.21:6789/0,ceph-mon03=172.16.33.22:6789/0}, election epoch 6, quorum 0,1,2 ceph-mon01,ceph-mon02,ceph-mon03
  24. osdmap e3: 0 osds: 0 up, 0 in
  25. pgmap v4: 192 pgs, 3 pools, 0 bytes data, 0 objects
  26. 0 kB used, 0 kB / 0 kB avail
  27. 192 creating
  28.  
  29. ceph-disk list
  30. /dev/fd0 other, unknown
  31. /dev/sda :
  32. /dev/sda1 other, ext2, mounted on /boot
  33. /dev/sda2 other
  34. /dev/sda5 other, LVM2_member
  35. /dev/sdb :
  36. /dev/sdb1 ceph data, active, cluster ceph, osd.0, journal /dev/sdb2
  37. /dev/sdb2 ceph journal, for /dev/sdb1
  38. /dev/sr0 other, unknown
  39.  
  40. mount /dev/sdb1 /var/lib/ceph/osd/ceph-0
  41. ceph-osd -i 0 --mkfs --mkkey
  42. ceph auth add osd.0 osd 'allow *' mon 'allow rwx' -i /var/lib/ceph/osd/ceph-0/keyring
  43. ceph osd crush add-bucket ceph-osd133 host
  44. ceph osd crush move ceph-osd133 root=default
  45. ceph osd crush add osd.0 1.0 host=ceph-osd133
  46. Error ENOENT: osd.0 does not exist. create it before updating the crush map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement