Skip to main content

HW Watchdog Info

UGREEN NAS Hardware Watchdog

MostBefore guides/postsinstalling onlineanother mentionOS, thatyou'll need to temporarily disable the watchdog needsin the BIOS. Whichever live disk being used likely doesn't support it, and the newly installed OS won't support it either until we configure it.

    Boot the NAS, and right when the UGREEN logo shows up, hold ctrl and press F12 a few times to be disabled for any 3rd party OSget to run,the howeverboot menu Choose setup (last item in the HWlist) Under the FAST tab, change the watchdog (unit from IT87second WDTto disabled)

    After the watchdog is alreadycorrectly supportedconfigured in linux,the sonew itOS, justyou needscan to be set up to feed it onreenable the samewatchdog intervalby asreverting UGOS.step 3.

    systemd-based linux systems

    Pulling the disk off the device,NAS, the second partition is the squashfs used as the base for the overlay FS. In this case, the watchdog is setup to be fed in systemd, and the config for that is in /etc/systemd/system.conf:

    [Manager]
    RuntimeWatchdogSec=120
    RuntimeWatchdogPreSec=off
    RebootWatchdogSec=2min
    KExecWatchdogSec=off
    WatchdogDevice=/dev/watchdog
    DefaultTimeoutStopSec=30s
    

    So for any other OS, we'll need to confirm that the watchdog is found and is at /dev/watchdog, then this same config should workwork. If the watchdog it87_wdt module is not automatically loaded, you'll need to install a watchdog daemon, such as watchdog, which will detect and load the correct module.

    Reboot and confirm the watchdog is found by checking dmesg, or running wdctl, you should see IT87 mentioned somewhere

    UpdatingProxmox

    Proxmox

    Proxmox's Installhigh ISOavailability services already contain functionality to manage the watchdog.

    First, ensure the following services are enabled:

    sudosystemctl unsquashfsenable pve-base.squashfsha-lrm
    #systemctl add system.conf
    sudo mksquashfs squashfs-rootenable pve-base-new.squashfsha-crm
    -compsystemctl zstdenable -Xcompression-level 19 -b 262144corosync
    

    ScriptThese will in turn enable the watchdog-mux service, which can be configured to updateload ISOthe correct module.

    Edit /etc/default/pve-ha-manager to contain the correct module:

    #!/usr/bin/env# bashselect ISO=$1watchdog FILE=$2module DEST=$3(default UUID=$(xorrisois -devsoftdog)
    $ISO -report_system_area cmd 2>/dev/null | sed -nr 's/-volume_date uuid .([0-9]+)./\1/p')
    cp $ISO $ISO.bak
    if ! xorriso -boot_image any keep -volume_date uuid $UUID -dev $ISO -update $FILE $DEST; then
            echo "error, restoring backup"
            mv $ISO.bak $ISO
    fiWATCHDOG_MODULE=it87_wdt
    

    Reboot and confirm the watchdog is found by checking ./update_proxmox_iso.shdmesg, proxmox-ve_8.2-1.isoor pve-base-new.squashfsrunning /pve-base.squashfswdctl, you should see IT87

    mentioned somewhere