The correct revision to fix the comma splice in the sentence "The students read many books, piles lay all around the library" is:
Change the comma to a semi-colon.
This would make the sentence: "The students read many books; piles lay all around the library." This correctly connects the two independent clauses.