收起左侧

存储空间挂载失败,数据库读写错误

5
回复
899
查看
[ 复制链接 ]

3

主题

4

回帖

0

牛值

江湖小虾

2025-2-27 23:12:48 显示全部楼层 阅读模式

[i=s] 本帖最后由 zxjwwwh 于 2025-2-27 23:13 编辑 [/i]<br /> <br />

设备环境:(物理机、局域网、系统版本:0.8.38/0.8.39)

BUG现象:

  • 1.存储空间挂载失败,数据库读写错误()

出现频率:(必现)

联系方式:(FnOS186群-呼呼)

系统日志报错:日志文件下载

failed to start daemon: error while opening volume store metadata database (/vol1/docker/volumes/metadata.db): open /vol1/docker/volumes/metadata.db: operation not permitted

系统空间占用:

Filesystem               Size  Used Avail Use% Mounted on
udev                     7.8G     0  7.8G   0% /dev
tmpfs                    1.6G   19M  1.6G   2% /run
/dev/sda2                 59G   19G   38G  33% /
tmpfs                    7.8G   12K  7.8G   1% /dev/shm
tmpfs                    5.0M     0  5.0M   0% /run/lock
efivarfs                 128K   60K   64K  49% /sys/firmware/efi/efivars
/dev/sda1                 93M  5.9M   87M   7% /boot/efi
1000-1-0e6c7671{Q1VxD}:  1.0P     0  1.0P   0% /vol02/1000-1-0e6c7671
tmpfs                    1.6G     0  1.6G   0% /run/user/0

sshot-1.png

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

3

主题

4

回帖

0

牛值

江湖小虾

2025-3-3 17:56:09 楼主 显示全部楼层
已解决:
1.建议先检查数据库服务是否正常,如果postgresql数据库没有正常启动,修复一下就能正常挂载空间了
systemctl status postgresql
systemctl stop postgresql
systemctl start postgresql

2.postgresql启动命令,注意要先切换用户(su - postgres)
/usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/15/main -c config_file=/etc/postgresql/15/main/postgresql.conf

3.开机启动服务
/etc/systemd/system/multi-user.target.wants/postgresql.service

4.附目录权限

  1. /etc/postgresql-common/    (root/root/0755)
  2. /etc/postgresql/                 (postgres/postgres/0755)
  3. /etc/postgresql/15/main     (postgres/postgres/0755)
  4.       |--conf.d                     (postgres/postgres/0755)
  5.       |--pg_hba.conf            (postgres/postgres/0640)
  6.       |--pg_ident.conf          (postgres/postgres/0640)
  7.       |--其它文件                 (postgres/postgres/0644)
复制代码


先切换用户 su - postgres  详情 回复
2025-4-7 13:13
root@lthiss:~# /usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/15/main -c config_file=/etc/postgresql/15/main/postgresql.conf "root" execution of the PostgreSQL server is not permitted. The  详情 回复
2025-3-31 08:22
root@lthiss:~# systemctl status postgresql ● postgresql.service - PostgreSQL RDBMS Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; preset: enabled) Active: active (exited)  详情 回复
2025-3-31 08:13

71

主题

9693

回帖

0

牛值

管理员

2025-3-3 16:55:03 显示全部楼层
https://club.fnnas.com/forum.php?mod=viewthread&tid=14695可以参考链接强制挂载把数据转移了重建存储空间

0

主题

3

回帖

0

牛值

江湖小虾

2025-3-31 08:13:14 显示全部楼层
zxjwwwh 发表于 2025-3-3 17:56
已解决:
1.建议先检查数据库服务是否正常,如果postgresql数据库没有正常启动,修复一下就能正常挂载空间 ...

root@lthiss:~# systemctl status postgresql
● postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; preset: enabled)
     Active: active (exited) since Mon 2025-03-31 07:52:12 CST; 18min ago
    Process: 1182 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 1182 (code=exited, status=0/SUCCESS)
        CPU: 1ms

Mar 31 07:52:12 lthiss systemd[1]: Starting postgresql.service - PostgreSQL RDBMS...
Mar 31 07:52:12 lthiss systemd[1]: Finished postgresql.service - PostgreSQL RDBMS.

数据库服务是不是一启动就被关了?

0

主题

3

回帖

0

牛值

江湖小虾

2025-3-31 08:22:09 显示全部楼层
zxjwwwh 发表于 2025-3-3 17:56
已解决:
1.建议先检查数据库服务是否正常,如果postgresql数据库没有正常启动,修复一下就能正常挂载空间 ...

root@lthiss:~# /usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/15/main -c config_file=/etc/postgresql/15/main/postgresql.conf
"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise.  See the documentation for
more information on how to properly start the server.

好像也启动不成功

3

主题

4

回帖

0

牛值

江湖小虾

2025-4-7 13:13:40 楼主 显示全部楼层
zxjwwwh 发表于 2025-3-3 17:56
已解决:
1.建议先检查数据库服务是否正常,如果postgresql数据库没有正常启动,修复一下就能正常挂载空间 ...

先切换用户
su - postgres
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则