From: Thomas S H. <tha...@gm...> - 2010-12-27 16:06:00
|
As for your first question, when the failover occurs we want it to use the metalogger data. There is a chance that the machine which is the failover used to be a master, and that it has old metadata. The mv command is to ensure that only metalogs are being used by mfsmetarestore and not metadata that would be old and from a a previous run as the mfsmaster. As for your second question, you are correct in that the contents of the setup.sh could be executed inline in the vip-up script, so long as they are executed in the background, but you do need everything in the setup.sh to be executed, otherwise many conflicts can arise! And finally, yes, in the vip-down could probably use a few lines to shutdown the mfsmaster. -Tom Hatch On Mon, Dec 27, 2010 at 8:44 AM, Leonid Satanovsky <leo...@ar...>wrote: > Greetings! > Have reviewed the HOWTO, and there are two questions: > 1) > You do the following: > > <...> > mv $MFS/changelog.* $MFS/metadata.* $MFS/tmp/ > > service mfsmetalogger stop > mfsmetarestore -a #!# BUT, On what files will it work if all the > metadata and changelog files are "gone" to the "${MFS}/tmp" folder? > > if [ -e $MFS/metadata.mfs ] #!# The file will not be there, I think, > cos' you have moved it to "${MFS}/tmp" folder > > <...> > _______________________________________________________________________ > 2) The second on is for all the audience: > Isn't it just enough (or is it correct?...) to do the following: > > ------/ucarp-down----- > #!/bin/sh > > <....> > > ( > mfsmaster stop > mfsmetarestore -a # DO WE NEED THIS? > mfsmetalogger start > ) & > > ______________________________________________________________ > > ------/ucarp-up----- > > > #!/bin/sh > > <....> > > ( > mfsmetalogger stop > killall -9 mfsmetalogger > mfsmetarestore -a # DO WE NEED THIS? > mfsmaster start > ) & > > > > > > ----- Original Message ----- From: "Thomas S Hatch" <tha...@gm...> > To: "moosefs-users" <moo...@li...> > Sent: Friday, December 24, 2010 8:11 AM > > Subject: [Moosefs-users] Moosefs automated failover with ucarp > > > Sorry, this has taken me a while, my present service deployment has been >> very demanding, and heck, it needs 1.6.19 anyway! >> >> I wrote it in asciidoc, enjoy! >> >> (Consider this file to be Copyright Thomas S Hatch under the FDL licence, >> or >> whatever the MooseFS developers prefer blah blah blah...) >> >> -Thomas S Hatch >> >> > > > -------------------------------------------------------------------------------- > > > ------------------------------------------------------------------------------ >> Learn how Oracle Real Application Clusters (RAC) One Node allows customers >> to consolidate database storage, standardize their database environment, >> and, >> should the need arise, upgrade to a full multi-node Oracle RAC database >> without downtime or disruption >> http://p.sf.net/sfu/oracle-sfdevnl >> > > > > -------------------------------------------------------------------------------- > > > _______________________________________________ >> moosefs-users mailing list >> moo...@li... >> https://lists.sourceforge.net/lists/listinfo/moosefs-users >> >> > |