Description
System information
All ZFS versions since device removal feature on both FreeBSD and Linux
Describe the problem you're observing
When a vdev is removed and becomes indirect, the bootfs property cannot be set on a pool.
I do not see the point why setting this property should not be allowed.
FreeBSD boot loader is capable of booting from indirect vdevs so this kills the management of bootability of the pool on FreeBSD.
This limitation was introduced in a1d477c by @ahrens
Describe how to reproduce the problem
dd if=/dev/zero of=/tmp/file1 bs=1M count=512
dd if=/dev/zero of=/tmp/file2 bs=1M count=512
zpool create testpool /tmp/file1 /tmp/file2
zpool remove testpool /tmp/file2
zpool set bootfs=testpool testpool
Include any warning/errors/backtraces from the system logs
cannot set property for 'testpool': operation not supported on this type of pool
References
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254349
Original reporter
Eric van Gyzen @vangyzen