See steps Recover failed YB-TServer and YB-Master | YugabyteDB Docs which has instructions for both yb-tserver and yb-master
See steps Recover failed YB-TServer and YB-Master | YugabyteDB Docs which has instructions for both yb-tserver and yb-master