Advertisement
Guest User

Untitled

a guest
Dec 18th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Downing a node for replacement....
  2. referencing:
  3. http://ceph.com/docs/master/rados/operations/add-or-rm-osds/
  4.  
  5. take out the osd's
  6.  
  7. reweight to drive the data off
  8.  
  9. #for i in {0..23}; do ceph osd reweight $i .1; done
  10.  
  11. Take the OSD's out of service
  12.  
  13. #for i in {0..23}; do ceph osd out $i; done
  14.  
  15. Remove them from the crush map.
  16.  
  17. #for i in {0..23}; do ceph osd crush remove osd.$i; done
  18.  
  19. Remove them from mon auth
  20.  
  21. #for i in {0..23}; do ceph auth del osd.$i; done
  22.  
  23. Stop them
  24.  
  25. /etc/init.d/ceph stop
  26.  
  27. Delete them. This TOTALLY didn't work.... WTF? First run complained that they were not down.
  28.  
  29. for i in {0..23}; do ceph auth del osd.$i; done
  30.  
  31. And they show up in the tree. Eventually most went down....
  32.  
  33. ...
  34.  
  35. profit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement