Hello,
I'd like to ask you for help with my RPI4 OMV 6 setup. I hope it's not too long.
TL;DR; I'd like to confirm, that my solution using mount -a in a cron job every few minutes is a good idea for dismounting discs in Orico enclosure.
Some context:
I have freshly installed OMV 6 using the script from https://github.com/OpenMediaVa…-Developers/installScript.
I'm using recommended official Raspbian (11 without desktop).
I have Orico 4 bay USB 3 enclosure (with power supply) connected directly / or indirectly through hub to RPi 4 USB 3 port.
Inside I have 3 disks of sizes 1TB - 4TB. I use EXT4 on all of them.
No raid.
Enclosure: https://www.amazon.com/ORICO-E…age-9548RU3/dp/B07XL1QQY9
All installation, setup etc. works flawlessly, no issues on that front.
Issue:
I see the disks, can use them with shared folders, I can access them over network and all works well and fast.
After some time of inactivity (it seems), the disks unmount or something... in UI they are marked as "unmounted" and in dmesg/log there are error messages about accessing them (see below).
What I've found so far
I'm already searching for solution for few months and read many answers in this and other forums. I'll add links to the bottom of this post for completeness.
Seems like it's an issue of Orico enclosure that will simply put disks to sleep and spin them down after some period that can't be setup in its configuration software (on Windows). Sometimes OMV/Linux works fine with that, on usage, it wakes up the disks, spins them up and I can use them. Sometimes it just doesn't and all fails.
It sometimes happens after few minutes, sometimes after many hours.
What seems to help is using mount -a as suggested in another thread here (see links below).
By that I mean when the issue appears, I need to wait for enclosure to "get ready", system needs to spit all the errors in log and after that, running mount -a simply restores them and all works. For now I have it as a cron job running every 5 minutes. May change that to 1 minute later.
What didn't help (for context)
- I've tried configuring OMV's Advanced Power Management for disks in various ways but it seems irrelevant; now I have it turned off
- I've tried config tool from Orico (Windows) and set various combinations of "sleep" intervals (0, 1000000, etc...)
- I've experimented with some tips about mounting options in fstab and quirks etc.
- I've tested multiple setups regarding physical power supply (RPi its own official supply, direct and indirect USB connection with USB 2 and 3 hubs etc.)
- I've tried running with combinations of disks (only one etc.)
- I've originally started with same enclosure, but RPi 2, USB 2 and OMV 5; same issue, probably even more frequent (subjectively)
- I've experimented with some USB configuration (autosuspend, delay_use and whatnot)
What I'm asking for
I'd like to ask if this solution is "safe" and really best one I can have?
Is there any risk to my disks, data or something?
Is there any alternative? Apart from buying other/better enclosure? (I have seen such advices. Thanks. But that's not the question. Some could suggest buying Synology then).
It really feels like a dangerous hack, ignoring all those errors.
I'm really grateful for all the work you put in this and the support, the install script is really awesome, I really hope I'll be able to use this setup/software and maybe even help somehow.
Links
- https://www.reddit.com/r/OpenM…periodically_dismounting/ (general talk, mostly about power supply)
- https://wiki.omv-extras.org/do…ide#initial_configuration (installation I used)
- https://forums.raspberrypi.com…a8c7d50251914e3554bd17b70 (USB issues on RPI4)
- https://forums.raspberrypi.com/viewtopic.php?f=28&t=245931 (quirks and drives on usb RPI4 and other fun)
- Auto mount USB drive when reconnected (very similar mounting issue)
- https://forums.raspberrypi.com…a12875667b49afdfd63b8b716 (RPI 4 external disk and mounting)
- Problem with Orico Series - Unmounted Disk after a while (the closest post of all forums I've found, there are the error messages I see in logs; exactly the same ones in dmesg)