This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Grab a logfile from the Slave in HA

Hopefully, one of you knows of a trick with WinSCP or curl or ???

Last night, a client's Slave in 220 Hot-Standby hung during the Up2Date from 9.113 to 9.205, so I've started a Support case with Sophos.  What I was able to see was that the Up2Date log on the Slave was 49MB, yet the file on the Master was ha_utils ssh to get an opportunity to login to the Slave as loginuser.

I don't know how to manipulate WinSCP to enable me to scrape a file from the Slave.  I can curl the file to my ftp server, but I don't know how to get it directly into my workstation without going through my ftp server.

Are there any gurus out there that want to share the secret?

Cheers - Bob


This thread was automatically locked due to age.
Parents
  • From my hazy memory (haven't done much with HA in almost a year)...

    Copy from the slave to the master then off the master with whatever you are already familiar with.


    • Take note of the IP addresses used on the HA interfaces of each system.
    • ssh from master to slave
    • on slave elevate permissions
    • copy (push) from slave to master, example command below


    Example copy, with rsync via ssh.  Change $MASTER_HA_IP and paths/filename(s) as needed:
    rsync -avz --progress /origin/path/optionally_a_specific_file -e ssh loginuser@$MASTER_HA_IP:/home/login/destinationpath/


    Nothing particularly magic about ha_utils (it is a bash script).
Reply
  • From my hazy memory (haven't done much with HA in almost a year)...

    Copy from the slave to the master then off the master with whatever you are already familiar with.


    • Take note of the IP addresses used on the HA interfaces of each system.
    • ssh from master to slave
    • on slave elevate permissions
    • copy (push) from slave to master, example command below


    Example copy, with rsync via ssh.  Change $MASTER_HA_IP and paths/filename(s) as needed:
    rsync -avz --progress /origin/path/optionally_a_specific_file -e ssh loginuser@$MASTER_HA_IP:/home/login/destinationpath/


    Nothing particularly magic about ha_utils (it is a bash script).
Children
No Data