(Moose File System)HOW TO PREPARE A FAIL PROOF SOLUTION WITH A REDUNDANT MASTER?

HOW TO PREPARE A FAIL PROOF SOLUTION WITH A REDUNDANT MASTER?

A redundant master functionality is right now not a built-in functionality. But this subject is for us very crucial because we know how important this is and we receive lots of requests about it from many sources.

It is important to mention that even in MooseFS v 1.5.x edition it is relatively easy to write a scripts set which would quite automatically start a backup master server and in 1.6.x it is even simpler. The whole process of switching to the backup server would take less than a minute.

It is enough to use for example Common Address Redundancy Protocol (http://www.openbsd.org/faq/pf/carp.html,http://en.wikipedia.org/wiki/Common_Address_Redundancy_Protocol). CARP allows that there exist two machines with the same IP in one LAN – one MASTER and the second BACKUP.

So you can set up IP of mfsmaster on a CARP interface and configure the master machine to be used as MooseFS main master. On the backup machine you also install mfsmaster but of course you do not run it.

Versions 1.6.5 and above contain a new program mfsmetalogger which you can run on whatever machine you wish. The program gets metadata from master – every several hours (by default every 24 hours) gets a full metadata file and on current basis a complete change log.

If you run an earlier version of MooseFS than 1.6.5 it is enough to set up several simple scripts run regularly from cron (eg. every one hour) which would backup metadata file from the main master PREFIX/var/mfs/metadata.mfs.back.

You also need an extra script run continuously testing the CARP interface state which in case if this interface goes in a MASTER mode would get two or three newest “changelog” files from any chunkserver (just by using “scp”), would also start mfsmetarestore and then mfsmaster. The switch time should take approximately several seconds and along with time necessary for reconnecting chunkservers a new master would be fully functional in about a minute (in both read and write modes).

We also plan to add option to run master in read-only mode – which would be the best option for running the backup machine. This would secure the system against potential desynchronization of the two master machines and the need of merging all the changes to the main master which took place on the backup master.

时间: 2024-08-08 16:32:11

(Moose File System)HOW TO PREPARE A FAIL PROOF SOLUTION WITH A REDUNDANT MASTER?的相关文章

Moose File System

Moose File System http://www.moosefs.org/ 4.1. Master server installation groupadd mfs useradd -g mfs mfs cd /usr/local/src wget http://pro.hit.gemius.pl/hitredir/id=nXCV9nrckU2Et.zoR5kxdXZJLQq1fqbG4AIiq5K95Gz.07/url=moosefs.org/tl_files/mfscode/mfs-

Moose File System分布文件系统测试

moosefs是一个开源的分布文件系统软件,可提供高效,可靠的数据存储能力.配置,维护都比较简单. MOOSEFS对离散读写的性能提升明显. 建议底层使用xfs文件系统,支持更大的文件系统和更多的文件,这个的话rhel6已经加入支持了. 整个分布存储系统由三部分组成: master: 存储数据位图,权限信息,提供客户端挂载接口,提供图形管理接口等. metalog(optional) master服务器的备份. chunkserver 数据存储服务器,负责存储数据. clientserver 挂

GFS - The Google File System

The Google File System http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.125.789&rep=rep1&type=pdf http://www.dbthink.com/?p=501, 中文翻译   Google牛人云集的地方, 但在设计系统时, 却非常务实, 没有采用什么复杂和时髦的算法和机制  设计大型系统, 最重要的就是, 简单和可靠, 复杂就意味着失控... 在设计GFS, 首先一个选择就是,

Windows7开机提示checking file system on c的两种原因分析

  一.原因分析: Win7系统中开机时出现checking file system on是由于硬盘上文件有错误或硬盘有磁盘坏道导致(另外强制关闭电源也会出现这样的问题) 二.解决方法: 1.如果是由于系统文件错误导致,在出现"checking file system on"后,什么都不需要做,让系统自行修复文件错误,下一次开机就不会出现问题了. 2.如果是磁盘坏道导致的,表现为系统开机出现修复文件后,下次开机同样会出现"checking file system on C&q

GFS, HDFS, Blob File System架构对比

分布式文件系统很多,包括GFS,HDFS,淘宝开源的TFS,Tencent用于相册存储的TFS (Tencent FS,为了便于区别,后续称为QFS),以及Facebook Haystack.其中,TFS,QFS以及Haystack需要解决的问题以及架构都很类似,这三个文件系统称为Blob FS (Blob File System).本文从分布式架构的角度对三种典型的文件系统进行对比. 我们先看GFS和HDFS.HDFS基本可以认为是GFS的一个简化版实现,二者因此有很多相似之处.首先,GFS和

win7系统开机提示“checking file system on c”怎么办?

  win7系统开机提示"checking file system on c"怎么办?         1.按下"win+r"呼出运行,在框内输入"regedit"按下回车键打开注册表编辑器; 2.在注册表中依次展开"HKEY_LOCAL_MACHINESystemCurrentControlSetControlSession Manager"; 3.然后在窗口右侧找到"BootExecute"并双击打开,

Win7系统开机显示checking file system on怎么解决

Win7系统开机显示checking file system on怎么解决   1.由于Win7系统文件错误引起的故障,可以在Win7系统下修复文件错误; 2.若是因为磁盘坏道引起的问题,可以在系统开机后修复文个把后,开机如果还会出现checking file system on C,则说明为硬盘出现坏道,那么这时建议用户最好更换硬盘

checking file system on是什么意思 怎么解决

有时我们会电脑遇到这样一个问题,每次开机都出现这个"checking file system on d或e".这是什么意思,怎么解决?今天小编就和大家一起分析下. checking file system on 是什么意思? 电脑开机出现checking file system on D,从开机的错误提示可以看出,属于D盘有错误导致的.一般如果电脑某个磁盘产生错误即可容易导致此类故障的发生,一般伴随着开机会有相应的提示信息,如 checking file system on D/E/F

nilfs (a continuent snapshot file system) used with PostgreSQL

NILFS 是NTT开发的一个文件系统, 持续的提供快照, 为误操作提供回滚可能.  相比lvm的快照, nilfs更有利于SSD环境. 因为在写频繁的环境中不需要大量的cow.  简介 :  http://nilfs.sourceforge.net/en/ NILFS is a log-structured file system supporting versioning of the entire file system and continuous snapshotting which