Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2014 10:09:02 +0100
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Matthew Ahrens" <mahrens@delphix.com>, "Nathan Whitehorn" <nwhitehorn@freebsd.org>
Cc:        freebsd-fs <freebsd-fs@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>, George Wilson <george.wilson@delphix.com>
Subject:   Re: fdisk(8) vs gpart(8), and gnop
Message-ID:  <35E54263991449299DE1F938A3DA83B0@multiplay.co.uk>
References:  <20140601004242.GA97224@bewilderbeast.blackhelicopters.org> <CAOjFWZ5N9FGwgSz0_YFNQjavzdJDitRn52VKn4ipW1ddj6-weQ@mail.gmail.com> <BCA9F5D6-3925-4E7E-9082-128652508305@FreeBSD.org> <3D6974D83AE9495E890D9F3CA654FA94@multiplay.co.uk> <538B4CEF.2030801@freebsd.org> <CAJjvXiHAvPptAUOg3aO35v32%2BF3VqG_8tNjgknOZ6qM1EeNK=w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message ----- 
From: "Matthew Ahrens" <mahrens@delphix.com>
> On Sun, Jun 1, 2014 at 8:55 AM, Nathan Whitehorn <nwhitehorn@freebsd.org>
> wrote:
> 
>> On 06/01/14 08:52, Steven Hartland wrote:
>>
>>> ----- Original Message ----- From: "Mark Felder" <feld@freebsd.org>
>>>
>>>  On May 31, 2014, at 20:57, Freddie Cash <fjwcash@gmail.com> wrote:
>>>>
>>>>  There's a sysctl where you can set the minimum ashift for zfs. Then you
>>>>> never need to use gnop.
>>>>>
>>>>> I believe it's part of 10.0?
>>>>>
>>>>
>>>> I've not seen this yet. What we need is to port the ability to set
>>>> ashift at pool creation time:
>>>>
>>>> $ zpool create -o ashift=12 tank mirror disk1 disk2 mirror disk3 disk4
>>>>
>>>> I believe the Linux zfs port has this functionality now, but we still do
>>>> not.
>>>>
>>>
> I am strongly against implementing "-o ashift=12"[*].  If we need to
> explicitly tell ZFS what sector size to use, we should make that intention
> clear with an appropriately named property, for example "-o
> device_sector_size=4K".  Even better, this property should be per-disk.
> 
> --matt
> 
> [*]  Once we implement an appropriately-named property, I would be OK with
> also allowing the "-o ashift=12" as a Linux compatibility feature.

Being able to override the detected sector size for a disk would get my vote
as that would result in everything else just working and would be able to
have different ashift per top level vdev.

That said I'm not sure if that should be a ZFS option or just a OS option?

IIRC solaris / illumos has that ability already?

    Regards
    Steve



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