Skip to content

Error parsing Pool fragmentation #26

Closed
@ymasson

Description

Hi,

With --collector.pool enabled.
On ZoF or ZoL (before OpenZFS 2), I have

level=error ts=2023-01-27T16:10:06.365Z caller=zfs.go:219 msg="Executing collector" status=error collector=pool durationSeconds=0.005495284 err="strconv.ParseFloat: parsing \"0%\": invalid syntax"
level=error ts=2023-01-27T16:11:31.411Z caller=zfs.go:219 msg="Executing collector" status=error collector=pool durationSeconds=0.005649248 err="strconv.ParseFloat: parsing \"1.00x\": invalid syntax"

because:

# zpool get -Hpo name,property,value dedupratio,fragmentation
backup	dedupratio	1.00x
backup	fragmentation	0%

No problem on OpenZFS 2.

I propose to add the minimal ZFS version suported in README, or add the support for older version.

Thanks

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions