Replies: 1 comment 3 replies
-
Replacing 512e drives with 4kn drives should be fine assuming they're the same capacity, how have you seen that fail?
|
Beta Was this translation helpful? Give feedback.
-
Replacing 512e drives with 4kn drives should be fine assuming they're the same capacity, how have you seen that fail?
|
Beta Was this translation helpful? Give feedback.
-
I've been doing some testing with a mixture of 512/4096 and 4096/4096 disks and there's one thing which I can't seem to find a good read about. Are there any gains from formatting drives to 4096 logical block size? I noticed that 512/4096 drives can't be replaced with 4096/4096 drives, but other way around works just fine. Ashift is always 12.
I guess this would require in-depth knowledge about metaslabs and space maps. I'm interested how ZFS maps these into actual disk sectors. When 10TB drive is in 512/4096 mode (logical/physical), it reports
10000831348736 bytes space in 19532873728 sectors
to the OS. For 4096/4096 drive10000831348736 bytes, 2441609216 sectors
. One would imagine, that less sectors means smaller block map, which would potentially save some memory, but is this the case? Does ashift tackle this issue by calculating the offsets so that each 4k IO hits a physical block even in 512e mode? Does the disk firmware still process IO in logical addresses? What doessg_format --size=4096
actually do for the disk?edit: There's a thing called DVA, apparently. But even DVAs calculate the physical location using offset of 512b blocks. If this is the case for 4kn drives as well, does ZFS actually care about the sectors at all?
Beta Was this translation helpful? Give feedback.
All reactions