rsync backup Part4
It appears we’ve got a problem with a UPS and my server has been rebooting unexpectedly. I’ve switched which servers were plugged into which UPS and thus diagnosed the problem. But this caused an error in the backup script that was supposed to be handled. I’m connecting Server1 to Server2 via iSCSI, and the script is supposed to check to see if the iSCSI is initiated properly and if not, it attempts to login to the iscsi target via another script I’ve written. The problem was I didn’t wait long enough for the iscsilogin script to finish, so the iSCSI didn’t initialize, thus the backup partition couldn’t mount, and the backup failed. So the simple fix is to change the line:
sleep 2
to:
sleep 5
Made the change, ran the script and all was well. FYI I tested it again this morning. I shut down our PDC VM on Server 1, then turned on the PDC synced via rsync –inplace using my script on Server 2 and then logged in via my workstation, and everything worked as it was supposed to.
