Due to power failure, my server running Postgres database got crashed.
Now when I am trying to start the database, I am getting the below error.
< 2020-01-04 11:40:39.409 CET > LOG: database system shutdown was interrupted; last known up at 2020-01-04 11:39:52 CET
< 2020-01-04 11:40:39.655 CET > LOG: database system was not properly shut down; automatic recovery in progress
< 2020-01-04 11:40:39.657 CET > LOG: redo starts at 1A2/8F237FF8
< 2020-01-04 11:40:39.658 CET > LOG: invalid record length at 1A2/8F240298: wanted 24, got 0
< 2020-01-04 11:40:39.658 CET > LOG: redo done at 1A2/8F240270
< 2020-01-04 11:40:39.658 CET > LOG: last completed transaction was at log time 2020-01-03 07:21:31.432701+01
< 2020-01-04 11:40:39.685 CET > FATAL: could not fsync file "pg_tblspc/16387/PG_9.6_201608131/48151/51110": Input/output error
< 2020-01-04 11:40:39.687 CET > LOG: startup process (PID 33321) exited with exit code 1
< 2020-01-04 11:40:39.687 CET > LOG: aborting startup due to startup process failure
< 2020-01-04 11:40:39.709 CET > LOG: database system is shut down
is there any way to get it running.
could not fsync file "pg_tblspc/16387/PG_9.6_201608131/48151/51110": Input/output error
You have a disk subsystem problem. This is a server issue, not a programming question, and thus is off-topic. You probably lost a hard drive or raid array.