I Solved my problem.
It was residing in ManageVE OCF resource agent.
Actually the problem is in this check of the monitor function :
if [[ $veexists != "exist" ]]; then
ocf_log err "vzctl status $VEID returned: $VEID does not exist."
return $OCF_ERR_INSTALLED
fi
The problem is that in a configuration like mine where each VE has its
files on a separate DRBD device , to have an active/active VEs setup,
this kind of check is misleading to HB. This is because of
[EMAIL PROTECTED] ~]# vzctl status 101
VEID 101 deleted unmounted down
actually VZCTL does not see the VE Files and reports the VE as deleted.
I did not found a straight way to solve the problem cause vzctl reports
as deleted any VEID for wich it does not find the files without checking
for the presence of the VE config file.
At the moment i decided to "rely on myself" and simply disabled the
return in that TEST ... i will look for a better way to achieve the same
beahviour.
Cheers
FC
Francesco Ciocchetti wrote:
> Actually is not misbeahving.
>
> ManageVE (RA for OpenVZ virtual machines) relys on the first, second and
> third resources in the group to have access on his configuration and VM
> files.
> the first is a drbddisk resource that set to primary the specific disk
> for this group.
> the second is a Filesystem resource that mount the drbd device on the
> right mount point
> the third is a drbdlinks resource that creates some necessary links to
> let the ManafeVE resource works correctly.
>
> My problem is that when the monitor is performed on HEARTBEAT startup
> none of the resource has been already started so the ManageVE monitor
> action cannot be succesfull in such an environment.
>
> Is normal that i don't have this problem on a HB 2.0.8 cluster?
> Can i disable such a beavhiour for HB?
>
> thanks
> FC
>
> Andrew Beekhof wrote:
>
>> this is supposed to happen - we're checking to make sure it's not
>> already running.
>>
>>
>> looks like ManageVE is misbehaving:
>>
>> ManageVE[15087]: 2007/08/14_17:14:42 ERROR: vzctl status 101
>> returned: 101 does not exist.
>> and
>> crmd[15040]: 2007/08/14_17:14:42 ERROR: process_lrm_event: LRM
>> operation VE101_Cokcpit_monitor_0 (call=5, rc=5) Error not installed
>> _______________________________________________
>> Linux-HA mailing list
>> [email protected]
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>>
>>
>>
>
>
--
==============================================
Francesco Ciocchetti ([EMAIL PROTECTED])
Network & Security
Kyneste - Piattaforme ICT
"Società appartenente al Gruppo Bancario Capitalia e
sottoposta all’attività di direzione e coordinamento di Capitalia S.p.A."
Via Mario Bianchini 68, 00142 Roma
T.[+39] 06.98402.1 F. [+39] 06.98402.300
http://www.kyneste.com/
==============================================
Questo messaggio può contenere informazioni di carattere riservato e
confidenziale. Qualora non foste i destinatari, vogliate immediatamente
informarci con lo stesso mezzo ed eliminare il messaggio, con gli eventuali
allegati, senza trattenerne copia. Qualsivoglia utilizzo non autorizzato del
contenuto di questo messaggio costituisce violazione dell'obbligo di non
prendere cognizione della corrispondenza tra altri soggetti.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems