Bacula-users

Re: [Bacula-users] Cancelling job on PASSIVE node

2009-10-01 04:37:16
Subject: Re: [Bacula-users] Cancelling job on PASSIVE node
From: Arno Lehmann <al AT its-lehmann DOT de>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Thu, 01 Oct 2009 10:33:02 +0200
Hello,

01.10.2009 10:09, Dajka Tamas wrote:
> Hi,
> 
> Than I should install bconsole on all nodes? Not other way?

There's always another way :-)

As long as you can get the status of the node on the DIR machine, you 
can run the script there.

Alternatively, run the script on the nodes, but pass the bconsole 
command to a (probably ACL-limited) bconsole on another machine.

Arno

> Thanks,
> 
>         Tom
> 
> ________________________________________
> Feladó: Arno Lehmann [al AT its-lehmann DOT de]
> Küldve: 2009. október 1. 9:02
> Címzett: bacula-users AT lists.sourceforge DOT net
> Tárgy: Re: [Bacula-users] Cancelling job on PASSIVE node
> 
> Hi,
> 
> 30.09.2009 21:22, Dajka Tamas wrote:
>> If I return non-zero, than it'll fail and not cancel, no? If fails,
>> than it'll try again, etc, and I'll get failing emails, which I not
>> want
> 
> No, it will fail the job. To cancel, you'd need a run before job
> script more like this one (to be called with the jobId as parameter):
> 
> if PASSIVE ; then
>    (sleep 1; echo "cancel jobid=$1" | bconsole)&
>    echo "JobId $1 will be canceled due to it running on the passive node!"
>    sleep 2
> fi
> exit 0
> 
> which is completely untested, and parameter checking needs to be
> added. Also I don't know what happens if the job is canceled while the
> job script is still running - you'll have to try that yourself.
> 
> Arno
> 
>> ________________________________________ Feladó: Arno Lehmann
>> [al AT its-lehmann DOT de] Küldve: 2009. szeptember 30. 20:34 Címzett:
>> bacula-users AT lists.sourceforge DOT net Tárgy: Re: [Bacula-users]
>> Cancelling job on PASSIVE node
>>
>> Hello,
>>
>> 30.09.2009 17:37, Dajka Tamas wrote:
>>> Hi,
>>>
>>> I've a lot of machines running heartbeat and DRBD - the machines
>>> are of course in pairs.
>>>
>>> I want to have a backup on the drbd partitions, but they are only
>>>  mounted on the ACTIVE node. Is it possibe to cancel ( NOT fail )
>>>  the backup job on the passive node somehow? Execute a script
>>> before job and give "cancellation" exit code or something like
>>> this?
>> Yes. Use a script run before - depending on your version of Bacula,
>>  it's either "Client Run Before Job" or the Run Script resource
>> with the proper settings. You need to exit your script with a
>> non-zero return code on the passive node, and zero on the active on
>> - that should be all that's necessary.
>>
>>> I cannot set up an FD on both nodes on the shared IP, because
>>> than the FD won't start on the passive node, since it cannot bind
>>> to the address. Or can I use FDAddress = *:9102 and same
>>> names/pass on both nodes?
>> I don't know... you'll have to try it, or ask someone who knows
>> more about heartbeat-based HA clustering than me :-)
>>
>> Arno
>>
>>> Thanks a lot,
>>>
>>>
>>> Tamas
>>>
>>> ------------------------------------------------------------------------------
>>>  Come build with us! The BlackBerry&reg; Developer Conference in
>>> SF, CA is the only developer event you need to attend this year.
>>> Jumpstart your developing skills, take BlackBerry mobile
>>> applications to market and stay ahead of the curve. Join us from
>>> November 9&#45;12, 2009. Register now&#33;
>>> http://p.sf.net/sfu/devconf
>>> _______________________________________________ Bacula-users
>>> mailing list Bacula-users AT lists.sourceforge DOT net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>> -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück
>> www.its-lehmann.de
>>
>> ------------------------------------------------------------------------------
>>  Come build with us! The BlackBerry&reg; Developer Conference in
>> SF, CA is the only developer event you need to attend this year.
>> Jumpstart your developing skills, take BlackBerry mobile
>> applications to market and stay ahead of the curve. Join us from
>> November 9&#45;12, 2009. Register now&#33;
>> http://p.sf.net/sfu/devconf
>> _______________________________________________ Bacula-users
>> mailing list Bacula-users AT lists.sourceforge DOT net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>>
>>
>>
>> This e-mail and any files transmitted with it are confidential and
>> intended solely for the use of the individual/entity to which they
>> are addressed. If you are not the intended recipient, you are
>> notified that disclosing, copying, distributing or taking any
>> action in reliance on the contents of this information is strictly
>> prohibited. Additionally, please note that communication by e-mail
>> guarantees neither the confidentiality, nor the completeness, or
>> proper receipt of the messages sent. Furthermore, UPC Magyarország
>> Kft., its affiliates and third parties retained by them may
>> monitor, copy, use or forward to third parties any outgoing
>> messages from and incoming messages to this email address.
>>
>> Jelen e-mail és csatolt állományai bizalmasak, és kizárólag a
>> címzett személynek/szervezeti egységnek szólnak. Amennyiben nem Ön
>> a címzett, tájékoztatjuk arról, hogy a tartalmának felfedése,
>> másolása, továbbítása, vagy bármely célból történő felhasználása
>> szigorúan tilos. Megjegyezzük, hogy az e-mail útján történő
>> közlések nem garantálják az elküldött üzenetek bizalmas jellegének
>> és teljességének megőrzését, valamint az üzenetek megfelelő
>> kézbesítését. A fentieken túlmenően, a UPC Magyarorszag Kft., annak
>> kapcsolt vállalkozásai, illetve az általuk megbízott harmadik felek
>> a jelen e-mail címről küldött, vagy arra érkező bármely üzenetet
>> ellenőrizhetnek, lemásolhatnak, felhasználhatnak, vagy harmadik fél
>> részére továbbíthatnak.
>> ------------------------------------------------------------------------------
>>  Come build with us! The BlackBerry&reg; Developer Conference in
>> SF, CA is the only developer event you need to attend this year.
>> Jumpstart your developing skills, take BlackBerry mobile
>> applications to market and stay ahead of the curve. Join us from
>> November 9&#45;12, 2009. Register now&#33;
>> http://p.sf.net/sfu/devconf
>> _______________________________________________ Bacula-users
>> mailing list Bacula-users AT lists.sourceforge DOT net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
> 
> --
> Arno Lehmann
> IT-Service Lehmann
> Sandstr. 6, 49080 Osnabrück
> www.its-lehmann.de
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>