Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Aug 2011 10:50:05 -0700
From:      Yuri <yuri@rawbw.com>
To:        freebsd-hackers@freebsd.org
Subject:   ZFS installs on HD with 4k physical blocks without any warning as on 512 block size device
Message-ID:  <4E4D50CD.5080806@rawbw.com>

next in thread | raw e-mail | index | archive | help
Some latest hard drives have logical sectors of 512 byte when they 
actually have 4k physical sectors. Here is the document describing what 
to do in such case: 
http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html .
For UFS: newfs -U -f 4096 /dev/da0
For ZFS: gnop create -S 4096 /dev/da0 && zpool create data /dev/da0.nop

I am sure most people just install such hard drive without doing this 
and potentially get suboptimal performance since they aren't aware about 
this.
Shouldn't UFS and ZFS drivers be able to either read the right sector 
size from the underlying device or at least issue a warning?

Yuri



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E4D50CD.5080806>