zoukankan      html  css  js  c++  java
  • 【问题排查】PostgreSQL could not read symbolic link "pg_tblspc/tbsberkly": Invalid argument

    [postgres@zehost ~]$ pg_rman backup -b full -U postgres -Z -h 127.0.0.1 -p 5432
    Password for user postgres:
    INFO: copying database files
    WARNING: could not read symbolic link "pg_tblspc/tbsberkly": Invalid argument
    WARNING: could not read symbolic link "pg_tblspc/tbsmem": Invalid argument
    INFO: copying archived WAL files


    [postgres@zehost pg_tblspc]$ cd /data/pgsql_5432/data/pg_tblspc
    [postgres@zehost pg_tblspc]$ ll
    total 8
    lrwxrwxrwx 1 postgres postgres 33 Sep 3 21:54 16413 -> /data/pgsql_5432/tbsdata/tbs_berkley
    lrwxrwxrwx 1 postgres postgres 33 Sep 3 21:54 16415 -> /data/pgsql_5432/tbsdata/tbs_mem

    drwx------ 2 postgres postgres 4096 Sep 3 21:54 tbsberkly
    drwx------ 2 postgres postgres 4096 Sep 3 21:54 tbsmem

    [postgres@zehost pg_tblspc]$ ll tbsberkly/
    total 0
    [postgres@zehost pg_tblspc]$ ll tbsmem/
    total 0
    [postgres@zehost pg_tblspc]$ mv tbsberkly /tmp/
    [postgres@zehost pg_tblspc]$ mv tbsmem /tmp/
    [postgres@zehost pg_tblspc]$ ll
    total 0
    lrwxrwxrwx 1 postgres postgres 33 Sep 3 21:54 16413 -> /data/pgsql_5432/tbsdata/tbs_berkley
    lrwxrwxrwx 1 postgres postgres 33 Sep 3 21:54 16415 -> /data/pgsql_5432/tbsdata/tbs_mem
    lrwxrwxrwx 1 postgres postgres 36 Sep 3 21:54 20806 -> /data/pgsql_5432/tbsdata/tbs_pgbench

    [postgres@zehost ~]$ pg_ctl stop
    waiting for server to shut down.... done
    server stopped
    [postgres@zehost ~]$ pg_ctl start
    waiting for server to start....2020-09-26 21:36:14.413 CST [6673] LOG: starting PostgreSQL 12.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit
    2020-09-26 21:36:14.414 CST [6673] LOG: listening on IPv4 address "0.0.0.0", port 5432
    2020-09-26 21:36:14.414 CST [6673] LOG: listening on IPv6 address "::", port 5432
    2020-09-26 21:36:14.416 CST [6673] LOG: listening on Unix socket "/data/pgsql_5432/.s.PGSQL.5432"
    2020-09-26 21:36:14.574 CST [6673] LOG: redirecting log output to logging collector process
    2020-09-26 21:36:14.574 CST [6673] HINT: Future log output will appear in directory "/data/pgsql_5432/logs".
    done
    server started

  • 相关阅读:
    3号团队-团队任务4:每日例会(2018-11-28)
    10号团队-团队任务5:项目总结
    课后作业4-个人总结
    团队任务4-每日例会(2018-12-6)
    团队任务4-每日例会(2018-12-5)
    团队任务4-每日例会(2018-12-4)
    团队任务4-每日例会(2018-12-3)
    团队任务4:每日例会(2018-11-30)
    团队任务4:每日例会(2018-11-28)
    团队任务4:每日例会(2018-11-29)
  • 原文地址:https://www.cnblogs.com/elontian/p/13736988.html
Copyright © 2011-2022 走看看