Page 2 of 2

Re: Pre-freeze and post-thaw for Hyper-V

Veeam LogoPosted: Mon Feb 06, 2017 2:25 pm
by nakamitchi
v.Eremin wrote:Basically, now you only need two scripts: one freezing db and one unfreezing it, where previously you've had to write a script that executes a job, freezes db, checks job status, unfreeze db based on the results it get and so on.

The mentioned scripts should be set in corresponding job options as pre-freeze, post-thaw scripts.

Thanks.


Sorry, I`m confused..
About what script are you talking ?

I`m using this prefreeze script
Code: Select all
@echo off
if %1 == freeze goto freeze
if %1 == thaw goto thaw
if %1 == freezeFail goto freezeFail

:freeze
Net Stop "Lotus Domino Server (Dnotesdata)"
exit
:thaw
net start "Lotus Domino Server (Dnotesdata)"
exit
:freezeFail
net start "Lotus Domino Server (Dnotesdata)"
exit

Re: Pre-freeze and post-thaw for Hyper-V

Veeam LogoPosted: Tue Feb 07, 2017 10:12 am
by v.Eremin
Specify this script with "freeze" argument as pre-freeze script and with "thaw" argument as post-thaw script. Thanks.

Re: Pre-freeze and post-thaw for Hyper-V

Veeam LogoPosted: Fri Feb 10, 2017 11:12 am
by nakamitchi
v.Eremin wrote:Specify this script with "freeze" argument as pre-freeze script and with "thaw" argument as post-thaw script. Thanks.


Do you mean like this ?

prefreeze
Code: Select all
@echo off
if %1 == freeze goto freeze
if %1 == freezeFail goto freezeFail

:freeze
Net Stop "Lotus Domino Server (Dnotesdata)"
exit
:freezeFail
net start "Lotus Domino Server (Dnotesdata)"
exit


thaw

Code: Select all
@echo off
if %1 == thaw goto thaw
if %1 == thawFail goto thawFail

:thaw goto thaw
Net Stop "Lotus Domino Server (Dnotesdata)"
exit
:thawFail
net start "Lotus Domino Server (Dnotesdata)"
exit

Re: Pre-freeze and post-thaw for Hyper-V

Veeam LogoPosted: Tue Feb 14, 2017 9:45 am
by v.Eremin
That's something what I've meant:

Image

Re: Pre-freeze and post-thaw for Hyper-V

Veeam LogoPosted: Tue Feb 14, 2017 12:07 pm
by nakamitchi
Sorry, thats my fault...I know where is it
I want to ask about my script above. Prefreeze and thaw scripts are correct ?

Re: Pre-freeze and post-thaw for Hyper-V

Veeam LogoPosted: Fri Feb 17, 2017 5:00 pm
by Vitaliy S.
What happens when you execute them manually? If the database freezes, then they are correct.