An interesting discovery; Rapetosaurus, the Malagasy titanosaur, had the largest osteoderms of any dinosaur known... but they weren´t armor, as was believed. Actually they were hollow, and may have served as a mineral storing device, to help the animal survive during drought and keep growing when food was scarce.
http://blogs.discovermagazine.com/notrocketscience/2011/12/02/titan-dinosaur-may-have-stored-minerals-in-skin-bones/