August 20, 201213 yr Can someone please tell me how to determine if a particular array disk is 4k-aligned or not? I've searched the forums but not been successful in the process of how to determine.
August 20, 201213 yr fdisk -l /dev/sdX The -l option (that is a lowercase L) lists the partition table. Replace X with the drive letter you want to view. Output will look something like: # fdisk -l /dev/sda Disk /dev/sda: 2000.4 GB, 2000398934016 bytes 1 heads, 63 sectors/track, 62016336 cylinders Units = cylinders of 63 * 512 = 32256 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 2 62016336 1953514552 83 Linux Partition 1 does not end on cylinder boundary. * Edit to fix a typo.
August 20, 201213 yr Author Where 4096 in the two lines below denotes 4K alignment, correct? If a disk was 1k-aligned the 4096 would be 1024, correct? Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Archived
This topic is now archived and is closed to further replies.