Re: open database on read only file system

From: Scott Whitney <scott(at)journyx(dot)com>
To: xujian <jamesxu(at)outlook(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: open database on read only file system
Date: 2016-10-07 20:06:09
Message-ID: BY1PR11MB03906B5B3592576B3D4491F1A7C60@BY1PR11MB0390.namprd11.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

To my knowledge, it is not, no.

The FS must be read/write.

What I would do in this situation is to migrate it to a test/new system where no one can access it and bring it up r/w.

Or set up streaming replication. That gives you select-only.

________________________________
From: pgsql-admin-owner(at)postgresql(dot)org <pgsql-admin-owner(at)postgresql(dot)org> on behalf of xujian <jamesxu(at)outlook(dot)com>
Sent: Friday, October 7, 2016 2:43 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] open database on read only file system

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 system
LOCATION: mdopen, md.c:609
===============

Does anyone know if there is anyway to run database on read-only file system? thanks

James

Journyx, Inc.
7600 Burnet Road #300
Austin, TX 78757
www.journyx.com

p 512.834.8888
f 512-834-8858

Do you receive our promotional emails? You can subscribe or unsubscribe to those emails at http://go.journyx.com/emailPreference/e/4932/714/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message xujian 2016-10-07 21:46:02 Re: open database on read only file system
Previous Message xujian 2016-10-07 19:43:47 open database on read only file system