anchor.diff:  
               notify_janitor_finished(JanitorRequests, rebalance_running),
               ns_cluster:counter_inc(rebalance_start),
  -            ns_config:set([{rebalance_status, running},
  -                           {rebalance_status_uuid, couch_uuids:random()},
  -                           {graceful_failover_pid, undefined},
  -                           {rebalancer_pid, Pid}]),
  +
  +            Type = rebalance,
  +            set_rebalance_status(Type, running, Pid),
   
               {reply, ok, rebalancing,
                #rebalancing_state{rebalancer=Pid,
  
positive.code:                               "You can try rebalance again.">>}
               end,
  
      ns_config:set([{rebalance_status, Status},
                     {rebalance_status_uuid, couch_uuids:random()},
                     {rebalancer_pid, undefined},
                     {graceful_failover_pid, undefined}]),
      rpc:eval_everywhere(diag_handler, log_all_dcp_stats, []),
      case (lists:member(node(), EjectNodes) andalso Reason =:= normal) orelse
          lists:member(node(), FailedNodes) of
  
negative.code:     case ns_rebalancer:start_link_graceful_failover(Node) of
          {ok, Pid} ->
              notify_janitor_finished(JanitorRequests, rebalance_running),
  
              Type = graceful_failover,
              set_rebalance_status(Type, running, Pid),
  
              Nodes = ns_cluster_membership:active_nodes(),
              Progress = rebalance_progress:init(Nodes, [kv]),
  