MONZA, Italy — Sebastian Vettel posted the fastest time in the second practice session for the Italian Grand Prix on Friday, with Ferrari teammate Kimi Raikkonen second.

Vettel, who ended up spinning out into the tire barrier at the Parabolica, was .270 seconds quicker than Raikkonen and .287 clear of Formula One leader Lewis Hamilton.

The four-time world champion from Germany went back to the garage to have his car checked for damage and was able to resume the session.

Sauber driver Marcus Ericsson crashed spectacularly at the start of the practice session but was not seriously injured. The Swede lost control of his car at 220 mph and crashed into the barriers on the left of the track before rolling over four times.

Ericsson was able to get out of the car unaided. He then walked down pit lane and smiled to the cheering fans.

Force India driver Sergio Perez set the fastest time in the first practice in a session affected by rain. Perez was .550 seconds quicker than Raikkonen and .593 clear of teammate Esteban Ocon in an unlikely top three.

Hamilton was 11th, 2.546 slower than Perez after doing only six laps in his Mercedes to the Mexican's 18. Vettel missed most of the running following a gearbox change on his Ferrari. The German was 17th, 3.867 slower than Perez after completing only four laps.

More rain is forecast for the third and final practice on Saturday morning but it is expected to be dry for qualifying and the race on Sunday.

Vettel won the Belgian GP last weekend to trim Hamilton's overall lead to 17 points.

Ferrari last won its home grand prix in 2010, with Fernando Alonso driving.

Vettel became Formula One's then-youngest race winner when he triumphed in Monza in 2008 with Toro Rosso. He also won the Italian Grand Prix in his 2011 and 2013 title years with Red Bull.

Hamilton has won four of the past six races in Monza and would tie Michael Schumacher's record of five Italian GP victories with another victory on Sunday.