Wilkie

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Wilkie

  1. Sure, I don't really use it anymore as I found 6.12 to resolve lots of my UPS issues. It currently pings 3 different devices and if it can't successfully ping the devices for about 10 minutes then unraid shuts down. Please adjust according to your needs.

     

    #!/bin/bash
    
    i=0
    while true;
    do
    
      #computer 1
      ping -c 1 10.0.1.1
      if [ $? -eq 0 ]
      then 
        i=0 #Pass
        echo '10.0.1.1 Pass i='$i
      else
        ((i++)) #Fail
        echo '10.0.1.1 Fail i='$i
      fi
      sleep 60
      
      #computer 2
      ping -c 1 10.0.1.5
      if [ $? -eq 0 ]
      then 
        i=0 #Pass
        echo '10.0.1.5 Pass i='$i
      else
        ((i++)) #Fail
        echo '10.0.1.5 Fail i='$i
      fi
      sleep 60
      
      #computer 3
      ping -c 1 8.8.8.8
      if [ $? -eq 0 ]
      then 
        i=0 #Pass
        echo '8.8.8.8 Pass i='$i
      else
        ((i++)) #Fail
        echo '8.8.8.8 Fail i='$i
      fi
      sleep 60
    
      if [ $i -gt 10 ]
      then
        /sbin/powerdown
      fi
        
    done

     

  2. On 3/11/2022 at 8:52 AM, Econaut said:

    Enabling internal node and setting IP/name still not seeing it show up. Any ideas?

     

    Edit: had to use localhost instead of IP

    Thank you. I was struggling with this for a few days. I figured I'd just wait for an update for the docker or something and didn't really want to bother going back to separate server and node dockers. Changing node IP to localhost was the trick. 👍

  3. Hello, what command should I be using to shutdown unraid? I have looked at /sbin/poweroff but unraid documentation says it is not sufficient or deprecated. Should I be using shutdown -f ? Does it safely shutdown unraid?

     

    To elaborate my UPS doesn't play nicely with unraid and loses USB connection every few minutes which causes it to not shutdown properly with APC or NUT. As a workaround I'm writing a script that pings a few devices every minute on my network and if successful pings aren't received for 10min or so, then run a shutdown command for unraid to shutdown in the event of a power failure.

     

    Thanks for any input.

  4. I also have this issue. Started happening about every 3 days after upgrading from 6.8.3 to 6.9.1. I'm now on 6.9.2. I also installed the 'My Servers' Plugin at the same time thinking that might have been part of the issue. A reboot always gets me back up and running but this is getting silly.

     

    A list of things for me to try over the next few days are:

    • run a check disk on the usb drive
    • double check that the drive is in a usb2 port
    • remove the server from UPS in case it is some sort of power issue
    • try a different usb drive

    I'm eager to hear from other people about this.