Californians endured a weekend of stepped-up restrictions aimed at keeping them home as much as possible while health officials got ready for a week with a possible dramatic surge in coronavirus cases.

The mayor of Los Angeles warned that that families should prepare for isolating themselves at home in ways so they will not infect others in their households.

Anticipating a surge in COVID-19 cases this week that may overwhelm healthcare systems, Los Angeles Mayor Eric Garcetti urged people who test positive not to rush to hospitals unless they have serious symptoms. Instead, he asked the city’s 4 million residents to think about how to separate themselves from family members while quarantining at home.

“Don’t just take social distancing seriously, I hope each and every one of us take isolation seriously too,” Garcetti said Sunday.

He acknowledged that physical distancing may be hard for those in tight quarters and said local officials were working to set up quarantine spaces for them.

National Guard troops set up beds in the sprawling Los Angeles Convention Center, converting it from a site that normally hosts meetings, trade shows and exhibitions into a field hospital.

Testing among the state’s 40 million residents has stepped up significantly after a slow start. Officials have warned the increase will reveal an expanding number of cases. A Sunday evening tally by Johns Hopkins University found more than 6,200 cases statewide and at least 130 deaths.

California was stocking up on ventilators and fixing outdated models in anticipation of shortages. Gov. Gavin Newsom said Saturday the federal government sent 170 broken ventilators from a national stockpile. Engineers at Bloom Energy, a fuel cell maker in San Jose, were fixing them and sending them to hospitals.

Meanwhile a massive hospital ship docked at the Port of LA on Friday to care for non-coronavirus patients and free up beds elsewhere in the county. And Long Beach is working to reopen the 185-bed Community Hospital in East Long Beach.

People throughout Southern California were kept off beaches and hiking trails. A stay-at-home order restricts people to all but essential outside activities such as buying food and outdoor exercise near home that doesn’t put them within 6 feet of others.

Officials closed California’s 280 state parks to vehicular traffic on Sunday, citing overcrowding. The Santa Monica Mountains National Recreation Area also closed its extensive trail system in Los Angeles County.

“This was the first time that we saw across Southern California our iconic beaches and trailheads, the parks that define who we are, the views that greet us at our best and worst moments weren’t there except in our imaginations,” Garcetti said.

Long Beach issued new restrictions on Saturday, including closing all public beaches, trails, sports courts, golf courses, dog parks, playgrounds, skate parks, public park and public beach parking lots and picnic areas.

The amended order came after officials said residents were still seen gathering in groups in public places.

“I ask that you help us by not going to our beaches and not going to our hiking trails, at least for the next few weeks,” Barbara Ferrer, head of the county health department, said last week. “… Many of our parks do remain open so there are opportunities for people to go outside and enjoy our beautiful county, but only if we practice social distancing.”