Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Make middleware clear old pool labels from new partitions

Description

When disks are reused, old pool labels on the disk may be revealed when new partitions are added. This can potentially cause problems booting and importing pools.

Attempt to clear existing pool labels whenever a new partition is added.

This is done by running `zpool labelclear -f /dev/$diskpart` after adding a new partition to a disk and should be done for all partition types, not just freebsd-zfs.

The user will have already agreed to wipe the contents of the disk by the time we have repartitioned it.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk April 28, 2021 at 1:06 AM

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created September 9, 2019 at 3:13 PM
Updated July 1, 2022 at 4:44 PM
Resolved April 28, 2021 at 3:10 PM