GM reported it had agreed to a multiyear deal for cobalt from Glencore’s Murrin Murrin mine in Australia.