brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: when the array will not stop, find out what still has a disk open

Linux
~/tips/tip-unraid-array-will-not-stop

tail -f /var/log/syslog

Lists the commands that show which process keeps a disk busy so the array cannot stop.

You press Stop and the array just sits there. Somewhere a process is holding a disk, and you can go looking for it.

I could not find an official docs page for this, so this comes from forum threads. Open a second terminal and watch the log while you try to stop the array:

tail -f /var/log/syslog

A line such as umount: /mnt/disk1: target is busy names the disk. Then ask who uses it:

lsof | grep disk1
fuser -mv /mnt/disk* /mnt/user/*

The usual suspects in those threads are a shell whose current directory is inside /mnt/user or a disk (just cd away), an open FTP connection, and Docker containers or VMs that are still running. Moderators also point to the Dynamix Stop Shell plugin, which closes such shells for you.

The caveat: several people report that lsof and fuser show nothing even though the disk is busy. Treat the output as a lead, not proof.

Further reading: Unraid forum: array won't stop, solved, Unraid forum: can't stop array, target is busy, On this site: check an array disk's filesystem in Maintenance mode, and use the md device, On this site: find the disk that holds a file with ls on /mnt/disk*

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link