FreeBSD 12.2-RELEASE-p9 trim (ZFS, not OpenZFS): open failed: /dev/ada0: Operation not permitted

Graham Perrin grahamperrin at gmail.com
Mon Aug 30 09:16:27 UTC 2021


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 at 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?



More information about the freebsd-questions mailing list