I was able format my 4k (512e) drive with ashift 12 without much trouble on SmartOS. What is the make/model of the drive you are trying to use?
Newer drives should report correct sector sizes, but for those that don't, Illumos (SmartOS) uses the sd-config-list to override it. Use *iostat -Er* to get the device string. In this case SAMSUNG HD204UI. # iostat -Er | grep -i vendor | sort | uniq Vendor: ATA ,Product: SAMSUNG HD204UI ,Revision: 0001 ,Serial No: S2H7JD2ZB12671 Have a look at the Illumos sd-config-list and see if your drive is listed there: http://wiki.illumos.org/display/illumos/List+of+sd-config-list+entries+for+Advanced-Format+drives . If it is, add the appropriate entry to */kernel/drv/sd.conf* and then *update_drv -vf sd* to apply the change. This can be done on a running system. Now go ahead and create your pool. If your drive is not on the list, I would try creating the pool anyway and see what happens. Worst case scenario you will have to destroy the pool and start over. Use the device string from iostat, update */kernel/drv/sd.conf* , *update_drv -vf sd*, and try again. Verify pools have the proper ashift: *zdb | egrep 'ashift| name'*. # zdb | egrep 'ashift| name' name: 'backup' ashift: 12 name: 'zones' ashift: 9 ashift: 9 All of these steps are explained in detail in ( http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks). On Fri, Jul 10, 2015 at 11:01 PM, Simon Davis via smartos-discuss < [email protected]> wrote: > I've read the Illumos link and did not see options for identifying the > disk block size. I also saw that the page did give options for setting > the ashift=12 those options don't apply to SmartOS. In the SmartOS wiki > (Hardware > Requirements - SmartOS Documentation - SmartOS Wiki > <https://wiki.smartos.org/display/DOC/Hardware+Requirements>) one of the > known issues is support for 4k disks. > > Is there a way to tell what the current volume block size is? > > > > > > > On Friday, July 10, 2015 11:00 AM, Nick Perry <[email protected]> wrote: > > > http://wiki.illumos.org/display/illumos/ZFS+and+Advanced+Format+disks > > > On 10 July 2015 at 14:28, Simon via smartos-discuss < > [email protected]> wrote: > > How would I tell the block size that the drive is reporting? > > On Jul 10, 2015 12:35 AM, Richard Elling <[email protected]> > wrote: > > > > > > > On Jul 9, 2015, at 7:29 PM, "Simon via smartos-discuss" < > [email protected]> wrote: > > > > > > Hi, > > > > > > I know that SmartOS does not officially support 4k drives (ashift=12). > > > > untrue. If the disk advertises its physical block size properly, and > today many do, then you're good. If you have drives that lie, then there > are several ways to make the pools with 4k. So first determine if you need > to jump through hoops before jumping. > > > > -- richard > > > > > > > > I found a modified zpool binary on github by user calmh that creates > pools with an ashift=12. > > > > > > How do I go about putting that modified binary on the SmartOS USB > image so I can create the zones pool before installing SmartOS? > > > > > > Thanks > > > > > > SD > > > > > > > > > > http://www.listbox.com > > > > > *smartos-discuss* | Archives > <https://www.listbox.com/member/archive/184463/=now> > <https://www.listbox.com/member/archive/rss/184463/25883057-31a36e1e> | > Modify > <https://www.listbox.com/member/?&> > Your Subscription <http://www.listbox.com> > ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
