From: Davies L. <dav...@gm...> - 2013-07-09 06:33:07
|
On Tue, Jul 9, 2013 at 1:51 PM, Aleksey Silk <al...@si...> wrote: > Hello! > > How do you guys start mfsmaster in linux? > Now I use this script: > > root@am-01:/etc/init.d# cat mfsmaster > #!/bin/sh > > DAEMON=/usr/sbin/mfsmaster > PIDFILE=/var/lib/mfs/.mfsmaster.lock > > do_start () { > echo "Starting MFS Master service." > start-stop-daemon --start --exec $DAEMON --pidfile $PIDFILE > > } > > do_stop () { > echo "Stopping MFS Master service." > start-stop-daemon --stop --exec $DAEMON > rm $PIDFILE > } > > do_restart () { > echo "Restarting MFS Master service." > do_stop > do_start > } > > case "$1" in > > start) > do_start > ;; > > stop) > do_stop > ;; > > restart) > do_restart > ;; > > *) > echo "Usage: /etc/init.d/mfsmaster {start|stop|restart}" > exit 1 > ;; > > esac > exit 0 > > But sometimes it fails to start and I have 2 metadata.mfs.back files and it > fails to start due there is not metadata.mfs You should use mfsmetarestore to restore meatdata.mfs from metadata.mfs.back and changelogs. if [ ! -f /var/lib/mfs/metadata.mfs ] ; then /usr/sbin/mfsmetarestore -a fi Or you could try my fork (based on 1.6.27) [1], it will try to restore meta automatically when start. [1] https://github.com/davies/moosefs, which > Maybe I'm doing something wrong or it is time to patch some source ... > > > > > > > С уважением, Алексей Силк > With best regards, Aleksey Silk > > +7 (981) 849-12-36 > al...@si... > skype - rootiks > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > moosefs-users mailing list > moo...@li... > https://lists.sourceforge.net/lists/listinfo/moosefs-users > -- - Davies |