Skip to content

Instantly share code, notes, and snippets.

@soneedu
soneedu / osd-remove.sh
Last active August 29, 2015 14:09 — forked from jerluc/osd-remove.sh
# As sudo
ceph osd crush remove osd.{osd-num}
ceph auth del osd.{osd-num}
ceph osd rm {osd-num}
ceph osd crush remove {host}
#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from os.path import basename, isdir
from os import listdir
def traverse(path, depth=0):
print depth* '| ' + '|_', basename(path)
#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
'''
Created on 2012-3-13
@author: 小马过河
'''