The above errors occur when I run FreeBSD on Azure with ZFS + HDD. Azure uses remote storage as SDD, so I cannot detect what kinds of SSD is used from VM side.
But if I run FreeBSD on Hyper-v with ZFS + HDD, there is no trim failures. So, I guess the failures should be caused by some differences on disk configurations on Azure and Hyper-v.
If I can change some ZFS parameters to check why TRIM failures happened, that is helpful.
I saw there are a lot of other statistics for "kstat.zfs.misc", I'm trying to find any clues.