pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14451: PostgreSQL server on iscsi disks
2+ messages / 2 participants
[nested] [flat]

* BUG #14451: PostgreSQL server on iscsi disks
@ 2016-12-06 15:07  tim.klicks@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: tim.klicks@gmail.com @ 2016-12-06 15:07 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14451
Logged by:          Tim Klicks
Email address:      tim.klicks@gmail.com
PostgreSQL version: 9.6.1
Operating system:   RHEL 7.x and its derivatives
Description:        

Hej all,

I just installed a RHEL 7.3 server and installed the latest 9.6.1 rpms from
your download area.

After this, I have initialized the database, shut it down and moved the 
/var/lib/pgsql/9.6 folder to an iscsi volume attached to the server.

After a reboot, the postgresql server is not coming up, although the
filesystem has been mounted.

I digged a bit into this issue and found a solution and maybe a possible
"bug".

Here is the normal postgresql-9.6.service file:
.
.
.
[Unit]
Description=PostgreSQL 9.6 database server
After=syslog.target
After=network.target
.
.
.

I have now changed it to include remote-fs.target, as follows:
.
.
.
[Unit]
Description=PostgreSQL 9.6 database server
After=syslog.target
After=network.target
After=remote-fs.target
.
.
.

Now, the database is coming up as systemd knows, that the postgresql service
has to wait for the remote-fs.target to finish.

As mentioned, I am not sure if this is a bug or not, but it would be great
if you could include the remote-fs.target dependency into the
postgresql-9.6.service file.

Best Regards,
Tim.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14451: PostgreSQL server on iscsi disks
@ 2016-12-06 15:50  Tom Lane <tgl@sss.pgh.pa.us>
  parent: tim.klicks@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-12-06 15:50 UTC (permalink / raw)
  To: tim.klicks@gmail.com; +Cc: pgsql-bugs

tim.klicks@gmail.com writes:
> As mentioned, I am not sure if this is a bug or not, but it would be great
> if you could include the remote-fs.target dependency into the
> postgresql-9.6.service file.

I'm fairly certain this was an intentional omission.  The normal
configuration does not put the database on a remote filesystem,
so adding this dependency would simply delay database startup
longer than necessary, and maybe even uselessly stop it from
coming up at all if there are problems on some remote filesystem.
The expectation is that if you rearrange things to store the DB
remotely, you should adjust the service file to match.  (Perhaps
that could be documented better, though.)

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-12-06 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-06 15:07 BUG #14451: PostgreSQL server on iscsi disks tim.klicks@gmail.com
2016-12-06 15:50 ` Tom Lane <tgl@sss.pgh.pa.us>

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