Carroll B. Harvey, a longtime associate of Mayor Marion Barry who was one of the new mayor's first administrative appointments in January 1979, will resign as director of the city's Department of General Services on Nov. 1, the city announced yesterday.

The city's announcement of Harvey's departure stated that personal obligations require the 47-year-old administrator to leave his $50,112-a-year District government job to return to a more lucrative private consulting business.

However, a Barry administration source, who asked not to be named, said that Harvey had a strained relationship with City Administrator Elijah B. Rogers, particularly over Harvey's role as head of the general services department.

Harvey believes that he should have more autonomy to run the department, the source said, while Rogers keeps a tight reign on all the city government's department heads, including Harvey.

Harvey yesterday downplayed the reports of tension. "If a guy is in this kind of job and there are no tensions," he said, "then he's not doing what he's supposed to do."

He said he is leaving the city government primarily because he wants to make more money to support his large family, which includes six children. He said he intends to reactivate planning, development and civil engineering firms that he abandoned when he joined the city.

In his post as head of the Department of General Services, he is, among other things, responsible for District government maintenance, procurement, and security services.

Harvey said yesterday that when he joined the Barry administration on Jan. 2, 1979, as assistant city administrator for operations, he committed himself to stay for one or two years. In the end, after remaining for two years and nine months, he said he decided to leave now because if he stayed longer, he would feel obliged to stay through Barry's term. The term ends at the end of 1982.

Despite Harvey's close association with Barry -- he is a former executive director of Youth Pride Inc., the self-help group Barry cofounded -- he failed to exert the kind of influence he would have liked to wield in Barry's administration, sources said.

For example, he lobbied for creation of a public works "super agency" which would have combined several D.C. government departments and operated under his supervision, according to sources. But the idea fell by the wayside last year during the city's budget crisis.

More recently, a knowledgeable source said, Harvey, as the city's chief procurement officer, was not kept fully abreast of negotiations being carried out by other officials -- notably Rogers and Department of Environmental Services chief William B. Johnson -- over a $60 million contract to dispose of the city's sewage sludge. When the sludge contract was finally signed recently with Fuel Recovery Corp., a Beltsville firm, Harvey was out of town.

In submitting his resignation, Harvey pledged to support Barry next year should he seek reelection.