Berechiah and Elkanah were to be guardians of the ark.
Preparation is here made for the bringing of the ark home to the city of David from the house of Obed-edom. It is here owned that in the former attempt, though it was a very good work and in it they sought God, yet they sought him, not after the due order, Ch1 15:13.
Commenting on 1 Chronicles 15:1-24
And Berechiah, and Elkanah, were doorkeepers for the ark,.... Either while it was at Kirjathjearim, and at Obededom's house; or rather after it was put in the tabernacle David had prepared for it; though it may be best of all to understand it, that those, as it was carrying, went before it, to keep the people from pressing to it, and gazing on it.
Berechiah and Elkanah were doorkeepers--who marched immediately in front, while Obed-edom and Jeiel went in the rear, of the ark.