India and Sri Lanka formally inked an agreement to rebuild a strategic oil farm deal in the island nation's eastern port district of Trincomalee.