-
-
[SOLVED] Cannot unmount /mnt/cache to Stop array
Ok, finally solved it. In case anyone runs into this, `umount -l /dev/loop2` worked
-
[SOLVED] Cannot unmount /mnt/cache to Stop array
I think the docker image on /mnt/cache that's mounted on /dev/loop2 is preventing the unmount. I killed a zombie container process accessing /dev/loop2, but still cannot detach /dev/loop2 and still stuck trying to unmount. Tried everything here: https://stackoverflow.com/questions/5881134/cannot-delete-device-dev-loop0 root@Tower:/# losetup NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC /dev/loop1 0 0 1 1 /boot/bzfirmware 0 512 /dev/loop2 0 0 1 0 /mnt/cache/system/docker/docker.img 0 512 /dev/loop0 0 0 1 1 /boot/bzmodules 0 512 root@Tower:/# lsof /dev/loop2 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME container 15050 root 4u FIFO 0,82 0t0 2917 /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/8ea313440eef7c42a99526240f16a5438cf23beb769630a6ede14276aebe8ca5/shim.stdout.log container 15050 root 7u FIFO 0,82 0t0 2917 /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/8ea313440eef7c42a99526240f16a5438cf23beb769630a6ede14276aebe8ca5/shim.stdout.log container 15050 root 8u FIFO 0,82 0t0 2918 /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/8ea313440eef7c42a99526240f16a5438cf23beb769630a6ede14276aebe8ca5/shim.stderr.log container 15050 root 9u FIFO 0,82 0t0 2918 /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/8ea313440eef7c42a99526240f16a5438cf23beb769630a6ede14276aebe8ca5/shim.stderr.log root@Tower:/# kill 15050 root@Tower:/# lsof /dev/loop2 root@Tower:/# losetup -d /dev/loop2 # fails silently root@Tower:/# echo $? 0 root@Tower:/# losetup NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC /dev/loop1 0 0 1 1 /boot/bzfirmware 0 512 /dev/loop2 0 0 1 0 /mnt/cache/system/docker/docker.img 0 512 /dev/loop0 0 0 1 1 /boot/bzmodules 0 512 root@Tower:/# lsof | grep loop2 loop2 12310 root cwd DIR 0,2 440 2 / loop2 12310 root rtd DIR 0,2 440 2 / loop2 12310 root txt unknown /proc/12310/exe root@Tower:/# kill -9 12310 # not sure what this is, but killing it fails root@Tower:/# lsof | grep loop2 loop2 12310 root cwd DIR 0,2 440 2 / loop2 12310 root rtd DIR 0,2 440 2 / loop2 12310 root txt unknown /proc/12310/exe root@Tower:/# modprobe -r loop && modprobe loop # try to reload the module, but it's builtin modprobe: FATAL: Module loop is builtin.
-
[SOLVED] Cannot unmount /mnt/cache to Stop array
I tried to Stop my array and it's currently still stuck on `Retry unmounting disk share(s)...` for the last 30min. Some diagnostics from command line below (I cannot access diagnostics from GUI anymore). Prior to this, I noticed one of my dockers was having weird issues... seemingly stopped after I killed it, but kept being listed as running in `docker ps`. I was using `docker exec` to execute some commands in that container and I think some processes got stuck in the container. root@Tower:/# tail -n 5 /var/log/syslog Apr 28 14:11:36 Tower emhttpd: Unmounting disks... Apr 28 14:11:36 Tower emhttpd: shcmd (43474): umount /mnt/cache Apr 28 14:11:36 Tower root: umount: /mnt/cache: target is busy. Apr 28 14:11:36 Tower emhttpd: shcmd (43474): exit status: 32 Apr 28 14:11:36 Tower emhttpd: Retry unmounting disk share(s)... root@Tower:/# lsof /mnt/cache root@Tower:/# fuser -mv /mnt/cache USER PID ACCESS COMMAND /mnt/cache: root kernel mount /mnt/cache
-
Unassigned Devices - Managing Disk Drives and Remote Shares Outside of The Unraid Array
Gotcha. It seemed aggressive for it to change remote permissions by default, as this affects permissions locally on the remote server. For instance, for any home share, this will break SSH authentication for all clients to that remote server. Any read-only permissions would also be permanently changed for all clients. I'll use a script as a workaround - thanks for the suggestion.
-
Unassigned Devices - Managing Disk Drives and Remote Shares Outside of The Unraid Array
@dlandon just trying to understand whether this is a bug in unRAID or Unassigned Devices, so I can direct issue management - thanks in advance
-
Unassigned Devices - Managing Disk Drives and Remote Shares Outside of The Unraid Array
When I mount an nfs share, the remote directory gets permissions changed to 0777. Since I am mounting my home folder (/home/myname), this screws up SSH authentication on my remote Ubuntu server, since it only works if the home folder is 0755. Right now I have to manually invoke chmod each time after Unassigned Devices mounts the directory.
-
Mover % bar or information
+1 think this is a great idea. In addition to it being generally useful, sometimes I need to manually cancel Mover because it's slowing down my array, but if it's almost done, would prefer not to cancel.
-
-
Unraid OS version 6.8 available
Known issue - follow here:
-
Unraid OS version 6.8 available
Will Wireguard eventually be integrated into unRAID? I think Wireguard is very cool and definitely appreciate the work on new functionalities, but am curious about the design decision here. It's unrelated to storage (and I would personally hesitate to host my VPN server on my storage server in case I need to reboot my storage remotely). Wireguard can also be run as a docker container if the kernel supports (here's a popular one: https://github.com/cmulk/wireguard-docker). The Plugin/Community App/Docker route may be cleaner and less demanding on developer resources.
-
golli53 started following Cache RAID1 BTRFS SSD - write errors
-
-
[6.8.0] 3-4x slower SMB directory listing + other SMB performance regressions
2 issues I've noticed through testing: [detectable on all directory sizes] Each directory listing is ~3-4x slower on average on v6.8 vs v6.72 (2.5s vs 0.7s for a 6k file directory) [detectable for very large directory sizes] Trying to open a single NONEXISTENT file in a 250k file directory on 6.8 (should be microseconds per attempt), every 100 or so attempts, it hangs for ~5s Initially, thought it had to do with concurrent calls, but it doesn't. Concurrent calls are simply additive in terms of execution time and concurrency itself doesn't seem to be the problem, but it makes it more apparent. This is the result of comparison testing of 6.8.0rc7 through stable vs 6.7.2 from a Windows 10 client on gigabit LAN. See SMB config readouts and Python code for benchmarking below. [OLD POST PRE ADDITIONAL TESTING] Noticing this on 6.8.0rc7 (previously using 6.7.2). I'm using a Windows 10 client and have a bunch of Python scripts that list files on an unRAID samba share over gigabit LAN. This slows down to a crawl (several seconds just to refresh a ~100 file directory listing, whether using Python or Windows built-in file explorer). Was running the exact same scripts on 6.7.2 without this issue. Transfer speeds seem normal. When accessing from a different Windows 10 client (at the same time that the first client has many concurrent requests), the directory listings SEEM normal. Were there any settings changed for SMB that I might be able to try tweaking?
-
Virt-Manager, Intel-GPU-Tools and more Dockers
Of course. In container: ssh-keygen On host: docker cp container-name:/root/.ssh/id_rsa.pub id_rsa.pub sudo sh -c "cat id_rsa.pub >> ~/.ssh/authorized_keys"
-
Virt-Manager, Intel-GPU-Tools and more Dockers
I got rid of the password prompts by generating an rsa key in the container (ssh-keygen) and copying it into the host's authorized_keys file
-
Virt-Manager, Intel-GPU-Tools and more Dockers
Thanks for looking into this! That seems to solve half of the problem. No more unknown host issues, but it still prompts me 10 times for the SSH password. Before, it was 10 prompts for each (trust host "yes", password, trust host "yes", password...)
-
Virt-Manager, Intel-GPU-Tools and more Dockers
Hi @dee31797 First of all, great work on these dockers! With virt-manager, I keep getting SSH known_hosts authenticity prompts (I have to type yes and my password almost 10 times each time I start a new VM). I did a bit of research and maybe it's because there is no known_hosts file in the docker container? I tried mapping a known_hosts file to /root/.ssh/known_hosts, but still have this problem. https://askubuntu.com/questions/190863/how-can-i-disable-ssh-prompt-from-kvm-remote https://stackoverflow.com/questions/48258546/how-to-add-known-hosts-for-passwordless-ssh-within-docker-container-in-docker-co
-
-
Quick command to back up all LUKS headers
Wrote this after a potential nightmare when mounting a cache drive with an extra empty slot erased my LUKS header Run in ssh from whichever directory you want to store the headers. Will be automatically named with model and serial numbers. Finishes in a few seconds for i in {/dev/sd*,/dev/nvme*}; do if cryptsetup luksDump $i &>/dev/null; then dd if=$i of=`udevadm info --query=all --name=$i | sed -n 's/.*ID_SERIAL=//p'`.img bs=512 count=4096; fi; done
golli53
Members
-
Joined