I am new to OMV and so far I have been getting along with OMV6 nicely. The disk spin-up issue, however, is the only thing I cannot solve. I have had experience with other linux distros. I have now dealt with the spin-up issue for a week, checked every blog post (I could find) and also tried other methods. I usually never write forum posts, but here I am. Can you help me?
Collectively, I have checked various things:
- I restarted and reconfigured SMART more than one time.
- I installed and configured hd-idle instead of hdparm.
- I checked for any errors in various logs.
I can spin-down my two HDDs (actually in RAID1) using either hd-idle or hdparm. Once they're shutdown, I have used btrace, to find out that smartctl is called, when the disks spin up again, usually 30-180 seconds after spin-down. I even get the same output when SMART is deactivated in OMV (which is confirmed by systemctl status smartmontools). I therefore suspect that another process is triggering smartctl. For completeness, an example output of btrace after spin-down, actually at spin-up:
root@openmediavault:/dev/disk/by-id# btrace /dev/sda
8,0 0 1 0.000000000 201562 D R 36 [smartctl]
8,0 0 2 0.000020581 14 C R [0]
8,0 0 3 0.000049493 201562 D R 512 [smartctl]
8,0 0 4 0.000830968 201562 D R 512 [smartctl]
8,0 0 5 0.022731980 201562 D R 512 [smartctl]
8,0 0 6 0.022878798 201562 D W 512 [smartctl]
8,0 0 7 0.023050024 201562 D R 512 [smartctl]
8,0 0 8 0.023176782 201562 D R 512 [smartctl]
8,0 0 9 0.026671734 201562 D R 512 [smartctl]
8,0 0 10 0.030541281 201562 D N 0 [smartctl]
[...]
Display More
But how can I find out, which processes trigger smartctl to call on my disk (which causes it to spin-up)?
The best idea I had so far was to check fatrace - as also suggested in various forums. fatrace does not allow me to check just the disks, so the following output is a bit messier. Please note that my system runs on a SSD (/dev/nvme0n1p2) and the output looks the same everytime before the disks spin up again. The spin-up only begins when smartctl is being called (lower part of the output). Regardless, I come to the conclusion that smartctl is called by some (ir)regular check-ups that likely also involve php-fpm7.4. Sadly I lack the skills to figure out what process calls smartctl at this point and I also cannot find any hints in the openmediavault github.
root@openmediavault:/dev/disk/by-id# hdparm -y /dev/sdb
/dev/sdb:
issuing standby command
root@openmediavault:/dev/disk/by-id# hdparm -y /dev/sda
/dev/sda:
issuing standby command
root@openmediavault:/dev/disk/by-id# fatrace -c
php-fpm7.4(193572): W /dev/null
php-fpm7.4(193571): W /dev/null
php-fpm7.4(193573): W /dev/null
php-fpm7.4(193572): W /dev/null
findmnt(205108): O /dev/nvme0n1p2
findmnt(205108): R /dev/nvme0n1p2
findmnt(205108): R /dev/nvme0n1p2
[...]
findmnt(205108): O /dev/nvme0n1
findmnt(205108): R /dev/nvme0n1
findmnt(205108): R /dev/nvme0n1
findmnt(205108): C /dev/nvme0n1p2
findmnt(205108): C /dev/nvme0n1
blockdev(205112): CO /dev/nvme0n1
findmnt(205114): O /dev/nvme0n1p2
findmnt(205114): R /dev/nvme0n1p2
findmnt(205114): R /dev/nvme0n1p2
[...]
findmnt(205114): O /dev/nvme0n1
findmnt(205114): R /dev/nvme0n1
findmnt(205114): R /dev/nvme0n1
findmnt(205114): C /dev/nvme0n1p2
findmnt(205114): C /dev/nvme0n1
blockdev(205118): CO /dev/sda
findmnt(205120): O /dev/nvme0n1p2
findmnt(205120): R /dev/nvme0n1p2
findmnt(205120): R /dev/nvme0n1p2
[...]
findmnt(205120): O /dev/nvme0n1
findmnt(205120): R /dev/nvme0n1
findmnt(205120): R /dev/nvme0n1
findmnt(205120): C /dev/nvme0n1p2
findmnt(205120): C /dev/nvme0n1
blockdev(205124): CO /dev/sdb
findmnt(205126): O /dev/nvme0n1p2
findmnt(205126): R /dev/nvme0n1p2
findmnt(205126): R /dev/nvme0n1p2
[...]
findmnt(205126): O /dev/nvme0n1
findmnt(205126): R /dev/nvme0n1
findmnt(205126): R /dev/nvme0n1
findmnt(205126): C /dev/nvme0n1p2
findmnt(205126): C /dev/nvme0n1
php-fpm7.4(193571): W /dev/null
php-fpm7.4(193570): W /dev/null
php-fpm7.4(193573): W /dev/null
blkid(205138): O /dev
blkid(205138): RC /dev
blkid(205138): O /dev/nvme0n1p1
blkid(205138): R /dev/nvme0n1p1
blkid(205138): R /dev/nvme0n1p1
[...]
blkid(205138): O /dev/nvme0n1
blkid(205138): R /dev/nvme0n1
blkid(205138): R /dev/nvme0n1
blkid(205138): C /dev/nvme0n1
blkid(205138): C /dev/nvme0n1p1
blkid(205138): O /dev/nvme0n1p2
blkid(205138): R /dev/nvme0n1p2
blkid(205138): R /dev/nvme0n1p2
[...]
blkid(205138): O /dev/nvme0n1
blkid(205138): R /dev/nvme0n1
blkid(205138): R /dev/nvme0n1
blkid(205138): C /dev/nvme0n1
blkid(205138): C /dev/nvme0n1p2
blkid(205138): O /dev/nvme0n1p3
blkid(205138): R /dev/nvme0n1p3
blkid(205138): R /dev/nvme0n1p3
blkid(205138): R /dev/nvme0n1p3
blkid(205138): R /dev/nvme0n1p3
blkid(205138): R /dev/nvme0n1p3
blkid(205138): R /dev/nvme0n1p3
blkid(205138): R /dev/nvme0n1p3
blkid(205138): O /dev/nvme0n1
blkid(205138): R /dev/nvme0n1
blkid(205138): C /dev/nvme0n1
blkid(205138): C /dev/nvme0n1p3
blkid(205138): RO /dev/sda
blkid(205138): RC /dev/sda
blkid(205138): O /dev/sdb
blkid(205138): R /dev/sdb
blkid(205138): RC /dev/sdb
blkid(205138): O /dev/md0
blkid(205138): R /dev/md0
blkid(205138): R /dev/md0
blkid(205138): R /dev/md0
blkid(205138): R /dev/md0
blkid(205138): R /dev/md0
blkid(205138): R /dev/md0
blkid(205138): R /dev/md0
blkid(205138): R /dev/md0
blkid(205138): RC /dev/md0
blkid(205140): O /dev/nvme0n1p2
blkid(205140): R /dev/nvme0n1p2
blkid(205140): R /dev/nvme0n1p2
[...]
blkid(205140): O /dev/nvme0n1
blkid(205140): R /dev/nvme0n1
blkid(205140): C /dev/nvme0n1p2
blkid(205140): C /dev/nvme0n1
blkid(205142): O /dev/md0
blkid(205142): R /dev/md0
blkid(205142): R /dev/md0
[...]
blkid(205142): RC /dev/md0
blkid(205144): O /dev/nvme0n1p3
blkid(205144): R /dev/nvme0n1p3
blkid(205144): R /dev/nvme0n1p3
[...]
blkid(205144): O /dev/nvme0n1
blkid(205144): R /dev/nvme0n1
blkid(205144): R /dev/nvme0n1
blkid(205144): C /dev/nvme0n1p3
blkid(205144): C /dev/nvme0n1
blkid(205146): O /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): R /dev/nvme0n1p1
blkid(205146): O /dev/nvme0n1
blkid(205146): R /dev/nvme0n1
blkid(205146): R /dev/nvme0n1
blkid(205146): C /dev/nvme0n1p1
blkid(205146): C /dev/nvme0n1
blockdev(205168): O /dev/nvme0n1p2
blockdev(205168): C /dev/nvme0n1p2
blockdev(205172): O /dev/md0
blockdev(205172): C /dev/md0
blockdev(205176): O /dev/nvme0n1p1
blockdev(205176): C /dev/nvme0n1p1
blockdev(205178): O /dev/nvme0n1p3
blockdev(205178): C /dev/nvme0n1p3
findmnt(205194): O /dev/nvme0n1p2
findmnt(205194): R /dev/nvme0n1p2
[...]
findmnt(205194): R /dev/nvme0n1p2
findmnt(205194): O /dev/nvme0n1
findmnt(205194): R /dev/nvme0n1
findmnt(205194): R /dev/nvme0n1
findmnt(205194): C /dev/nvme0n1p2
findmnt(205194): C /dev/nvme0n1
findmnt(205207): O /dev/nvme0n1p2
findmnt(205208): O /dev/nvme0n1p2
findmnt(205206): O /dev/nvme0n1p2
findmnt(205208): R /dev/nvme0n1p2
[...]
findmnt(205206): O /dev/nvme0n1
findmnt(205208): R /dev/nvme0n1p2
findmnt(205207): R /dev/nvme0n1p2
findmnt(205206): R /dev/nvme0n1
findmnt(205207): R /dev/nvme0n1p2
findmnt(205206): R /dev/nvme0n1
findmnt(205207): RO /dev/nvme0n1
findmnt(205208): RO /dev/nvme0n1
findmnt(205208): R /dev/nvme0n1
findmnt(205206): C /dev/nvme0n1p2
findmnt(205207): C /dev/nvme0n1p2
findmnt(205208): C /dev/nvme0n1p2
findmnt(205206): C /dev/nvme0n1
findmnt(205207): C /dev/nvme0n1
findmnt(205208): C /dev/nvme0n1
php-fpm7.4(193572): W /dev/null
smartctl(205211): O /dev/nvme0n1
smartctl(205211): C /dev/nvme0n1
php-fpm7.4(193571): W /dev/null
smartctl(205216): O /dev/nvme0n1
smartctl(205216): C /dev/nvme0n1
php-fpm7.4(193570): W /dev/null
smartctl(205221): O /dev/sda
php-fpm7.4(193571): W /dev/null
php-fpm7.4(193572): W /dev/null
smartctl(205221): C /dev/sda
php-fpm7.4(193573): W /dev/null
smartctl(205234): O /dev/sda
smartctl(205234): C /dev/sda
php-fpm7.4(193570): W /dev/null
smartctl(205244): O /dev/sdb
php-fpm7.4(193571): W /dev/null
php-fpm7.4(193573): W /dev/null
smartctl(205244): C /dev/sdb
php-fpm7.4(193572): W /dev/null
smartctl(205257): O /dev/sdb
php-fpm7.4(193570): W /dev/null
smartctl(205257): C /dev/sdb
php-fpm7.4(193571): W /dev/null
php-fpm7.4(193573): W /dev/null
Display More
As the output does not contain any "irregularities", error logs and such do not provide additional knowledge. There is another suggestion in the forum, which uses a script to figure out a similar problem (My Guide to Debugging Disk Spin-ups). However "block dumps" have changed and I cannot figure out how to change the script to gain more knowledge (read forum post).
Have you got any idea how I could proceed to solve my problem? Is this somethingLooking forward to hearing your suggestions!