Discussions specific to the Microsoft Hyper-V hypervisor
nakamitchi
Novice
Posts: 8
Liked: never
Joined: Dec 14, 2016 7:42 am
Full Name: Sysadminas
Contact:

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

Post by nakamitchi » 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

v.Eremin
Veeam Software
Posts: 15394
Liked: 1163 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by v.Eremin » 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.

nakamitchi
Novice
Posts: 8
Liked: never
Joined: Dec 14, 2016 7:42 am
Full Name: Sysadminas
Contact:

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

Post by nakamitchi » 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

v.Eremin
Veeam Software
Posts: 15394
Liked: 1163 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

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

Post by v.Eremin » Feb 14, 2017 9:45 am

That's something what I've meant:

Image

nakamitchi
Novice
Posts: 8
Liked: never
Joined: Dec 14, 2016 7:42 am
Full Name: Sysadminas
Contact:

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

Post by nakamitchi » 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 ?

Vitaliy S.
Veeam Software
Posts: 21710
Liked: 1305 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

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

Post by Vitaliy S. » Feb 17, 2017 5:00 pm

What happens when you execute them manually? If the database freezes, then they are correct.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests