-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wipefs doesn't completely wipe zfs filesystem #1228
Comments
What does it mean "does not completely wipe"? man wipefs:
It does not zeroize the device. The goal is to remove all stuff that is relevant for libblkid (blkid) to detect the FS, but nothing more. |
zfs leaves some additional metadata on the disk which seems to be causing
an issue. Am I wrong in assuming that wipefs should wipe all traces of a
zfs filesystem?
…--oa
On Tue, Jan 5, 2021 at 8:55 AM Karel Zak ***@***.***> wrote:
What does it mean "does not completely wipe"?
man wipefs:
wipefs can erase filesystem, raid or partition-table signatures (magic strings) from the specified device to make
the signatures invisible for libblkid. wipefs does not erase the filesystem itself nor any other data from the
device.
It does not zeroize the device. The goal is to remove all stuff that is
relevant for libblkid (blkid) to detect the FS, but nothing more.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1228 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFM52KSVEG5EUH6N3YOBCYDSYMK5BANCNFSM4VSFTZSA>
.
|
It wipes all traces which is libblkid able and want to detect :-) libblkid need to optimize how it scans the device to avoid overhead. Unfortunately, ZFS is extremely variable with root block(s) locations. Now libblkid detects the 4 uberblocks to get a positive match. Maybe we can extend the current behavior if BLKID_SUBLKS_MAGIC flags specified (used by wipefs) to read more locations. I'll add this to our TODO. Anyway, for installers, it's probably a good idea to use dd(1) to wipe the first few MiBs from the beginning and the end of the device. I would recommend wipefs(8) as the second step to be sure that there is not remaining anything detectable on the device for udev. |
Addresses: #1228 Signed-off-by: Karel Zak <kzak@redhat.com>
I'm still having this issue. and I don't know what to do? It's a big disk I don't want to rewrite everything. I tried wiping 1 MB of the end of the disk too and lsblk still detects it |
@Nottt And/or provide |
wipefs doesn't seem to wipe all the zfs filesystem bits from the disk.
wipefs -a /dev/hda
dd if=/dev/zero of=/dev/sda bs=1G
Further details and logs here: clearlinux/clr-installer#753
The text was updated successfully, but these errors were encountered: