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: check an array disk's filesystem in Maintenance mode, and use the md device

Troubleshooting
~/tips/tip-unraid-check-filesystem-maintenance-mode

xfs_repair -nv /dev/md1p1

Runs a filesystem check on an array disk without breaking parity, read-only unless you ask for a repair.

When a disk shows as unmountable, the worst thing you can do is panic and press Format. The safe route starts with Maintenance mode.

Start the array in Maintenance mode, click the disk on the Main tab and choose Check Filesystem Status. The check does not modify anything by default (that is the -n option). From Unraid 7.0 the check is automated: click CHECK, and a FIX button appears when corruption is found. On the command line the same read-only check looks like this, where md1p1 is disk 1:

xfs_repair -nv /dev/md1p1

Always use the md device and not /dev/sdX1. The docs say a raw device bypasses parity and invalidates it, and the same goes for running the check outside Maintenance mode. Never run it on a whole drive or on the parity drive.

The other warning from the docs: never format an unmountable disk through the WebGUI. That erases the data and updates parity to match. This tip is for XFS. For btrfs the docs use a different route, with the array in normal mode.

Further reading: Unraid docs: Data recovery, Unraid docs: File systems, On this site: when the array will not stop, find out what still has a disk open, On this site: find the disk that holds a file with ls on /mnt/disk*

More Troubleshooting tips Get-NetTCPConnection -State Listen modinfo -p usb_storage ps -o pid,lstart,etime,cmd -p 1234 sudo lsof -nP -p 1234 fc-match Helvetica All Troubleshooting tips (21) All topics

Link