This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#coding:utf-8 | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
''' | |
Created on 2012-3-13 | |
@author: 小马过河 | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} |