ThatDude

Members
  • Posts

    138
  • Joined

  • Last visited

Everything posted by ThatDude

  1. Sorry to resurrect this old thread, I rebuilt my unRAID and forgot to backup my compsize binary, is there any chance one of you could link to yours? I recall building it being a PITA to compile
  2. Man I NEVER would have found that on my own 🙂 Thank you very much indeed.
  3. Would it be possible to include a list of excluded folders? My main culprit is Plex, the media folder is 58GB and I don't need to back it up as that data will re-generate in a DR scenario. Full path to exclude: "/mnt/user/appdata/plex/Library/Application Support/Plex Media Server/Media" I could work around this using your pre-run script to stop the plex docker, mv the Media folder outside of the 'appdata' path, allow the backup to happen, then move it back in the post-run-script, but I feel dirty just writing this paragraph 🙂 I'm using the compressed archive option so I end up with a series of tar files, maybe could be done with the built in tar exclude options: tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz . On a separate note, thanks for maintaining this plugin, it's brilliant.
  4. That correlates - thanks for the clarification.
  5. Thanks so much @bonienl I totally missed that post. If Tailscale is running as a plugin presumably I just need to run /usr/local/emhttp/webGui/scripts/reload_services from the go script to get the web interface working. I'm specifically interested in getting the Tailscale plugin operational before the array is brought online as I need to type in my encryption key before the array can start.
  6. It looks like recent builds of unRAID lockdown services, which is a good thing! To enable SSH I had to edit /etc/ssh/sshd_config and add my tailscale IP in the listen section: Port 22 AddressFamily any ListenAddress 192.168.1.250 ListenAddress 100.94.227.51 <-------- here ListenAddress fd7a:115c:a1e0:ab12:4843:cd96:625e:e333 Then restart SSH with /etc/rc.d/rc.sshd restart This seems to have updated /boot/config/ssh/sshd_config which I guess means it will work across reboots (I can't test this right now) I guess there will be a similar process for the other services on unRAID
  7. First of all thanks for this plugin, it's much needed IMO as running TailScale or ZeroTier in a docker doesn't work unless the array is mounted. I've installed the plugin and 'tailscale up' to add to my tailscale network. I can ping the unraid server from my remote machine but no other services work, SSH, HTTP, SMB etc. Can anyone point me in the right direction? unRAID v6.12.0
  8. Thank you. SIGINT was the missing part of the puzzle, I've never come across that before. #!/bin/bash exit_script() { trap - SIGINT SIGTERM # clear the trap kill -- -$$ # Sends SIGTERM to child/sub processes } trap exit_script SIGINT SIGTERM while true; do echo "Do some task" done
  9. Hi I have a bash script that starts with the array and continues running in a while loop. This script is preventing my server from shutting down (if I kill the script manually shutdown works as expected). What's the most efficient way to detect a shutdown state from within the bash script so I can have it self terminate? Something like: if exists /tmp/shutdown.txt; then exit 1; fi Many thanks
  10. I also need rdiff-backup to be installed on the unRAID base. This is almost certainly not the optimal way to do it, but it works for me. Maybe @EUGENI_CAT would consider making this part of NerdTools? Install the userscripts plugin, add a new script, paste this in: #!/bin/bash # Script to install rdiff-backup on unRAID # Tested against unRAID 6.11.5 - this will need updating in future versions of unRAID when the slackware kernel changes # no erorr checking what-so-ever :-) extra_location="/boot/extra" checkfile="python3-3.9.15-x86_64-1.txz" if [ ! -f ${extra_location}/${checkfile} ] then wget https://slackware.uk/slackware/slackware64-current/slackware64/d/${checkfile} -P ${extra_location} fi checkfile="python-pip-22.2.2-x86_64-1.txz" if [ ! -f ${extra_location}/${checkfile} ] then wget https://slackware.uk/slackware/slackware64-current/slackware64/d/${checkfile} -P ${extra_location} fi checkfile="binutils-2.39-x86_64-1.txz" if [ ! -f ${extra_location}/${checkfile} ] then wget https://slackware.uk/slackware/slackware64-current/slackware64/d/${checkfile} -P ${extra_location} fi checkfile="gcc-12.2.0-x86_64-1.txz" if [ ! -f ${extra_location}/${checkfile} ] then wget https://slackware.uk/slackware/slackware64-current/slackware64/d/${checkfile} -P ${extra_location} fi checkfile="glibc-2.36-x86_64-3.txz" if [ ! -f ${extra_location}/${checkfile} ] then wget https://slackware.uk/slackware/slackware64-current/slackware64/l/${checkfile} -P ${extra_location} fi checkfile="kernel-headers-5.19.17-x86-1.txz" if [ ! -f ${extra_location}/${checkfile} ] then wget https://slackware.uk/slackware/slackware64-current/slackware64/d/${checkfile} -P ${extra_location} fi checkfile="librsync-0.9.7-x86_64-1_SBo.tgz" if [ ! -f ${extra_location}/${checkfile} ] then wget https://github.com/That-Dude/rdiff-bacup-unraid/raw/main/${checkfile} -P ${extra_location} fi # install packages upgradepkg --install-new ${extra_location}/python3-3.9.15-x86_64-1.txz upgradepkg --install-new ${extra_location}/python-pip-22.2.2-x86_64-1.txz upgradepkg --install-new ${extra_location}/binutils-2.39-x86_64-1.txz upgradepkg --install-new ${extra_location}/gcc-12.2.0-x86_64-1.txz upgradepkg --install-new ${extra_location}/glibc-2.36-x86_64-3.txz upgradepkg --install-new ${extra_location}/kernel-headers-5.19.17-x86-1.txz upgradepkg --install-new ${extra_location}/librsync-0.9.7-x86_64-1_SBo.tgz pip install rdiff-backup
  11. This plugin is super useful but man do I wish someone would make a video describing the ins and outs, benefits and pitfalls.
  12. Unfortunately the failed drive (cache drive 1) seems to have a physically failed and has disappeared from the system again. The remaining drive has the 'bad superblock' error and none of the safe (or unsafe) recovery methods mentioned in your (excellent) btrfs thread work. It won't mount at all. I have backups, they are just a few days out of date. I'll create a new 1 drive cache pool and restore to the working drive. I'm disappointed that BTRFS dropped the ball here, a RAID1 configuration should be able to sustain a 1 disk failure without catastrophic results. 🤷‍♂️
  13. A physical power cycle has made the drive visible again on the system but it's now an unassigned device, and not in the 2 disk cache pool. When I add it back to pool, unRAID tells me that the drive will be formatted when I start the array. Is there a way to add it back in correctly?
  14. The SSD that went offline? Yes it's physically still installed in the server, I've not disconnected anything. It seems odd that one would physically fail and the other would sustain virtual damage in the same event.
  15. Hi @JorgeB please see attached. I've not touched the failed drives but I have restored a backup of a VM onto the main array as it's critical for my work. unga-diagnostics-20220906-1331.zip
  16. Hi I had two drives pooled to create a BTRFS (RAID1) cache, but overnight one of them has failed and gone offline. The second drive is still present and has a green ball, but shows an unmountable file system unRIAD wants me to format it. How can I recover from this situation? I assumed that in the case of a drive failure the pool would just keep running and alert me to replace the failed disk.
  17. OK that's a terrifying procedure 🙂 It's copying the parity to the new drive now. Thank you JorgeB
  18. I have an array entirely made up of 6TB drives. A data drive fails. It was with warranty so I had it replaced, BUT WD sent me a larger drive (8TB). I stop my array. Put in the new drive. And I receive the error that "Disk in parity slot is not biggest" - and I am unable to rebuild my array. What's the correct procedure in this scenario?
  19. Hopefully it's fixed! I found that mine would work for a couple of days before dropping out, requiring either a physical cable reset on the server or a switch reboot. This only happened on unRIAD, my Windows boxes have been solid for months.
  20. I had so many seemingly random issues with that driver in subsequent beta versions of unRAID that I gave up and just bought a dual-port Intel 10Gb card from eBay, it was £30 ($35) and has been rock solid, it's 561FLR-T in case you're interested, note I searched for this card on the forum here before I bought it and found only 1 reference stated that it did not, but it has been fine for me - so YMMV. My takeaway is that Realtek just don't have reliable 2.5Gb drivers on Linux, I passed the 2.5Gb card through to a KVM Win11 gaming PC and it run's flawlessly at full speed 🤷‍♂️
  21. Hey, did you ever get anywhere with installing virt-sparsify ?
  22. That's what I was hoping for. A gracefully way to stop all necessary processes for br0 and restart them as necessary. I guess the nuclear option is to stop the array, this triggers a global shutdown of services, but I was hoping for a better option. Perhaps stopping all the dockers, pausing VMs and restarting the interface is enough. Maybe someone with more experience can jump in.
  23. What's the best way to restart the network interface from the command line? I have an issue where every few days my unRIAD server loses it's LAN connection (probably related to the drivers for my 2x10GB BCM57810 NIC), if I unplug the network cable and plug it back in again all is well again for a few more days. I figured I could create a simple workaround with a scheduled userscript to detect the lack of network access and bring the interface down then up again e.g. if ping -c 1 192.168.1.1 &> /dev/null then echo "succces - NOP" else echo "fail - restart NIC" [nic restart command here] fi
  24. Is it possible to add rdiff-backup to nerdtools? I see several references to in in the previous replies, and a suggestion to install it using pip but that no longer seems to work.
  25. To answer my own question ....SSHD uses this file to check SSH keys: /etc/ssh/root.pubkeys Don't use ssh-copy-id as it copies the keys to /root/.ssh/authorized_keys which (on my unraid server v6.10.0-rc5) is ignored by SSHD. I'm assuming that you need to manually add keys to /boot/config/ssh/root.pubkeys to have them survive the array stopping and starting.