The U.S. Secretary of Energy says it may take about six months to restore Iraq 's oil output to pre-war levels of 2.5 million barrels a day .