• 【问题排查】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

  • 相关阅读:
    excel
    AWS学习之EC2
    约瑟夫问题
    centos7 系統vps安裝mysql5.6及設置本地遠程連接筆記
    搜索框的测试checklist
    产品把整个项目组拉走去创业,这是什么神操作
    python基础-python函数参数为print语句时的输出
    python基础学习笔记-切片难点
    session 、cookie、token的区别(转)
    robot framework python3环境下学习笔记(1)——安装robot framework
  • 原文地址:https://www.cnblogs.com/elontian/p/13736988.html
Copyright © 2020-2023  润新知