I'm using Linux with 4 hard drives that use 4k sectors. There are several layers between my filesystem and the raw devices: Disks > Linux Raid 5 > dm-crypt > LVM.
Every resource I have found has explained how to set up each layer to ensure that writes on top of that layer will be aligned to the 4k sector boundary. However, I have not found anything that explains how to verify that the writes made to the hard drives are actually happening at 4k boundaries.
I'm not interested in re-examining my set up to use logic to determine if it is aligned correctly. I want to examine what is actually happening when writes are made to the disk.
How can I log or view the addresses and size of the writes that are being made to my hard drives, so I can verify that they are correctly aligned?