Skip to content

Unable to set bootfs on pool with indirect vdevs #11762

Closed
@mmatuska

Description

@mmatuska

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Triage NeededNew issue which needs to be triagedType: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions