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

  • 相关阅读:
    shell脚本计算斐波那契数列
    SQL查询出某字段不等于某值的行(其中有为NULL的字段)
    如何修改和关闭1433端口
    SqlServer 数据库日志无法收缩处理过程
    人生的抉择—aspx、ashx、asmx文件处理请求效率比较
    HTTP 错误 500.21
    如何使用快照来初始化化请求订阅
    怎么改svn的登陆账号
    更换用installshield打包生成exe文件的图标【转】
    win10下怎么在桌面创建IIS快捷方式
  • 原文地址:https://www.cnblogs.com/elontian/p/13736988.html
Copyright © 2011-2022 走看看