Skip to content

partitions not properly wiped #624

@ydirson

Description

@ydirson

In reports like xcp-ng/xcp#390 and https://xcp-ng.org/forum/topic/7465/upgrade-to-8-3-beta-1-fails we see users getting hit by a previous ZFS partition not being properly wiped.

util.zeroOut uses dd to clear explicit block ranges in a given block dev (which cannot account for all kinds of signatures in the wild), and tools like vgcreate are used in a mode that would ask the user what to do. Would there be any problem in calling wipefs -a on the target block device?

I can see it could be a bad idea to use --force on vgcreate, as it is quite an "override all checks" flag and there don't seem to be a flag to just ignore previous contents, although it could avoid any upcoming issues that would not be covered by the current wipefs version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions