mfsmount
客户端相关的操作:
创新互联是专业的锡山网站建设公司,锡山接单;提供成都网站设计、网站制作,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行锡山网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!
2016-07-27 11:49:02 umount /usr/local/img.happytoo.cn
2016-07-27 11:49:08 /usr/local/mfs/bin/mfsmount /usr/local/img.happytoo.cn -H 10.0.0.79 -o nonempty
/usr/local/mfs/bin/mfsmount /usr/local/img.happytoo.cn -H 10.0.0.79 -o nonempty
mfs查看文件的份数:
[root@V152_sshl_pay ~]# /usr/local/mfs/bin/mfsfileinfo /usr/local/img.happytoo.cn/1407101359362913.jpg
/usr/local/img.happytoo.cn/1407101359362913.jpg:
chunk 0: 00000000000009B9_00000001 / (id:2489 ver:1)
copy 1: 10.0.0.105:9422
copy 2: 10.0.0.109:9422
[root@V152_sshl_pay ~]# /usr/local/mfs/bin/mfsfileinfo /usr/local/img.happytoo.cn/upload/down/happytoo.3.2.19.apk
/usr/local/img.happytoo.cn/upload/down/happytoo.3.2.19.apk:
chunk 0: 00000000004DA06F_00000001 / (id:5087343 ver:1)
copy 1: 10.0.0.105:9422
copy 2: 10.0.0.109:9422
[root@V105_shhl_wei down]# /usr/local/mfs/bin/mfsgetgoal -h /usr/local/img.happytoo.cn/ //获取文件备份信息
/usr/local/img.happytoo.cn/: 2 //1表示没有备份,只有一个文件,我们这里是2
# 查看设置的goal数
[root@V152_sshl_pay ~]# /usr/local/mfs/bin/mfsgetgoal /usr/local/img.happytoo.cn/
/usr/local/img.happytoo.cn/: 2
You have new mail in /var/spool/mail/root
[root@V105_shhl_wei down]# /usr/local/mfs/bin/mfsdirinfo /usr/local/img.happytoo.cn/ //查看chunk信息
/usr/local/img.happytoo.cn/:
inodes: 5596103
directories: 446545
files: 5149558
chunks: 5149519
length: 255759933723
size: 478456327168
realsize: 956912654336
# /usr/local/mfs/bin/mfssetgoal -r 2 /mnt/data/ //等段时间之后生效,这样修改之后,文件就实现冗余功能了 -r 递归
[root@V152_sshl_pay ~]# /usr/local/mfs/bin/mfscheckfile /usr/local/img.happytoo.cn/upload/down/happytoo.3.2.19.apk mfscheckfile 用来检查指定文件以多少副本来存储
/usr/local/img.happytoo.cn/upload/down/happytoo.3.2.19.apk:
chunks with 2 copies: 1
mfs 故障模拟维护:
http://www.xuebuyuan.com/1559864.html
在web见面info选项卡中可以看出,这个矩阵横坐标表示现在已经存在磁盘上的副本数,纵坐标表示你设置的副本数
http://www.bubuko.com/infodetail-1899169.html mfs如何迁移数据之替换存储节点
MFS近期测试遇到故障的总结 http://www.xuebuyuan.com/1559864.html
http://www.bubuko.com/infodetail-1899169.html 迁移chunkserver 配置
http://www.bubuko.com/infodetail-1899169.html
http://www.cnblogs.com/liaojiafa/p/6069872.html
分享文章:mfsmount
文章源于:http://ybzwz.com/article/jsigdp.html