Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Dec 2025 15:11:32 +0000
From:      "Dave Cottlehuber" <dch@skunkwerks.at>
To:        freebsd-fs <freebsd-fs@freebsd.org>, void <void@f-m.fm>
Subject:   Re: zpool setup clarification
Message-ID:  <b4b75e5e-071c-446f-8298-25f41a609334@app.fastmail.com>
In-Reply-To: <aSxnG-HKDYZ0L3lQ@int21h>
References:  <aSxnG-HKDYZ0L3lQ@int21h>

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

On Sun, 30 Nov 2025, at 15:47, void wrote:
> Hi,
>
> Is there any benefit in setting (via gpart, firstly)
> GPT and then freebsd-zfs as the partition type) instead of
> directly allocating the disk device to the zpool?
>
> This would be a single device zpool (so, a 'stripe' config)
> It's not a boot device or part of a mirror config.

I have a strong preference for putting down GPT partitions
simply so that other non-ZFS aware tools do not think its
a blank / unformatted device.

I believe there is no difference in performance with either
approach, so long as partitions are 4K aligned (or whatever the
sector size of the drive is), this can be ashift 12 or even
13 these days.

https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Workload%20Tuning.html#whole-disks-versus-partitions wasn't so
clear for me.

A+
Dave



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b4b75e5e-071c-446f-8298-25f41a609334>