[Pacemaker] Pacemaker is initializing the service before mounting the partition

emmanuel segura emi2fast at gmail.com
Fri Mar 8 17:55:05 UTC 2013


You need a order constrain

order fs_after_ms inf: drbd_sistema:promote sistema_fs:start
order pgsql_afterLfs inf: sistema_fs postgresql

Or maybe you can put fs and pgsql in a group, like that you can use a
contrais like this

order foo inf: drbd_sistema:promote myservicegroup:start



2013/3/8 Cristiane França <cristianedefranca at gmail.com>

> Hi,
> My cluster is presenting error on startup of the service postgresql
> because this service is being initialized before mounting the partition
> /sistema.
>
> How can I configure Pacemaker to start the Postgresql only after mounting
> the partition /sistema?
>
>
> My server configuration:
>
> primitive drbd_sistema ocf:linbit:drbd \
>         params drbd_resource="sistema" \
>         op monitor interval="15s"
> primitive sistema_fs ocf:heartbeat:Filesystem \
>         params device="/dev/drbd2" directory="/sistema" fstype="ext4"
>
>
> ...
>
> primitive postgresql ocf:heartbeat:pgsql \
>         params pgctl="/usr/bin/pg_ctl" psql="/usr/bin/psql" start_opt=""
> pgdata="/sistema/pgsql/data/" config="/sistema/pgsql/data/postgresq
> l.conf" pgdba="postgres" \
>         op start interval="0" timeout="120s" \
>         op stop interval="0" timeout="120s" \
>         op monitor interval="30s" timeout="30s" depth="0" \
>         meta target-role="Started"
>
>
>
> Regards,
> Cristiane
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>


-- 
esta es mi vida e me la vivo hasta que dios quiera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130308/e4d7e2d0/attachment.htm>


More information about the Pacemaker mailing list