Why is replica shard in UNASSIGNED state if it exists on disk?

That's bad, see Important Configuration Changes | Elasticsearch: The Definitive Guide [2.x] | Elastic

How did you enable allocation after the restart?