清理现有cephfs 所有文件,重建空间:
为新蔡等地区用户提供了全套网页设计制作服务,及新蔡网站建设行业解决方案。主营业务为网站制作、成都做网站、新蔡网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!systemctl stop ceph-mds@$HOSTNAME
systemctl status ceph-mds@$HOSTNAME
## ceph fs ls
name: leadorfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ]
## ceph mds stat
e392: 0/1/1 up, 1 failed
## ceph mon dump
dumped monmap epoch 1
ceph mds fail 0
ceph fs rm leadorfs --yes-i-really-mean-it
ceph osd pool delete cephfs_metadata cephfs_metadata --yes-i-really-really-mean-it
ceph osd pool delete cephfs_data cephfs_data --yes-i-really-really-mean-it
## ceph mds stat
e394:
## eph mds dump
dumped fsmap epoch 397
fs_name cephfs
epoch 397
flags 0
created 0.000000
modified 0.000000
tableserver 0
root 0
session_timeout 0
session_autoclose 0
max_file_size 0
last_failure 0
last_failure_osd_epoch 0
compat compat={},rocompat={},incompat={}
max_mds 0
in
up {}
failed
damaged
stopped
data_pools
metadata_pool 0
inline_data disabled
systemctl start ceph-mds@$HOSTNAME
systemctl status ceph-mds@$HOSTNAME
#验证:
ceph mds stat
e397:, 3 up:standby
ceph osd pool create cephfs_data 512
ceph osd pool create cephfs_metadata 512
ceph fs new ptcephfs cephfs_metadata cephfs_data
## ceph mds stat
e400: 1/1/1 up {0=jp33e502-4-13.ptengine.com=up:active}, 2 up:standby
## ceph mds dump
dumped fsmap epoch 400
fs_name ptcephfs
epoch 400
flags 0
created 2018-09-11 12:48:26.300848
modified 2018-09-11 12:48:26.300848
tableserver 0
root 0
session_timeout 60
session_autoclose 300
max_file_size 1099511627776
last_failure 0
last_failure_osd_epoch 0
compat compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=file layout v2}
max_mds 1
in 0
up {0=25579}
failed
damaged
stopped
data_pools 3
metadata_pool 4
inline_data disabled
25579: 172.19.4.13:6800/2414848276 'jp33e502-4-13.ptengine.com' mds.0.399 up:active seq 834
ceph -w
cluster fe946afe-43d0-404c-baed-fb04cd22d20d
health HEALTH_OK
monmap e1: 3 mons at {jp33e501-4-11=172.19.4.11:6789/0,jp33e501-4-12=172.19.4.12:6789/0,jp33e502-4-13=172.19.4.13:6789/0}
election epoch 12, quorum 0,1,2 jp33e501-4-11,jp33e501-4-12,jp33e502-4-13
fsmap e400: 1/1/1 up {0=jp33e502-4-13.ptengine.com=up:active}, 2 up:standby
osdmap e2445: 14 osds: 14 up, 14 in
flags sortbitwise,require_jewel_osds
pgmap v876685: 1024 pgs, 2 pools, 2068 bytes data, 20 objects
73366 MB used, 12919 GB / 12990 GB avail
1024 active+clean
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。