Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Aug 2021 10:16:17 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD 12.2-RELEASE-p9 trim (ZFS, not OpenZFS): open failed: /dev/ada0: Operation not permitted
Message-ID:  <5a1ae42f-d0f7-beb9-fb21-a83e7e8fe06d@gmail.com>
In-Reply-To: <a0a0afde-d0b5-78b8-5489-44ed6b3a2e39@holgerdanske.com>
References:  <dda0a570-53bc-7676-9f38-67bcd7a6f8bb@holgerdanske.com> <b0cb474d-a4e8-5228-b4da-a267ac1a2124@holgerdanske.com> <fe31dae4-571b-a7a7-b857-68cd515fbe74@gmail.com> <a0a0afde-d0b5-78b8-5489-44ed6b3a2e39@holgerdanske.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 30/08/2021 08:45, David Christensen wrote:

> … created with FreeBSD-12.1-RELEASE-amd64-memstick on a USB flash 
> drive with ZFS boot, encrypted swap, and encrypted ZFS root.
>
>
>> If so: with or without OpenZFS kernel module?
>
>
> ZFS kernel module is loaded:
>
> 2021-08-30 00:30:42 toor@f3 ~
> # kldstat
> Id Refs Address                Size Name
>  1   23 0xffffffff80200000  227ae98 kernel
>  2    1 0xffffffff8247c000    1e7b0 geom_eli.ko
>  3    2 0xffffffff8249b000     a448 opensolaris.ko
>  4    1 0xffffffff824a8000     ee98 aesni.ko
>  5    1 0xffffffff824b7000   3bad38 zfs.ko
>  6    1 0xffffffff82872000    27c00 geom_mirror.ko
>  7    1 0xffffffff8289a000    27ce8 fuse.ko
>  8    1 0xffffffff82b21000      acf mac_ntpd.ko
>
> …


Thanks. Simply installing sysutils/openzfs will get you a relevant 
manual page:

man 8 zpool-trim

– and `zpool trim` (alone) will run (tested in VirtualBox), however: 
_without_ an OpenZFS-enabled boot, I'd be wary of specifying a pool to 
be trimmed. Here be dragons?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5a1ae42f-d0f7-beb9-fb21-a83e7e8fe06d>