On 08/15/2012 11:24 AM, Darren Reed wrote: > Is it possible to do an install using 4K blocks with ZFS > (with it querying the underlying disk) or is it necessary > to do an install with a 512 byte blocks for root and then > migrate over to a 4K disk afterwards using the various > methods posted on the web?
Zpool should automatically detect the ashift of your disks and create an appropriate pool. I've got a bunch of WD Red drives in my home NAS which are Advanced Format (support for 512b emulation, but 4k natively) and the latest zpool from illumos-gate automatically detected this and created a pool with ashift=12. No need to do manual patching. Be sure to enable AHCI on your SATA ports, though, IDE emulation is just generally a mess and is best avoided whenever possible (always try to put as little firmware between the OS and your drives as possible). You can detect whether your drives advertise as 4k using e.g. smartctl: WD Barracuda 7200.12 250GB (512b native drive) # smartctl -a -d sat,12 /dev/rdsk/c2t5d0s2 | grep 'Sector Size' Sector Size: 512 bytes logical/physical WD Red (Advanced Format) # smartctl -a -d sat,12 /dev/rdsk/c2t0d0s2 | grep 'Sector Size' Sector Sizes: 512 bytes logical, 4096 bytes physical Hope this helps. Cheers -- Saso ------------------------------------------- illumos-discuss Archives: https://www.listbox.com/member/archive/182180/=now RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be Modify Your Subscription: https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4 Powered by Listbox: http://www.listbox.com
