From: xujian <jamesxu@outlook.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: open database on read only file system
Date: Fri, 7 Oct 2016 15:43:47 -0400
Message-ID: <BAY181-W523DAD585129C574CC0E7DA1C60@phx.gbl> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Hi, Could you please let me know if it is possible to open database on read-only file system?
I have a psotgresql 9.6 cluster, PGDATA folder is on READ-WRITE volume(system volume), user database is created on a table space which is located on another volume(data volume). Now we set the data volume to read only mode, before we changed the mode, I also disabled the auto vacuum, run checkpoint, and vacuum free. We reboot the service, everything was fine until we tried to access the database.===============postgres=# \c userdb;FATAL: could not open file "pg_tblspc/16384/PG_9.6_201608131/16468/2662": Read-only file system===============
we enabled the debug mode, in log file, we saw===============FATAL: 42501: could not open file "pg_tblspc/16384/PG_9.6_201608131/16468/2662": Read-only file systemLOCATION: mdopen, md.c:609===============
Does anyone know if there is anyway to run database on read-only file system? thanks
James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: jamesxu@outlook.com
Subject: Re: open database on read only file system
In-Reply-To: <BAY181-W523DAD585129C574CC0E7DA1C60@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox