The D.C. City Council voted yesterday to give a pay increase to its own members and to the new mayor, and to provide an annual salary for the first time to school board members.

The pay for council members elected or reelected Nov. 7 would rise next year from $30,017 to $35,000 with the chairman getting $45,000. The pay for the mayor would rise from $52,500 to $60,000. School board members would earn $17,500 with the board president getting $20,000. tr for ad one ad one council

By a rollcall vote of 6 to 4, after a brief but spirited debate, the council approved the increases. They are included in a long-studied bill creating a new personnel system for D.C. employes separate from the U.S. civil service. Final enactment of the bill is expected Oct. 31.

Among provisions in the complex 361-page measure, little noted by council members until yesterday, is one that would let the new mayor remove current department heads from their jobs, while keeping them on the city payroll.

Democratic mayoral nominee Marion Barry has announced a long "hit list" of department heads he has said he would remove. Republican nominee Arthur Fletcher has voiced doubts about such an approach.

Most city department heads now have civil service protection in their jobs. The new measure would not let the mayor fire such employes outright, but would permit them to be transferred to lower-status jobs while keeping their higher pay and accrued benefits.

In a separate action, the council voted to require that all future mayoral nominations of department heads be confirmed by the council - a provision vigorously opposed by outgoing Mayor Walter E. Washington. Current law provides for mayoral appointments without confirmation.

Council action on a D.C. personnel bill was required by Congress when it adopted the city's Home Rule Charter, which went into effect in 1975. Passage of the personnel bill this year is being pushed to provide time to put the system into full effect by a deadline of Jan. 1, 1980.

However, several provisions of the bill would go into effect sooner, including the pay increases that were voted yesterday.

Those increases would go to the new mayor, the incumbent school board and those council members who take office after Jan. 1, 1979 - including six incumbents whose names are on the Nov. 7 ballot.

Until yesterday, the pay increases never had been mentioned out loud at a council session.

John A. Wilson (D-Ward 2), an outspoken maverick whose term has two more years to run, objected and forced a roll call. He said an increase does not square with the city's announced policy of budget austerity.

In the roll call, the higher pay was supported by Jerry A. Moore Jr., (R-At Large), outgoing Council Chairman Sterling Tucker (D), Nadine P. Winter (D-Ward 6), William R. Spaulding (D-Ward 5), David A. Clarke (D-Ward 1) and Arrington Dixon (D-Ward 4), the Democratic nominee for council chairman. Opposed were Wilson, Hilda Mason (Statehood-At-Large), Wilhelminds Rolark (D-Ward 8) and Polly Shackleton (D-Ward 3).

School board members now earn up to $4,000 a year in per diem payments and expense reimbursements, with the board president getting up to $2,500 more. Shackleton sought unsuccessfully to block the new higher salary.

The council approved other bills yesterday that would:

Ban new diplomatic chanceries from residential neighborhoods, carrying restrictions further than those adopted by the D. C. Zoning Commission.

Refund part of the taxes paid this year by owner-occupants of residential properties were assessed at commercial rates. Taxation of such properties would be shifted to the lower residential assessment.