Re: ZFS installs on HD with 4k physical blocks without any warni

看板FB_hackers作者時間14年前 (2011/08/19 19:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/8 (看更多)
On Thu, Aug 18, 2011 at 6:50 PM, Yuri <yuri@rawbw.com> wrote: > 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 The device never reports the actual sector size, so unless FreeBSD keeps a database of 4k sector hard drives that report as 512 byte sector hard drives, there is nothing that can be done. Cheers Tom _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1EJa9llt (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #1EJa9llt (FB_hackers)