Jump to content

mgutt

Moderators
  • Posts

    11,366
  • Joined

  • Last visited

  • Days Won

    124

Everything posted by mgutt

  1. Dann bist du in der falschen "Sektion". Oder anders gesagt, der Done Button ist überflüssig, denn er macht nichts. Nur der Apply Button speichert neue Einstellungen und wenn der nicht anklickbar ist, dann wurde in der jeweiligen Sektion auch nichts verändert. Beispiel: Und wie soll das durch Unraid aus möglich sein, wo Unraid die Logins der VMs nicht kennt? Es hat auch nicht jeder VMs mit Netzwerkzugang. Das ist technisch nicht möglich, da in Linux keine Pakete deaktiviert werden können: https://askubuntu.com/a/972366/227119 Das einzige was man evtl andenken könnte wäre ein Caching-System, so dass bei Neuinstallation die Pakete nicht erst neu heruntergeladen werden müssen. Also Deaktivieren wäre dann Deinstallation und Pakete behalten. Aber was spart man da? 10 Sekunden? Kannst du zaubern? ^^ Die Reiter sind nicht vorhanden, wenn das Array steht. Du hast also in einem anderen Tab das Array gestoppt. So gesehen bekommst du also "Fehlermeldungen" zu Gesicht, weil die Seiten gar nicht mehr existieren. Wobei ein Link mit Sprungmarke denke ich schon eine gute Idee wäre, wenn man denn mal die Fehlermeldung sehen sollte. Die Anleitung zeigt nur den Weg mit dem VDisk Image. Korrekt. Alle drei Varianten sind ja möglich: - NVMe an VFIO binden und als PCIe Gerät durchschleifen (geringster Overhead, eine VM pro Laufwerk) - NVMe per "ID" als VFIO Laufwerk zuweisen (kleiner bis hoher Overhead laut ich777 und hawihoney ^^, eine VM pro Laufwerk) - VDisk.img auf NVMe erstellen (kleiner Overhead, mehrere VMs pro Laufwerk) Ich meine damit vor allem die Guest Tools und die Geräte-Treiber. Ich habe dazu mal im Slackware Forum gelesen, dass man erst mal separate Scripte in Slackware ausführen muss, damit die passenden Treiber geladen werden. Die Frage ist nun ob Unraid diese Treiber überhaupt enthält, um optimal als Gast zu laufen. Siehe zB hier: http://johnrey.es/index.php/2015/10/15/slackwarevirtio-no-boot-loader-installedfatal-linux-experimental-device-0xfc00-needs-to-be-defined/ Oder auch hier ist die Rede von dem Shell Script?! https://www.linuxquestions.org/questions/slackware-14/slackware-14-1-in-ms-hyper-v-4175486298/page2.html Die Frage ist eben ob das Betriebssystem "optimal" auf die Datenträger zugreifen kann, wenn der Treiber gar nicht da ist. Das würde dann ja eine schlechte Performance erklären.
  2. Mein Script kann noch nicht auf SSH senden / aufräumem. Es wäre aber eh sicherer das Script auf dem Ziel selbst auszuführen und von unRAID abzuholen. Also über SSH unRAID auf dem Ziel mounten oder welches Protokoll du auch immer nutzen möchtest. Aber keinen Root User und meine Schreibrechte. Denk an Ransomware.
  3. Ich tippe darauf, dass das an UD bzw dem USB SATA Controller liegt. Teste mal das Kommando, wenn deine USB Platte schläft: hdparm -C /dev/sdX
  4. Wohin? Bitte deaktivieren. Du entscheidest welche Ports freigegeben werden und nicht deine Clients. Der Container unterstützt kein IPv6. Das solltest du auch bei der DuckDNS Seite sehen, wenn du dich anmeldest. Aus dem Grund nutze ich das Script: https://forums.unraid.net/topic/107411-ddns-updater-script/ Allerdings musst du das Feld "ipv4" leer lassen. Die DuckDNS Domain darf auf der Website nichts im Feld IPv4 anzeigen. Also so: Du kannst das dann auch noch mal mit einem DNS Check prüfen: https://mxtoolbox.com/SuperTool.aspx?action=a%3aexample.duckdns.org&run=toolpage "a:domain" ist der IPv4 und "aaaa:domain" ist der IPv6 DNS Eintrag. In meinem Script lässt du die Variable "ipv6" wie sie ist. Die holt sich dann die IPv6 vom Unraid Server. Das Kommando kannst du auch von Hand im WebTerminal ausführen, um dessen Funktion zu verifizieren: hostname -I | egrep -o '[0-9a-z:]+:[0-9a-z:]+' | head -n 1 Hierbei darf keine IPv6 rauskommen, die mit "f" anfängt. Das wären private IPv6 Adressen und keine öffentliche. Wenn das erledigt ist, schaust du dir deine Portfreigabe im Router noch mal an. Ist deren Ziel der Unraid Server? Wenn nein, bitte korrigieren. Wenn das passt, dann installiere dir den Nginx Proxy Manager Official im Host-Netzwerk. Das geht aber nur, wenn du vorher in den Settings > Managment die Standardports von Unraid geändert hast. Ich nutze statt 443/80 die Ports 5000/5001. Mehr dazu auch hier: https://forums.unraid.net/topic/110245-support-nginx-proxy-manager-npm-official/?tab=comments#comment-1011152 Sobald NPM hochgefahren wurde (brauchst nichts einstellen), musst du nun in der Lage sein die NPM Willkommensseite zu sehen, in dem du http://example.duckdns.org/ (nicht https!) und http://[deine-public-ipv6]/ (auch hier kein https!) aufrufst. Also beide müssen funktionieren. Wenn nicht, dann erstmal auf Fehlersuche gehen. Erst wenn das steht, kannst du die duckdns Domain in NPM eintragen und ein Zertifikat bestellen. Du kannst dann in 6tunnel die DuckDNS Domain nutzen (die sich ja anpasst, sobald dein Internetanschluss eine neue IPv6 bekommt).
  5. Also richtig was deaktivieren tut man auf der Seite aber nicht. Da schaltet man nur eben den DHCP Server ab: Ich hab das mal gemacht und auch wieder bei Internet. Mehr folgt, wenn ich es testen konnte.
  6. mgutt

    NVME nachrüsten

    Ja so habe ich es ja die ganze Zeit, sonst käme ich ja nicht auf 8 Platten. Im BIOS dann MiniSAS entsprechend auf SATA stellen.
  7. Die verschwinden, wenn man "IPv6 Unterstützung" deaktiviert hat:;
  8. mgutt

    NVME nachrüsten

    Hilft das? https://forums.unraid.net/topic/96589-solved-nvme-as-ud-corsair-mp600-keeps-disappearing/?do=findComment&comment=889971
  9. @johntdyer After a little experiment to watch hdparm and smartctl with custom packages, which include a sleep time, I came to the idea, that we could use the same technique to check which process writes to domain.cfg. So I searched for all files which mention "domain.cfg" and accidentally found the following line in /usr/local/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php which updates the domain.cfg on every execution: // Read configuration file (guaranteed to exist) $domain_cfgfile = "/boot/config/domain.cfg"; // This will clean any ^M characters (\r) caused by windows from the config file shell_exec("sed -i 's!\r!!g' '$domain_cfgfile'"); $domain_cfg = parse_ini_file($domain_cfgfile); Please use the following command to disable this line: sed -i '/sed -i/s/^/#/g' /usr/local/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php Wait a little bit and check your USB activity. Didn't solve the problem? Then enable it again: sed -i '/sed -i/s/^#//g' /usr/local/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php A different file which writes to domain.cfg is /usr/local/emhttp/plugins/dynamix.vm.manager/scripts/libvirtconfig.php, but it should only write to domain.cfg if the VM settings have been changed. But let's verify it by disabling the relevant lines: if ($cfg_new) { foreach ($cfg_new as $key => $value) $tmp .= "$key=\"$value\"\n"; file_put_contents($cfgfile, $tmp); } By this command: sed -i '/file_put_contents/s/^/#/g' /usr/local/emhttp/plugins/dynamix.vm.manager/scripts/libvirtconfig.php Didn't help? Enable it again: sed -i '/file_put_contents/s/^#//g' /usr/local/emhttp/plugins/dynamix.vm.manager/scripts/libvirtconfig.php I did not found other files, so I cross my fingers that one of these commands solves your problem.
  10. I did. It was not as easy as I thought, but finally I was successful. At first I though I could open two terminals and watch for smartctl and hdparm processes (which Unraid uses to set standby): while true; do pid=$(pgrep 'smartctl' | head -1); if [[ -n "$pid" ]]; then ps -p "$pid" -o args && strace -v -t -p "$pid"; fi; done while true; do pid=$(pgrep 'hdparm' | head -1); if [[ -n "$pid" ]]; then ps -p "$pid" -o args && strace -v -t -p "$pid"; fi; done But I found out that some of the processes were to fast to monitor. So I changed the source code of hdparm and smartctl and added in both apps a sleep time of 1 second (Trick 17, we say in Germany ^^). Then I used this command to watch for the processes: while true; do for pid in $(pgrep 'smartctl|hdparm'); do if [[ $lastcmd != $cmd ]] || [[ $lastpid != $pid ]]; then cmd=$(ps -p "$pid" -o args); echo $cmd "($pid)"; lastpid=$pid; lastcmd=$cmd; fi; done; done After that I pressed the spin down icon of an HDD which returned: COMMAND /usr/sbin/hdparm -y /dev/sdb (5766) After the disk spun down, Unraid starts to spam the following comand every second: COMMAND /usr/sbin/hdparm -C /dev/sdb (5966) I think by that Unraid's WebGUI is able to update the Icon as fast as possible if a process wakes up the Disk. Then I pressed the spin up icon which returns this: COMMAND /usr/sbin/hdparm -S0 /dev/sdb (27296) And several seconds later, after the disk spun up, this command appeared (Unraid checks SMART values): COMMAND /usr/bin/php /usr/local/sbin/smartctl_type disk1 -A (28152) COMMAND /usr/sbin/smartctl -A /dev/sdb (28155) The next step was to click on the spin down icon of the SSD... but nothing happened. So this icon has no function. Buuh ^^ Now I set my Default spin down delay to 15 minutes and waited... and then this appeared: COMMAND /usr/sbin/hdparm -y /dev/sdb (5826) COMMAND /usr/sbin/hdparm -y /dev/sde (6203) COMMAND /usr/sbin/hdparm -y /dev/sdc (6204) And Unraid is spamming again: COMMAND /usr/sbin/hdparm -C /dev/sde (6465) COMMAND /usr/sbin/hdparm -C /dev/sdb (6555) COMMAND /usr/sbin/hdparm -C /dev/sdc (6643) But as I thought.. no command mentions /dev/sdd, which is my SATA SSD. So Unraid never sends any standby commands to your SSD. I remember that one of the unraid devs said in the forums, that SSDs do not consume measurable more energy if they are in standby state, so they did not implement equivalent commands. Conclusion: As you did not change any setting which covers your SSDs power management and as they are working now, your problem should be something else. hdparm-9.58-sleep1.txz smartmontools-7.2-sleep1.txz
  11. Tried the same and found the answer in your other thread: https://forums.unraid.net/topic/78993-solved-how-to-create-a-virtual-nic-for-internalisolated-use-only/?tab=comments#comment-974268
  12. Welche? Alle Platten deines Arrays? Mehr als Parity + eine Disk?
  13. Parallel geht nicht, aber nacheinander. Die muss außerdem klar sein, dass die GPU durchgehend Strom zieht. Auch hier mal lesen: https://forums.unraid.net/topic/99393-häufig-gestellte-fragen/?tab=comments#comment-1007233
  14. Dann bitte Screenshots vom Hauptverzeichnis des Cache Pools, dem Hauptverzeichnis der Array Disks und die Einstellungen eines Shares, der deiner Ansicht nach nicht korrekt vom Mover behandelt wird.
  15. Your are not using NPM official. You are using the other container. This should never happen. The traffic of port 80 is forwarded by your router to 1880. So it must display: A) the npm welcome message if no proxy host is present for this domain B) an error If the target of the proxy host can't be reached by Nginx C) the target containr's website if everything is setup properly Please open http://<yourPublicIP> Still login page or welcome message?
  16. And another try which failed: https://sourceware.org/systemtap/SystemTap_Beginners_Guide/inodewatchsect.html I installed the Dev Plugin and selected all packages and installed them. After that I added these packages: wget -P /tmp https://packages.slackonly.com/pub/packages/14.2-x86_64/development/systemtap/systemtap-4.1-x86_64-1_slonly.txz upgradepkg --install-new /tmp/systemtap-4.1-x86_64-1_slonly.txz wget -P /tmp https://slackware.uk/slackware/slackware64-14.2/slackware64/ap/rpm-4.12.0.1-x86_64-1.txz upgradepkg --install-new /tmp/rpm-4.12.0.1-x86_64-1.txz wget -P /tmp https://slackware.uk/slackware/slackware64-14.2/patches/packages/mozilla-nss-3.40.1-x86_64-1_slack14.2.txz upgradepkg --install-new /tmp/mozilla-nss-3.40.1-x86_64-1_slack14.2.txz Then I tried get the inode and execute stap: stat -c '%D %i' /boot/config/domain.cfg 801 1749 stap inodewatch.stp 0x8 0x01 1749 Checking "/lib/modules/5.10.28-Unraid/build/Module.symvers" failed with error: No such file or directory Ensure kernel development headers & makefiles are installed I don't understand why it does not work as the Dev Pack includes Headers and Make: So tried this tip and created an empty Module.symvers: touch /lib/modules/5.10.28-Unraid/build/Module.symvers then created: touch /boot/config/inodewatch.stp and added the script: #! /usr/bin/env stap probe vfs.{write,read} { # dev and ino are defined by vfs.write and vfs.read if (dev == MKDEV($1,$2) # major/minor device && ino == $3) printf ("%s(%d) %s 0x%x/%u\n", execname(), pid(), ppfunc(), dev, ino) } Executed again: stap /boot/config/inodewatch.stp 0x8 0x01 1749 warning: Generating 12 missing index(es), please wait... semantic error: while resolving probe point: identifier 'kernel' at /usr/share/systemtap/tapset/linux/vfs.stp:1048:19 source: probe vfs.write = kernel.function("vfs_write") ^ semantic error: missing x86_64 kernel/module debuginfo [man warning::debuginfo] under '/lib/modules/5.10.28-Unraid/build' semantic error: while resolving probe point: identifier 'vfs' at /boot/config/inodewatch.stp:3:7 source: probe vfs.{write,read} ^ semantic error: no match Pass 2: analysis failed. [man error::pass2] Number of similar error messages suppressed: 2. Rerun with -v to see them. I won't give up ^^
  17. Something which I found by accident: https://unix.stackexchange.com/a/473972/101920 I tried to install sysdig, but it seems it needs to be build for Slackware 14.2 as this package was build for 14.1 and returns errors on installation (even the newer package I found for Slackware Current): https://slackware.pkgs.org/14.1/slackonly-x86_64/sysdig-0.2.0-x86_64-1_slack.txz.html wget https://packages.slackonly.com/pub/packages/14.1-x86_64/system/sysdig/sysdig-0.2.0-x86_64-1_slack.txz -P /tmp upgradepkg --install-new /tmp/sysdig-0.2.0-x86_64-1_slack.txz sysdig needs in addition this package: wget https://packages.slackonly.com/pub/packages/14.2-x86_64/libraries/jsoncpp/jsoncpp-1.9.1-x86_64-2_slonly.txz -P /tmp upgradepkg --install-new /tmp/jsoncpp-1.9.1-x86_64-2_slonly.txz I tried audit, too, but fails for me as well: wget -P /tmp https://packages.slackonly.com/pub/packages/14.2-x86_64/system/audit/audit-2.3.6-x86_64-1_slonly.txz upgradepkg --install-new /tmp/audit-2.3.6-x86_64-1_slonly.txz cat /boot/syslinux/syslinux.cfg | grep audit append initrd=/bzroot audit=1 auditctl -f Error - audit support not in kernel Cannot open netlink audit socket auditd -s enable auditctl -w /boot/config/domain.cfg Error - audit support not in kernel Cannot open netlink audit socket auditctl -w /boot/config/domain.cfg Error - audit support not in kernel Cannot open netlink audit socket But I wonder why you said "dmesg" didn't return anything for you. For me it returns the following: dmesg | grep -i audit [ 0.000000] Command line: BOOT_IMAGE=/bzimage initrd=/bzroot audit=1 [ 0.098036] Kernel command line: BOOT_IMAGE=/bzimage initrd=/bzroot audit=1 [ 34.651587] audit=1 But it seems we can not enable audit as a variable in the Kernel Config was not set by limetech: https://unix.stackexchange.com/a/507393/101920 Then I thought about a third method: Mount an Unraid path inside of Unraid through FUSE (SSHFS) and limit the bandwidth so lsof would return someting. But sadly Unraid does not include the relevant modules for traffic shaping (tc): 😒 https://forums.unraid.net/topic/78993-solved-how-to-create-a-virtual-nic-for-internalisolated-use-only/?tab=comments#comment-974268
  18. As far as I know Unraid does not send any sleep commands to non rotational disks. So "never" should only touch HDDs.
  19. Keine Ahnung. Müsste man mal recherchieren oder eben ausprobieren.
  20. Ich meinte jetzt eigentlich die reine Schreibgeschwindigkeit. Die kannst du ja in der Disk Übersicht anzeigen lassen. Also schreibt der da konstant auf die SSD und wenn ja mit welcher Geschwindigkeit? Kann man ja dann hochrechnen. Oder du notierst heute den Bytes written aus dem SMART und dann noch mal nach genau 48 oder 72 Stunden und dann kann man ja hochrechnen wie viel TBW dabei herumkommen.
  21. Nimm ffmpegYAG. Da stellst du als Ziel Matroska, also MKV ein und dann stellst du alles auf copy (video, audio...). Dann werden die Dateien einfach nur neu gemuxt und das geht schnell. Oder MKVToolNIX kann das bestimmt auch.
  22. Also noch mal fragen? Nein. Diese Frage gab es schon häufiger. Daraus ist ja erst das Plugin entstanden 😉
×
×
  • Create New...