Krisbee
crashtest
Hi together
here are my research results (without having a shutdown hang, up to now):
-I/O-waits for writing 50GB of data to the btrfs Raid1 with three SSDs is from 2 to 5... That's good!
(Edited: With write cache disabled on all disks and writing 14GB of data, I/O-waits are between 0,1 to 7,9)
-'Synchronizing SCSI Cache/Stopping disk' is not the Problem... This always needs only a very short time during shutdown.
Not a noticeable difference, when write cache is disabled.
-'Stopping disk' is the part that could take time from very short (<0.5) to 6 seconds per disk, with my setup!
That's combined with the drive usage LED... No relation to SSD write cache usage....
I guess, stopping of the SSDs is not necessary because, no rotating disk...
No relation to btrfs driver, because at this time no filesystem is active anymore.
Activ is only the Sata Layer (AHCI driver in my setup).
Varying stopping times could be SSD firmware related or Linux kernel driver, managing the stopping of the drives...
It´s the same with 6.12.x Debian kernel and 6.14.x Proxmox kernel.
When i think back to the last shutdown hang:
'[FAILED] Failed unmounting srv-dev\x2dddisk\x2dby\x2duuid\x2...srv/dev-disk-by-uuid-<my-server-volume-uuid>'
may happen at this part of the shutdown... But can't confirm at this time.
I guess, there is nothing to unmount at this time of shutdown, because all file systems are already down!
Possible workaround:
Don't use shutdown! Use reboot (No disk stopping), go to Grub or BIOS and power off, by power button.
So far at this point...
Best regards
prtigger