The Dodgers agreed to a two-year, $34 million contract with right-hander Clay Holmes, their first free agent signing of a quiet offseason.