How do I check that 4K blocks are properly set up for an existing pool? The drives are 4k but report 512 as the sector size. My ashift reported by
I inherited the pool after somebody else created it so I don't know exactly how it was set up.
Here is the info of one of my disks:
Diskinfo output from one disk:
Gpart output from the same disk:
There is both 512 and 4096 in the gpart output from the disks, I'm really confused about how to tell now what is going on. I have read the manpage but I am none the wiser as to what sectorsize, stripesize and stripeoffset actually mean.
Raw disk performance of the pool seems poor (6 disks in striped mirror configuration) which is why I am investigating this.
Any clues welcomed, thanks!
zdb|grep ashift is 12, but that is not enough to determine that everything is working according to @Sebulon's post here: viewtopic.php?p=174638#p174638.I inherited the pool after somebody else created it so I don't know exactly how it was set up.
Here is the info of one of my disks:
Diskinfo output from one disk:
Code:
# diskinfo -v ada0
ada0
512 # sectorsize
3000592982016 # mediasize in bytes (2.7T)
5860533168 # mediasize in sectors
4096 # stripesize
0 # stripeoffset
5814021 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
WD-WMC1T0974497 # Disk ident.
Code:
# gpart list ada0
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 5860533134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
Mediasize: 262144 (256k)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 1024
Mode: r0w0e0
rawuuid: 89d9f7ef-92dd-11e2-a4a3-6805ca115e16
rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
label: (null)
length: 262144
offset: 17408
type: freebsd-boot
index: 1
end: 545
start: 34
2. Name: ada0p2
Mediasize: 3000590401536 (2.7T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e2
rawuuid: 89f60ed7-92dd-11e2-a4a3-6805ca115e16
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: bdldisk0
length: 3000590401536
offset: 1048576
type: freebsd-zfs
index: 2
end: 5860530175
start: 2048
Consumers:
1. Name: ada0
Mediasize: 3000592982016 (2.7T)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e3
There is both 512 and 4096 in the gpart output from the disks, I'm really confused about how to tell now what is going on. I have read the manpage but I am none the wiser as to what sectorsize, stripesize and stripeoffset actually mean.
Raw disk performance of the pool seems poor (6 disks in striped mirror configuration) which is why I am investigating this.
Any clues welcomed, thanks!
Last edited by a moderator: