Skip to content
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

Please add a Option to use raw DISK on replace a failed one #14174

Open
arogarth opened this issue Nov 11, 2022 · 7 comments
Open

Please add a Option to use raw DISK on replace a failed one #14174

arogarth opened this issue Nov 11, 2022 · 7 comments
Labels
Type: Feature Feature request or new feature

Comments

@arogarth
Copy link

arogarth commented Nov 11, 2022

Describe the feature would like to see added to OpenZFS

We have a ZFS created with FreeBSD years ago and migrate the machine to Ubuntu with OpenZFS - all works well.
Now some disks failed and we cannot replace them... WHY?

Creating the zfs with FreeBSD the whole raw disk was used as a device without partitioning. On replacing the DIsk with OpenZFS it is creating a partition table. Now the 8M at the end are missing for compatibility to the old setup.

This feature should only be used on replacing disks... And yes we know that the sectors should be equal or greater than the old failed one.

How will this feature improve OpenZFS?

Better compatibility to old ZFS created with BSD systems

Additional context

@arogarth arogarth added the Type: Feature Feature request or new feature label Nov 11, 2022
@arogarth arogarth changed the title Please add a Option to use rar DISK on replace a failed one Please add a Option to use raw DISK on replace a failed one Nov 11, 2022
@ghost
Copy link

ghost commented Nov 11, 2022

I agree, we need way to opt out of automatic partitioning on Linux, but I'm not sure how to do it. Maybe a tunable would work as a bare minimum.

@arogarth
Copy link
Author

On replace - check the original disk - zdb list the informations of the partitioning... if the disk wasnt splitted into partition - don't do it and add the whole disk...

@scineram
Copy link

Remove partitioning crap from Linux. As @amotin suggested long ago.

@jumbi77
Copy link
Contributor

jumbi77 commented Nov 12, 2022

+1 for that.
FYI: Referencing #6277 #3452 #94

And also in a broader context #11029 #11408

@shodanshok
Copy link
Contributor

@scineram I agree with you, but an option to opt in/out partition creation would be very useful especially when replacing a disk (if autodetection as suggested by @arogarth fails).

@pepa65
Copy link

pepa65 commented Jan 22, 2023

As a (hopefully temporary) workaround:
#94 (comment)

@ehem
Copy link

ehem commented Mar 26, 2024

Since I came up with the workaround almost 8 years ago, we're out of temporary. Perhaps once a month we simply need to add comments about "rip it out".

Rip it out!
Rip it out!
Rip it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

6 participants