Open sgreiner opened 1 week ago
The instruction looks good, and don't forget to install dmidecode
(especially for 6800 Pro). It will be used in the script to detect the device type and to choose the correct htcl mapping.
For ZFS, I am also using it. I am curious about how the zpool is configured on TrueNAS. Could zpool status -L | egrep "^\s*(sd|dm)"
give the correct devices? Would you like to test the script here by manually running CHECK_ZPOOL=true ./ugreen-diskiomon
? It will check the zpool's status every 5s, and if it successfully builds the mapping from zpool device to LEDs you will see outputs like:
zpool device dm-9 >> sda >> LED:disk1
zpool device dm-10 >> sdd >> LED:disk3
zpool device dm-8 >> sdb >> LED:disk4
zpool device dm-7 >> sdc >> LED:disk2
The instruction looks good, and don't forget to install
dmidecode
(especially for 6800 Pro). It will be used in the script to detect the device type and to choose the correct htcl mapping.
dmidecode
is also available per default (version 3.4)
I will check the zpool stuff on the ata-disk-mapping branch
Not sure if this will work.
Maybe we can skip installing a VM by building the kmod in a Debian docker with the headers from truenas? I can build such a module using the scripts in the truenas-build
branch.
The following instructions are a memory log from my successful attempt today to get the LEDs of the Ugreen NASync DXP6800 Pro running poperly on TrueNAS Scale.
I hope I haven't forgotten anything, otherwise I'll add to it when I reinstall it (probably next weekend). Big thanks to @miskcoo for your work on this repository!
I thought someone might find this useful, so I add this as issue here, hope thats ok. There is also room for improvement to add
zpool status
related output to the leds (e.g. make them red if a pool is degraded etc).Ugreen NAS LEDs on TrueNAS Scale
20.06.2024
Builder VM
Install TrueNAS Scale on a VM. These steps could be done on the target NAS, but we don't want to clutter the appliance more than necessary.
You might need to adjust the version numbers below in the future.
Execute as root (
sudo su -
) on a fresh TrueNAS VM with the exact same version as your target TrueNAS Scale.copy these two files to your target TrueNAS somehow:
Target TrueNAS (e.g. on a Ugreen NASync DXP6800 Pro)
install TrueNAS Scale:
On TrueNAS Scale 24.04.1.1 dependencies like i2c-dev, ledtrig-oneshot, ledtrig-netdev and smartmontools are available.
execute as root on your target TrueNAS:
Create kernel modules load config:
content:
Put previously compiled kernel module in place (kernel version might change)
Run depmod and modprobe:
systemd setup for leds
copy config and systemd units and scripts
Reboot and verify.
After a TrueNAS Scale Update you need to repeat all steps, as the boot-pool datasets are versioned and our changes will be gone in a new boot-pool dataset.