How to fix status: red in unassigned shards?

Please stop posting the same thread, you have asked this in 3 different ones - How to Fix Unallocated Shards?