Peter Pett's Commentary on the Bible
2 Samuel 6:17
‘ And they brought in the ark of YHWH, and set it in its place, in the midst of the tent that David had pitched for it, and David offered burnt-offerings and peace-offerings before YHWH.'
At last their destination was reached without any further incident. It was the Tent which David had had set up, probably modelled on the Tabernacle. And into that Tent they bore the Ark, still covered, and put it in the equivalent of the Holy of Holies (the Most Holy Place). It was only then that the priests would remove its covering, probably being in almost total darkness, but being careful not to touch the Ark itself. Then travelling poles would remain in the Ark and would protrude slightly through a curtain into the outer sanctuary, while they themselves departed from the Most Holy Place never to enter it again. After that was accomplished many burnt offerings and peace offerings were offered before YHWH. This would be done by the priests who were allocated to the task. (David neither pitched the tent, nor offered up the burnt offerings and peace offerings. It would all have been done for him on his orders. Compare 1 Kings 3:4 where ‘Solomon' offered a thousand burnt offerings on the altar. If we took that literally it would have kept him busy for quite a few weeks, or even months!).
Note On The Davidic Tent.
This Davidic Tent in Jerusalem was not the Tabernacle, nor was it considered to be the Tabernacle. In fact the ancient Tabernacle had probably been destroyed early in the lifetime of Samuel, otherwise he would have been bound by his mother's oath to remain there and serve within it. The fact that he lived in Ramah and ministered at different places brings this out. But at some stage another Tabernacle was set up (much later) because Ahimelech ministered there (1 Samuel 21). Once, however, Abiathar fled to David for his life and David was settled in Hebron, David would probably set up another Tabernacle (without the Ark) initially at Hebron. It was later then presumably transferred to Gibeon and united with the Tabernacle set up under Saul, where it was in the time of Solomon (1 Kings 3:4). For the situation with regard to the Tabernacle had in fact become pretty complicated. When Saul had slain the priests of Nob the official High Priest who followed Ahimelech was Abiathar his son, descended from Ithamar the fourth son of Aaron, and he had fled to David with the ephod. Thus many would see him as the only one who could establish the Tabernacle. Saul, however, would eventually have had to appoint and have consecrated another High Priest, which was presumably Zadok, descended from Eliezer the third son of Aaron (although he is not actually mentioned until after Saul's death. But it would explain why later there were two High Priests). Both High Priests would probably arrange for worship in tabernacles, but neither would be the true Tabernacle, for that had probably been destroyed by the Philistines (Jeremiah 7:12). That that was so comes out in that Samuel appears to have been relieved from his duty of lifelong service to it which could only have signified that it had been destroyed.
When David was anointed as king over all Israel the two Tabernacles would, undoubtedly eventually be brought together (that was possibly when it moved to Gibeon), and there would therefore be two High Priests, an anomaly partly solved by David as a result of setting up the Tent in Jerusalem. So until the Tabernacle and the Tent in Jerusalem were united in the form of the Temple of Solomon the two tents would operate in parallel, the Tabernacle in Gibeon containing all the ‘original' holy furniture, while the Tent in Jerusalem possessed the Ark which had been lost to the Tabernacle since the time when it was stolen by the Philistines, and then returned, ending up at the house of Abinadab in Kiriath-jearim (1 Samuel Chapter s 5-7). It is probable that Zadok officiated at Gibeon, while Abiathar officiated at Jerusalem in order to be near David.
Abiathar was eventually replaced by his son, who like his grandfather was named Ahimelech (2 Samuel 8:17), and he also officiated in parallel with Zadok. Abiathar's early replacement may have taken place because Abiathar himself had contracted a long term ritual uncleanness or disability (possibly skin-disease) which may have eventually cleared up, for he was still around when David died and Solomon was crowned. He would still be a High Priest because High Priesthood was lifelong, and indeed he is described as ‘a Priest' (a High Priest) in the days of Solomon (1 Kings 4:4), even though not officiating (1 Kings 2:26).
(End of Note.)