Pre-freeze and post-thaw for Hyper-V

Hyper-V specific discussions

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

Veeam Logoby nakamitchi » Mon Feb 06, 2017 2:25 pm

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
nakamitchi
Novice
 
Posts: 8
Liked: never
Joined: Wed Dec 14, 2016 7:42 am
Full Name: Sysadminas

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

Veeam Logoby v.Eremin » Tue Feb 07, 2017 10:12 am

Specify this script with "freeze" argument as pre-freeze script and with "thaw" argument as post-thaw script. Thanks.
v.Eremin
Veeam Software
 
Posts: 13725
Liked: 1027 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby nakamitchi » Fri Feb 10, 2017 11:12 am

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
nakamitchi
Novice
 
Posts: 8
Liked: never
Joined: Wed Dec 14, 2016 7:42 am
Full Name: Sysadminas

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

Veeam Logoby v.Eremin » Tue Feb 14, 2017 9:45 am

That's something what I've meant:

Image
v.Eremin
Veeam Software
 
Posts: 13725
Liked: 1027 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby nakamitchi » Tue Feb 14, 2017 12:07 pm

Sorry, thats my fault...I know where is it
I want to ask about my script above. Prefreeze and thaw scripts are correct ?
nakamitchi
Novice
 
Posts: 8
Liked: never
Joined: Wed Dec 14, 2016 7:42 am
Full Name: Sysadminas

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

Veeam Logoby Vitaliy S. » Fri Feb 17, 2017 5:00 pm

What happens when you execute them manually? If the database freezes, then they are correct.
Vitaliy S.
Veeam Software
 
Posts: 19961
Liked: 1145 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov

Previous

Return to Microsoft Hyper-V



Who is online

Users browsing this forum: sergiobentim and 1 guest