[Pacemaker] Pacemaker is initializing the service before mounting the partition
Cristiane França
cristianedefranca at gmail.com
Fri Mar 8 19:14:14 UTC 2013
Hi Emmanuel,
Thank you!
Cristiane.
On Fri, Mar 8, 2013 at 2:55 PM, emmanuel segura <emi2fast at gmail.com> wrote:
> 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
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130308/ba81db98/attachment.htm>
More information about the Pacemaker
mailing list