Discussions specific to the Microsoft Hyper-V hypervisor
Post Reply
mark14
Novice
Posts: 9
Liked: 1 time
Joined: Nov 23, 2018 9:38 am
Full Name: mark14
Contact:

PreFreeze and PostThaw linux script problem

Post by mark14 »

Hello,

I have problem with linux scripts. I setup

https://ibb.co/mJkpcgb

But I got error:
https://ibb.co/1b9hRGb

pre-freeze script finished execution with exit code -1
post-thaw script finished execution with exit code -1


As you can see scripts executed successfully on machine with exit code 0 which means everything is ok

https://ibb.co/1XLJ1Zz
https://ibb.co/dB5jXxw

It is simply mysqldump script from:
https://bp.veeam.expert/applications/mysql (Database Online Dump During Backup Operations).

PTide
Product Manager
Posts: 5585
Liked: 533 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: PreFreeze and PostThaw linux script problem

Post by PTide »

Hi,

Would you add some additional debugging lines into the script for troubleshooting purposes, please? Those lines should simply "echo" at what step the script is currently in to some local file on the target machine so you can check at what line it fails. Also, as far as I can see, the script is piping mysqldump output to logger:

Code: Select all

echo "$0 : error, no mysql authentication method set" | logger
That is, you might want to check there as well.

Thanks!

mark14
Novice
Posts: 9
Liked: 1 time
Joined: Nov 23, 2018 9:38 am
Full Name: mark14
Contact:

Re: PreFreeze and PostThaw linux script problem

Post by mark14 »

As I said before, script execution has been successed.

Code: Select all

Dec  6 14:21:33 acco-server root: ./backup2.sh executing mysqldump
Dec  6 14:21:33 acco-server root: ./backup2.sh : mysqldump suceeded
And of course mysql dump has been created in /tmp

Code: Select all

root@server:/tmp# du -hsc *
18M     mysql_dump.sql
Weirder thing is that when I create very simply script:

Code: Select all

#!/bin/sh
touch /root/testfile.txt
exit 0
I also get the same error exit code -1

P.S
Syslog file after running job:

Code: Select all

Dec  6 14:28:37 acco-server kernel: [484304.787517] hv_storvsc vmbus_0_2: cmd 0x2a scsi status 0x2 srb status 0x82
Dec  6 14:28:37 acco-server kernel: [484304.787559] hv_storvsc vmbus_0_2: stor pkt ffff88003b19b040 autosense data valid - len 18
Dec  6 14:28:37 acco-server kernel: [484304.787588] storvsc: Sense Key : Unit Attention [current]
Dec  6 14:28:37 acco-server kernel: [484304.787619] storvsc: Add. Sense: Changed operating definition
Dec  6 14:28:37 acco-server kernel: [484304.788044] sd 2:0:0:0: Warning! Received an indication that the operating parameters on this target have changed. The Linux SCSI layer does not automatically adjust these parameters.

PTide
Product Manager
Posts: 5585
Liked: 533 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: PreFreeze and PostThaw linux script problem

Post by PTide »

Well, the syslog that you've posted does not seem to be related to the script, those are kernel logs. You should search for 'mysql' keyword instead. Reagrding the simple script returning '-1' - please check whether the credentials that you use to process the VM are sufficient.

Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests