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

  • 相关阅读:
    类方法代码重构寻找坏味道
    迭代二分查找二分查找
    系统牛逼[置顶] 使用RAMP理解内在动机 Understanding Intrinsic Motivation with RAMP
    对象服务器Webservices获取天气
    手机服务器Android消息推送(二)基于MQTT协议实现的推送功能
    概率小数2013年阿里巴巴暑期实习招聘笔试题目(不完整,笔试时间:2013.5.5)
    像素颜色JavaFX示例简易图片处理工具
    算法队列SPFA算法详解
    选择文件Eclipse制作jar包
    nullnull推箱子
  • 原文地址:https://www.cnblogs.com/elontian/p/13736988.html
Copyright © 2011-2022 走看看