* Harvey sets Texas rainfall record for tropical cyclones
* Motiva shutting largest U.S. refinery -sources
* Almost 20 pct U.S. refining capacity offline
* WTI discount to Brent hits two-year high
* North Atlantic storms history: http://tmsnrt.rs/2gcckz5 (New throughout, updates prices, market activity and refinery capacity offline to reflect Motiva shutdown after settlement)
New York, Aug 29 (Reuters) - U.S. gasoline futures jumped 4 percent while crude prices were mixed on Tuesday after a hurricane shut down more than 19 percent of the country's refining capacity, curbing fuel production and further bloating crude inventories.
Gasoline rose still higher post-settlement, after sources told Reuters that Motiva was shuttering the largest U.S. refinery. That meant at least 3.65 million barrels per day (bpd) of refining capacity was offline, or 19.6 percent of total U.S. capacity, based on company reports and Reuters estimates. The Gulf is home to nearly half of U.S. refining capacity.
"Because that demand is gone thats where the selling pressure in the market is coming from," said Gene McGillian, manager of market research at Tradition Energy. "We have no idea when (the refineries will) come back on, the market is taking a wait and see approach."
U.S. West Texas Intermediate (WTI) crude edged down 13 cents or 0.3 percent to $46.44 a barrel. International Brent crude futures closed up 11 cents or 0.2 percent to $52.00 a barrel. The discount for U.S. WTI versus Brent reached $5.92 a barrel on Tuesday, its widest in more than two years. <CL-LCO1=R>
U.S. gasoline futures jumped 4 percent to settle at 1.7833, the highest in more than two years.
After settlement, sources told Reuters that Motiva Enterprises was shutting down the nation's largest refinery due to flooding. Motiva has already been reducing production at the 603,000 barrel per day (bpd) Port Arthur, Texas, refinery as flood waters continued to inundate the area.
The Motiva shutdown sent after-settlement gasoline prices up to 1.8180.
Prices would be higher if not for record refinery runs in 2017, said Matt Smith, director of commodity research at Clipperdata.
"They're not spiking as much as they would have had we not had the backdrop of plentiful inventories," said Smith, noting gasoline supplies sit at a five year high for this time of year.
Sources told Reuters ExxonMobil was shutting its Beaumont, Texas refinery.
Some refineries were preparing for restarts, but heavy rains were expected to last through Wednesday, adding to catastrophic flooding.
The storm has set a rainfall record for tropical cyclones in Texas, the National Weather Service said.
More than 18 percent of oil production in the Gulf of Mexico was shut in, the U.S. Department of the Interior's Bureau of Safety Environmental Enforcement said. Still, tropical Storm Harvey, which was downgraded from a hurricane, hit refiners harder.
After settlement, industry group the American Petroleum Institute said its data showed that last week U.S. crude stocks fell, while gasoline inventories increased and distillate stocks drew.
Crude markets were also eyeing disruptions in Libya and Colombia. Yet crude remains in ample supply. Jefferies bank said it was lowering its fourth-quarter Brent oil price estimates to $55 a barrel from $60 and its 2018 forecast to $57 from $64.
(Additional reporting by Libby George in London, Henning Gloystein in Singapore; Editing by Dale Hudson and David Gregorio)