The Dodgers and free-agent pitcher Zack Greinke are close to a multiyear agreement, according to a baseball source.